Module Dsml.ToolSource

Build the OpenAI tool objects passed to system and developer.

Sourceval v : name:string -> ?description:string -> ?parameters:Json.t -> unit -> Json.t

v ~name ?description ?parameters () is the tool object {"type":"function","function":{"name";"description";"parameters"}}. parameters is a JSON Schema.