···210210module Model = Model
211211(** Claude AI model identifiers. *)
212212213213+module Structured_output = Structured_output
214214+(** Structured output configuration using JSON Schema. *)
215215+213216(** {1 Custom Tools (MCP)}
214217215218 These modules enable custom tool definitions that run in-process via MCP
+4-4
lib/client.mli
···3636 {2 Message Flow}
37373838 1. Create a client with {!create} 2. Send messages with {!query} or
3939- {!send_message} 3. Receive responses with {!receive} or {!receive_all} 4.
3939+ {!Advanced.send_message} 3. Receive responses with {!receive} or {!receive_all} 4.
4040 Continue multi-turn conversations by sending more messages 5. Client
4141 automatically cleans up when the switch exits
4242···304304 (** [receive_raw t] returns a lazy sequence of raw incoming messages.
305305306306 This includes all message types before Response conversion:
307307- - {!Incoming.Message} - Regular messages
308308- - {!Incoming.Control_response} - Control responses (normally handled
307307+ - {!Proto.Incoming.t.constructor-Message} - Regular messages
308308+ - {!Proto.Incoming.t.constructor-Control_response} - Control responses (normally handled
309309 internally)
310310- - {!Incoming.Control_request} - Control requests (normally handled
310310+ - {!Proto.Incoming.t.constructor-Control_request} - Control requests (normally handled
311311 internally)
312312313313 Most users should use {!receive} or {!run} instead. *)
+1-1
proto/structured_output.mli
···1111 the specified JSON format, validated against the provided schema.
12121313 This is the protocol-level module. For the high-level API with logging and
1414- additional features, see {!Claudeio.Structured_output}. *)
1414+ additional features, see {!Claude.Structured_output}. *)
15151616(** {1 Output Format Configuration} *)
1717