Anthropic::Beta::BatchesAPI
Beta namespace wrapper for Messages Batches API.
Provides access to the Messages Batches API through the beta namespace, automatically merging beta headers into all requests.
Usage
client = Anthropic::Client.new
# Access batches through beta namespace
batch = client.beta.messages.batches.create(request)
# With custom beta headers
batch = client.beta(["custom-feature"]).messages.batches.create(request)
Constructors
Instance methods
Cancel a batch that is in progress.
create(request : CreateMessageBatchRequest, request_options : RequestOptions | Nil = nil) : MessageBatch
Create a new message batch for asynchronous processing.
create(requests : Array(CreateMessageBatchRequest::BatchRequest), request_options : RequestOptions | Nil = nil) : MessageBatch
Create a batch from an array of batch requests.
Delete a message batch.
list(params : ListParams = ListParams.new, request_options : RequestOptions | Nil = nil) : Page(MessageBatch)
List all message batches with pagination.
list_all(limit : Int32 | Nil = nil, request_options : RequestOptions | Nil = nil) : AutoPaginator(MessageBatch)
Auto-paginating iterator for listing all message batches.