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