Use Newspaper tools with Agno agents.
from agno.agent import Agent from agno.tools.newspaper import NewspaperTools # --------------------------------------------------------------------------- # Create Agent # --------------------------------------------------------------------------- agent = Agent(tools=[NewspaperTools()]) # --------------------------------------------------------------------------- # Run Agent # --------------------------------------------------------------------------- if __name__ == "__main__": agent.print_response( "Please summarize https://en.wikipedia.org/wiki/Language_model" )
# Clone and setup repo git clone https://github.com/agno-agi/agno.git cd agno/cookbook/91_tools # Create and activate virtual environment ./scripts/demo_setup.sh source .venvs/demo/bin/activate python newspaper_tools.py
Was this page helpful?