[Bug] Server-side media_processing="AGENTIC" fails with 400 INVALID_ARGUMENT (beyond.files.ExtendedFileMetadata) on video tool calls

Description:

Enabling media_processing="AGENTIC" (in models.generate_content) or "processing": "agentic" (in interactions.create) for video inputs fails with a 400 INVALID_ARGUMENT error whenever the model triggers an internal server-side MEDIA_PROCESSING tool call.

This happens with both YouTube URLs and Files API uploaded MP4 files.

Error Message:


google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': '\* GenerateContentRequest.contents\[1\].parts\[0\].function_call.parts\[0\].file_data.file_options.file_metadata.extended_metadata\[0\]: extended_metadata must be a supported extension of beyond.files.ExtendedFileMetadata\\n\* GenerateContentRequest.contents\[2\].parts\[0\].function_response.parts\[0\].file_data.file_options.file_metadata.extended_metadata\[0\]: extended_metadata must be a supported extension of beyond.files.ExtendedFileMetadata\\n', 'status': 'INVALID_ARGUMENT'}}

Thanks for flagging, we’re looking into this.

This issue has been fixed. Let us know if you still see the issue persist at your end. Thanks!