package ocaml-ai-sdk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml AI SDK - Provider abstraction for AI models
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-ai-sdk-0.6.1.tbz
sha256=cb3b82428abcda76c02ec92f8103a4db28edf3f42795794a37135e9a3c40af96
sha512=11be8889ee25bee67b2be00553c42a4692bc73e5ce23985e8bb87f8a07e9d8f556b5a63b219fe5fe30366c8b0d4edae494afa80ccfbfcb112f1fa1e458de55bf
doc/src/ocaml-ai-sdk.ai_provider/mode.ml.html
Source file mode.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18type json_schema = { name : string; schema : Yojson.Basic.t; } type t = | Regular | Object_json of json_schema option | Object_tool of { tool_name : string; schema : json_schema; } (* The Vercel AI SDK convention for providers that don't natively enforce JSON Schema: synthesize a tool called "json" whose inputSchema is the caller's schema, force the model to call it, and decode the response from the tool_use args. Upstream [@ai-sdk/anthropic] uses this exact name; changing it would break interop. *) let fallback_json_tool_name = "json"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>