Retrieve Message Batch results
beta.messages.batches.results(message_batch_id, **kwargs) -> BetaMessageBatchIndividualResponseGET/v1/messages/batches/{message_batch_id}/results
Streams the results of a Message Batch as a .jsonl file.
Each line in the file is a JSON object containing the result of a single request in the Message Batch. Results are not guaranteed to be in the same order as requests. Use the custom_id field to match results to requests.
Learn more about the Message Batches API in our user guide
Retrieve Message Batch results
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_message_batch_individual_response = anthropic.beta.messages.batches.results("message_batch_id")
puts(beta_message_batch_individual_response)