package ocaml-ai-sdk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=17063971a74ccd72619a43ecfcb29d28cdf08f90d406a960bd475f65fee1a0d9
sha512=1f3f2d1d7fa4f53843cc1b303cbf9d6dcc85780e7c768ced723f3de83ea897748fa231b48e729216abcc069dee818edc6751a45271541e8a007369bf6e9d23e3
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.