Usage
1
Upload a file
Initialize the Anthropic client and use
client.beta.files.upload
:2
Initialize the Claude model
When initializing the
Claude
model, pass the necessary beta header:3
Reference the file
You can now reference the uploaded file when interacting with your Agno agent:
Working example
cookbook/models/anthropic/pdf_input_file_upload.py