Hi team ![]()
I’m trying to pass native files (like DOCX, XLSX, PPTX) from Anthropic’s beta.files.upload() to Claude through Agno, specifically using the Code Execution Tool (code_execution_20250825).
The Anthropic API accepts the files and returns valid file_ids, but when I attach them through Agno like this:
from agno.media import File
agno_file = File(external=uploaded_file)
agent.print_response(
"Analyze these documents",
files=[agno_file],
)
Claude responds with “invalid file format” for non-PDF files.
I saw that Claude’s API recently added support for container_upload blocks when using the Code Execution Tool. I want to use the new beta Claude feature for native file upload.
My question is:
Does Agno currently support sending container_upload content blocks (for native file analysis via Claude’s code execution tool)?
If not, is there a recommended workaround or upcoming release adding this feature?
Thanks in advance!