Message.AssistantMessages from Claude assistant.
type error = [ | `Authentication_failedAuthentication with Claude API failed
*)| `Billing_errorBilling or account issue
*)| `Rate_limitRate limit exceeded
*)| `Invalid_requestRequest was invalid
*)| `Server_errorInternal server error
*)| `UnknownUnknown error type
*) ]The type of assistant message errors based on Python SDK error types.
incoming_jsont is the codec for parsing incoming assistant messages from CLI. This parses the envelope format with "message" wrapper.
val create :
content:Content_block.t list ->
model:string ->
?error:error ->
unit ->
tcreate ~content ~model ?error () creates an assistant message.
val content : t -> Content_block.t listcontent t returns the content blocks of the assistant message.
val model : t -> stringmodel t returns the model identifier.
error t returns the optional error that occurred during message generation.