OCaml Claude SDK using Eio and Jsont

Fix errors in documentation, and add a toplevel index

authored by jon.recoil.org and committed by

Tangled d00a31e1 0a02c2d5

+8 -5
+3
lib/claude.mli
··· 210 module Model = Model 211 (** Claude AI model identifiers. *) 212 213 (** {1 Custom Tools (MCP)} 214 215 These modules enable custom tool definitions that run in-process via MCP
··· 210 module Model = Model 211 (** Claude AI model identifiers. *) 212 213 + module Structured_output = Structured_output 214 + (** Structured output configuration using JSON Schema. *) 215 + 216 (** {1 Custom Tools (MCP)} 217 218 These modules enable custom tool definitions that run in-process via MCP
+4 -4
lib/client.mli
··· 36 {2 Message Flow} 37 38 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. 305 306 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) 312 313 Most users should use {!receive} or {!run} instead. *)
··· 36 {2 Message Flow} 37 38 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. 305 306 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) 312 313 Most users should use {!receive} or {!run} instead. *)
+1 -1
proto/structured_output.mli
··· 11 the specified JSON format, validated against the provided schema. 12 13 This is the protocol-level module. For the high-level API with logging and 14 - additional features, see {!Claudeio.Structured_output}. *) 15 16 (** {1 Output Format Configuration} *) 17
··· 11 the specified JSON format, validated against the provided schema. 12 13 This is the protocol-level module. For the high-level API with logging and 14 + additional features, see {!Claude.Structured_output}. *) 15 16 (** {1 Output Format Configuration} *) 17