You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from agno.agent import Agent from agno.models.anthropic import Claude from agno.tools.thinking import ThinkingTools from agno.tools.duckduckgo import DuckDuckGoTools reasoning_agent = Agent( model=Claude(id="claude-3-7-sonnet-latest"), tools=[ ThinkingTools(add_instructions=True), DuckDuckGoTools( search=True, news=True, ), ], instructions="Use tables where possible", markdown=True, ) if __name__ == "__main__": reasoning_agent.print_response( "Write a report on the latest developments in artificial intelligence. Only the report, no other text.", stream=True, show_full_reasoning=True, stream_intermediate_steps=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/reasoning/tools/claude_thinking_tools.py
Was this page helpful?