ocaml-ai-sdk.ai_provider
Ai_provider.Finish_reason
Reason why model generation finished.
ocaml-ai-sdk.ai_core
ocaml-ai-sdk.ai_provider_anthropic
ocaml-ai-sdk.ai_provider_openai
type t =
| Stop
| Length
| Tool_calls
| Content_filter
| Error
| Other of string
| Unknown
val to_string : t -> string
Serializes to the upstream AI SDK v6 hyphenated format (e.g. "tool-calls", "content-filter", "other"). Matches the Zod enum in ui-message-chunks.ts.
"tool-calls"
"content-filter"
"other"
ui-message-chunks.ts
val of_string : string -> t