package ocaml-ai-sdk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=cb3b82428abcda76c02ec92f8103a4db28edf3f42795794a37135e9a3c40af96
sha512=11be8889ee25bee67b2be00553c42a4692bc73e5ce23985e8bb87f8a07e9d8f556b5a63b219fe5fe30366c8b0d4edae494afa80ccfbfcb112f1fa1e458de55bf
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.