package ocaml-ai-sdk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e3437d6ebf48ec9f5d9a8afd62eaeece124023f02dbd87e4b291205fd309b72
sha512=605c10ed62c0cbc31a151b7031cc80a284d5c94231c1ef423ae7439572e3fadddab4a45f52eaeeef83973a8e324839b9fda03f9082deef1b6781353f63975510
doc/ocaml-ai-sdk.ai_provider/Ai_provider/index.html
Module Ai_providerSource
OCaml AI SDK — Provider abstraction layer.
Type-safe, provider-agnostic types and module signatures for AI model integration. Inspired by Vercel AI SDK's V3 specification.
Provider-specific options using an extensible GADT. Each provider registers its own typed key without circular dependencies.
Reason why model generation finished.
Errors from provider API calls.
Strategy for tool selection during generation.
Unified input options for both generate and stream calls.
Result of a non-streaming generation call.
Individual parts emitted during streaming generation.
Result of a streaming generation call.
Core abstraction for AI language models.
Middleware for cross-cutting concerns (logging, caching, retries).
HTTP timeout configuration.
HTTP client wrappers that apply Http_timeouts to cohttp calls.