Skip to content

AgentEngineSandboxCodeExecutor uses wrong JSON field names for stdout/stderr #3690

@guanerdan

Description

@guanerdan

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

Metadata

Metadata

Assignees

Labels

agent engine[Component] This issue is related to Vertex AI Agent Enginegood first issue[Community] This issue is good for newcomers to participaterequest clarification[Status] The maintainer need clarification or more information from the author

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions