You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from agno.agent import Agent from agno.media import File from agno.models.anthropic import Claude agent = Agent( model=Claude(id="claude-3-5-sonnet-20241022"), markdown=True, ) agent.print_response( "Summarize the contents of the attached file.", files=[ File(url="https://agno-public.s3.amazonaws.com/recipes/ThaiRecipes.pdf"), ], stream=True, )
Create a virtual environment
Terminal
python3 -m venv .venv source .venv/bin/activate
Set your API key
export ANTHROPIC_API_KEY=xxx
Install libraries
pip install -U anthropic agno
Run Agent
python cookbook/models/anthropic/pdf_input_url.py
Was this page helpful?