Description
The AgentEngineSandboxCodeExecutor class has two field name mismatches that cause it to fail silently:
Bug 1: stdout/stderr field names
Location: agent_engine_sandbox_code_executor.py lines 138-140
| Code expects |
API returns |
| stdout |
msg_out |
| stderr |
msg_err |
Result: CodeExecutionResult.stdout and stderr are always empty.
Bug 2: Input file field names
Location: agent_engine_sandbox_code_executor.py lines 113-119
| Code sends |
API expects |
| contents |
content |
| mimeType |
mime_type |
Result: Input files are not readable in the sandbox, causing errors like pandas.errors.EmptyDataError: No columns to parse from file.
Environment
- google-adk version: 1.19.0
- Python version: 3.13
Description
The AgentEngineSandboxCodeExecutor class has two field name mismatches that cause it to fail silently:
Bug 1: stdout/stderr field names
Location: agent_engine_sandbox_code_executor.py lines 138-140
Result: CodeExecutionResult.stdout and stderr are always empty.
Bug 2: Input file field names
Location: agent_engine_sandbox_code_executor.py lines 113-119
Result: Input files are not readable in the sandbox, causing errors like pandas.errors.EmptyDataError: No columns to parse from file.
Environment