adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

fix: use sandbox mime_type input field

Open malsabbagh05 opened this issue 5 months ago • 1 comments

Summary

  • Update AgentEngineSandboxCodeExecutor input file payloads to send mime_type instead of mimeType
  • Update the unit test to assert the field names expected by the sandbox API

Why

Issue #3690 reports that sandbox input files are not readable because the executor sends the wrong MIME field name. The current code already handles stdout/stderr via msg_out/msg_err, so this PR keeps the fix scoped to the remaining input-file field mismatch.

Test Plan

  • PYTHONPATH=src uv run pytest tests/unittests/code_executors/test_agent_engine_sandbox_code_executor.py -q

Result:

  • 11 passed, 5 warnings

Fixes #3690

malsabbagh05 avatar Jun 12 '26 18:06 malsabbagh05

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jun 12 '26 18:06 google-cla[bot]

@malsabbagh05 can you sign the CLA?

wukath avatar Jun 16 '26 22:06 wukath

Thanks. I updated my CLA signing and refreshed the branch. The CLA check is passing now.

malsabbagh05 avatar Jun 17 '26 11:06 malsabbagh05

Thanks for the PR. Main already sends the mime_type field in code_executors/agent_engine_sandbox_code_executor.py with the test assertion updated to match, so closing this as already resolved.

GWeale avatar Jun 18 '26 18:06 GWeale