Give your agent tools to interact with external services.
Give an agent tools to interact with external services. The agent uses HackerNewsTools to fetch trending stories and user details.
1
Create a Python file
tools.py
Copy
Ask AI
from agno.agent import Agentfrom agno.models.anthropic import Claudefrom agno.tools.hackernews import HackerNewsToolsagent = Agent( model=Claude(id="claude-sonnet-4-5"), tools=[HackerNewsTools()], instructions="Write a report on the topic.", markdown=True,)agent.print_response("Trending AI startups on Hacker News", stream=True)