Retrieve Results from a Completed Anthropic Message Batch
Source:R/anthropic_batch.R
ant_batch_results.RdDownloads and parses results from a completed message batch. The batch
must have processing_status of "ended" before results can be retrieved.
Usage
ant_batch_results(
batch_id,
key_name = "ANTHROPIC_API_KEY",
endpoint_url = .ANT_BATCHES_ENDPOINT
)Arguments
- batch_id
Character string of the batch ID (returned by
ant_batch_create())- key_name
Environment variable name for API key
- endpoint_url
Anthropic Batches API endpoint URL
Value
A tibble with columns: custom_id, content, .error,
.error_msg, stop_reason, input_tokens, output_tokens