struct

Anthropic::BatchListResponse

Inherits JSON::Serializable < Struct < Value < Object

List response for batches

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

auto_paging_all(client : Client) : Array(BatchResponse)

Auto-paginate through all batches

Returns an array of all batches across all pages

all_batches = client.messages.batches.list.auto_paging_all(client)
all_batches.each do |batch|
  puts batch.id
end
Source
data
Source
first_id
Source
has_more?
Source
last_id
Source