Skip to content

Commit e4593b6

Browse files
committed
fix: use correct 'content' key in sandbox code executor input files
Fixes #5500. The input file payload used 'contents' (plural) but the Vertex AI SDK reads 'content' (singular), causing uploaded files to arrive as zero bytes in the sandbox with no error raised.
1 parent c87ee1e commit e4593b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/adk/code_executors/agent_engine_sandbox_code_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def execute_code(
174174
input_data['files'] = [
175175
{
176176
'name': f.name,
177-
'contents': f.content,
177+
'content': f.content,
178178
'mimeType': f.mime_type,
179179
}
180180
for f in code_execution_input.input_files

0 commit comments

Comments
 (0)