struct

Anthropic::BatchResultMessage

Inherits Struct < Value < Object

Message payload in a batch result. Similar to Messages::Response but without the full request_id property (batch results don't include per-message request IDs). Contains response-shaped fields: id, model, usage, content blocks, stop_reason, etc.

Constructors

new(id : String, type : String, role : String, content : Array(Anthropic::ResponseContentBlock), model : String, stop_reason : String | Nil, stop_sequence : String | Nil, usage : Anthropic::Usage)
Source
new(pull : JSON::PullParser) : BatchResultMessage
Source

Instance methods

content
Source
model
Source
role
Source
stop_reason
Source
stop_sequence
Source
text

Extracts all text from content blocks, joined together.

Source
tool_use_blocks

Returns only the tool use blocks from content.

Source
type
Source
usage
Source