fix: use sandbox mime_type input field
Summary
- Update AgentEngineSandboxCodeExecutor input file payloads to send
mime_typeinstead ofmimeType - 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
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.
@malsabbagh05 can you sign the CLA?
Thanks. I updated my CLA signing and refreshed the branch. The CLA check is passing now.
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.