Code
cookbook/apps/whatsapp/reasoning_agent.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from agno.agent import Agent
from agno.app.whatsapp.app import WhatsappAPI
from agno.models.anthropic.claude import Claude
from agno.tools.thinking import ThinkingTools
from agno.tools.duckduckgo import DuckDuckGoTools
reasoning_research_agent = Agent(
name="Reasoning Research Agent",
model=Claude(id="claude-3-7-sonnet-latest"),
tools=[
ThinkingTools(add_instructions=True),
DuckDuckGoTools(
search=True,
news=True,
),
],
instructions="Use tables to display data. When you use thinking tools, keep the thinking brief.",
add_datetime_to_instructions=True,
markdown=True,
)
whatsapp_app = WhatsappAPI(
agent=reasoning_research_agent,
name="Reasoning Research Agent",
app_id="reasoning_research_agent",
description="A research agent that uses tables to display data and reasoning tools to analyze information.",
)
app = whatsapp_app.get_app()
if __name__ == "__main__":
whatsapp_app.serve(app="reasoning_agent:app", port=8000, reload=True)
Create a virtual environment
Terminal and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
Was this page helpful?