Skip to main content
Prerequisites
  • Python 3.10 or higher
  • PraisonAI Agents package installed
  • PraisonAI Tools package installed
  • arxiv package installed
The user asks for literature; the agent searches arXiv and returns relevant papers.

arXiv Tools

Use arXiv Tools to search and analyze research papers with AI agents.
1

Install Dependencies

First, install the required packages:
2

Import Components

Import the necessary components:
3

Create Agent

Create a research agent:
4

Define Task

Define the research task:
5

Run Agent

Initialize and run the agent:

Understanding arXiv Tools

What are arXiv Tools?

arXiv Tools provide scientific paper search capabilities for AI agents:
  • Paper search functionality
  • Author-based search
  • Category filtering
  • Abstract retrieval
  • PDF download options

Available Functions

Function Details

search_arxiv(query: str, max_results: int = 10, sort_by: str = “relevance”, sort_order: str = “descending”, include_fields: Optional[List[str]] = None)

Search arXiv for papers:
  • Flexible query support
  • Customizable results
  • Multiple sorting options
  • Field selection

get_arxiv_paper(paper_id: str, include_fields: Optional[List[str]] = None)

Get specific paper details:
  • Direct ID lookup
  • Full paper metadata
  • Customizable fields
  • PDF/Abstract links

get_papers_by_author(author: str, max_results: int = 10)

Search papers by author:
  • Author-specific search
  • Publication timeline
  • Sort options

get_papers_by_category(category: str, max_results: int = 10)

Search papers by category:
  • Category-specific search
  • Latest publications
  • Sort options

Examples

Basic Research Agent

Advanced Research with Multiple Agents

Best Practices

Configure agents with clear research focus:
Define specific research objectives:

Common Patterns

Literature Review

Custom Tools

Build your own agent tools

Tools Overview

Browse PraisonAI tool documentation