···210module Model = Model
211(** Claude AI model identifiers. *)
212000213(** {1 Custom Tools (MCP)}
214215 These modules enable custom tool definitions that run in-process via MCP
···210module Model = Model
211(** Claude AI model identifiers. *)
212213+module Structured_output = Structured_output
214+(** Structured output configuration using JSON Schema. *)
215+216(** {1 Custom Tools (MCP)}
217218 These modules enable custom tool definitions that run in-process via MCP
+4-4
lib/client.mli
···36 {2 Message Flow}
3738 1. Create a client with {!create} 2. Send messages with {!query} or
39- {!send_message} 3. Receive responses with {!receive} or {!receive_all} 4.
40 Continue multi-turn conversations by sending more messages 5. Client
41 automatically cleans up when the switch exits
42···304 (** [receive_raw t] returns a lazy sequence of raw incoming messages.
305306 This includes all message types before Response conversion:
307- - {!Incoming.Message} - Regular messages
308- - {!Incoming.Control_response} - Control responses (normally handled
309 internally)
310- - {!Incoming.Control_request} - Control requests (normally handled
311 internally)
312313 Most users should use {!receive} or {!run} instead. *)
···36 {2 Message Flow}
3738 1. Create a client with {!create} 2. Send messages with {!query} or
39+ {!Advanced.send_message} 3. Receive responses with {!receive} or {!receive_all} 4.
40 Continue multi-turn conversations by sending more messages 5. Client
41 automatically cleans up when the switch exits
42···304 (** [receive_raw t] returns a lazy sequence of raw incoming messages.
305306 This includes all message types before Response conversion:
307+ - {!Proto.Incoming.t.constructor-Message} - Regular messages
308+ - {!Proto.Incoming.t.constructor-Control_response} - Control responses (normally handled
309 internally)
310+ - {!Proto.Incoming.t.constructor-Control_request} - Control requests (normally handled
311 internally)
312313 Most users should use {!receive} or {!run} instead. *)
+1-1
proto/structured_output.mli
···11 the specified JSON format, validated against the provided schema.
1213 This is the protocol-level module. For the high-level API with logging and
14- additional features, see {!Claudeio.Structured_output}. *)
1516(** {1 Output Format Configuration} *)
17
···11 the specified JSON format, validated against the provided schema.
1213 This is the protocol-level module. For the high-level API with logging and
14+ additional features, see {!Claude.Structured_output}. *)
1516(** {1 Output Format Configuration} *)
17