batch_download_results
Download and parse completed batch job results from Gemini AI models. Retrieves JSONL files, extracts response data with metadata, and saves to local storage for analysis.
Instructions
DOWNLOAD BATCH RESULTS - Download and parse results from completed batch job. WORKFLOW: 1) Checks job status (must be SUCCEEDED), 2) Downloads result file from Gemini API, 3) Parses JSONL results, 4) Saves to local file, 5) Returns parsed results array. RETURNS: Array of results with original keys, responses, and metadata. Also saves to file in outputLocation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batchName | Yes | Batch job name/ID from batch_create | |
| outputLocation | No | Directory to save results file (defaults to current working directory) |
Input Schema (JSON Schema)
{
"properties": {
"batchName": {
"description": "Batch job name/ID from batch_create",
"type": "string"
},
"outputLocation": {
"description": "Directory to save results file (defaults to current working directory)",
"type": "string"
}
},
"required": [
"batchName"
],
"type": "object"
}