Anthropic::CreateMessageBatchRequest::BatchRequest
Inherits JSON::Serializable < Struct < Value < Object
Constructors
Original constructor for raw params (backward compatible).
Typed constructor from a Messages::Request.
This allows callers to build batch items from typed Request objects without hand-assembling Hash(String, JSON::Any).
Example:
request = Anthropic::Messages::Request.new(
model: Anthropic::Model.sonnet,
messages: [Anthropic::Message.user("Hello")],
max_tokens: 1024
)
batch_req = Anthropic::CreateMessageBatchRequest::BatchRequest.new(
custom_id: "req-1",
request: request
)
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
custom_id
Sourceparams
Source