package ocaml-ai-sdk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4f3f22ae61d360b994cd75323bcb6b6bf915f6755fd1e7bab6844ca8a240c1e7
sha512=3c52b17096da818f5d3bcf9fe16826c3bec4533d6a1681e8ba0f957f37ee4f425696017cb78f1a24732f8851010d436cf446f873b72b6a4f5004d6b492072abf
doc/ocaml-ai-sdk.ai_core/Ai_core/index.html
Module Ai_coreSource
OCaml AI SDK — Core SDK layer.
Provides generate_text, stream_text, and UIMessage stream protocol for frontend interoperability with useChat().
Predicates that control when the multi-step tool loop terminates.
Smooth text and reasoning streaming output.
Results from text generation, including multi-step tool loops.
Events emitted by the fullStream during streaming text generation.
UIMessage stream protocol chunk types.
Build provider-layer prompt messages from user-friendly inputs.
SSE encoding for the UIMessage stream protocol.
Non-streaming text generation with multi-step tool execution.
Result of streaming text generation.
Streaming text generation with multi-step tool execution.
Convenience handler for building chat API endpoints with cohttp.
Partial JSON parser — repairs truncated JSON for streaming.
Composable UIMessage stream builder.