Prerequisites
The following example requires thearxiv and pypdf libraries.
Example
The following agent will run seach arXiv for “language models” and print the response.cookbook/tools/arxiv_tools.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
arxiv and pypdf libraries.
pip install -U arxiv pypdf
from agno.agent import Agent
from agno.tools.arxiv import ArxivTools
agent = Agent(tools=[ArxivTools()], show_tool_calls=True)
agent.print_response("Search arxiv for 'language models'", markdown=True)
| Parameter | Type | Default | Description |
|---|---|---|---|
search_arxiv | bool | True | Enables the functionality to search the arXiv database. |
read_arxiv_papers | bool | True | Allows reading of arXiv papers directly. |
download_dir | Path | - | Specifies the directory path where downloaded files will be saved. |
| Function | Description |
|---|---|
search_arxiv_and_update_knowledge_base | This function searches arXiv for a topic, adds the results to the knowledge base and returns them. |
search_arxiv | Searches arXiv for a query. |
Was this page helpful?