Documentation Index
Fetch the complete documentation index at: https://spacesail.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Code
cookbook/models/anthropic/pdf_input_url.py
from agno.agent import Agent
from agno.media import File
from agno.models.anthropic import Claude
agent = Agent(
model=Claude(id="claude-sonnet-4-20250514"),
markdown=True,
)
agent.print_response(
"Summarize the contents of the attached file.",
files=[
File(url="https://agno-public.s3.amazonaws.com/recipes/ThaiRecipes.pdf"),
],
)
Usage
Create a virtual environment
Open the Terminal and create a python virtual environment.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