Skip to main content
ArxivTools enable an Agent to search for publications on Arxiv.

Prerequisites

The following example requires the arxiv, pypdf, and openai libraries.
uv pip install -U arxiv pypdf openai

Example

The following agent will search arXiv for “language models” and print the response.
cookbook/91_tools/arxiv_tools.py
from agno.agent import Agent
from agno.tools.arxiv import ArxivTools

agent = Agent(tools=[ArxivTools()])
agent.print_response("Search arxiv for 'language models'", markdown=True)

Toolkit Params

ParameterTypeDefaultDescription
enable_search_arxivboolTrueEnables the functionality to search the arXiv database.
enable_read_arxiv_papersboolTrueAllows reading of arXiv papers directly.
allboolFalseEnable all functionality.
download_dirPath-Specifies the directory path where downloaded files will be saved.

Toolkit Functions

FunctionDescription
search_arxiv_and_return_articlesSearches arXiv for a query and returns the top articles with title, authors, PDF URL and summary.
read_arxiv_papersDownloads papers by arXiv ID and returns their content, optionally limited to a number of pages.

Developer Resources