Use Website tools to update knowledge in Agno agents.
Enable Agno agents to move beyond search snippets and autonomously ingest full-page content for detailed analysis and RAG with Website tools.While WebSearchTools helps an agent find links, WebsiteTools allows an agent to read and process the actual content of a specific webpage. It also lets them integrate content directly into the knowledge base.
Copy
Ask AI
from agno.agent import Agentfrom agno.knowledge.knowledge import Knowledgefrom agno.tools.website import WebsiteToolsfrom agno.vectordb.pgvector import PgVector# ---------------------------------------------------------------------------# Create Agent# ---------------------------------------------------------------------------db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"# Create PDF URL knowledge basekb = Knowledge( vector_db=PgVector( table_name="documents", db_url=db_url, ),)# ---------------------------------------------------------------------------# Run Agent# ---------------------------------------------------------------------------if __name__ == "__main__": kb.insert_many( urls=[ "https://agno-public.s3.amazonaws.com/recipes/ThaiRecipes.pdf", "https://docs.agno.com/introduction", ] ) # Initialize the Agent with the combined knowledge base agent = Agent( knowledge=kb, search_knowledge=True, tools=[ WebsiteTools(knowledge=kb) # Set combined or website knowledge base ], ) # Use the agent agent.print_response( "How do I get started on Mistral: https://docs.mistral.ai/getting-started/models/models_overview", markdown=True, stream=True, )