Introduction
This guide covers the most commonly used built-in tools in Agno. Each section includes real code examples and usage patterns.Financial Data: YFinanceTools
Access stock market data, company information, and financial metrics from Yahoo Finance.Installation
Basic Usage
Selective Functions
Enable only the functions you need:Available Functions
Get the current stock price for a symbolParameters:
symbol(str): Stock ticker symbol (e.g., “NVDA”)
Get company profile and overviewParameters:
symbol(str): Stock ticker symbol
Get historical price dataParameters:
symbol(str): Stock ticker symbolperiod(str): Time period (1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max)interval(str): Data interval (1d, 5d, 1wk, 1mo, 3mo)
Get fundamental financial data
Get analyst ratings and recommendations
Get recent company newsParameters:
symbol(str): Stock ticker symbolnum_stories(int): Number of stories to return
Complete Example
Web Search: DuckDuckGoTools
Perform web searches and news searches using DuckDuckGo.Installation
Basic Usage
Configuration Options
Available Functions
Search the web using DuckDuckGoParameters:
query(str): Search querymax_results(int): Maximum number of results
Search for news articlesParameters:
query(str): Search querymax_results(int): Maximum number of results
GitHub Integration: GithubTools
Manage repositories, pull requests, issues, and more on GitHub.Installation
Basic Usage
Key Functions
Search for repositories on GitHubParameters:
query(str): Search query (e.g., “language:python stars:>1000”)sort(str): Sort by “stars”, “forks”, or “updated”order(str): “asc” or “desc”page(int): Page numberper_page(int): Results per page (max 100)
Get details of a specific repositoryParameters:
repo_name(str): Full repository name (e.g., “owner/repo”)
Create an issue in a repositoryParameters:
repo_name(str): Repository nametitle(str): Issue titlebody(str): Issue description
Get details of a pull requestParameters:
repo_name(str): Repository namepr_number(int): PR number
Create a new pull requestParameters:
repo_name(str): Repository nametitle(str): PR titlebody(str): PR descriptionhead(str): Source branchbase(str): Target branch
Complete Example
Web Scraping: FirecrawlTools
Extract content from websites with AI-powered scraping.Installation
Basic Usage
Database: PostgresTools
Execute SQL queries and manage PostgreSQL databases.Installation
Basic Usage
Available Functions
Execute a SELECT queryParameters:
query(str): SQL SELECT statement
Get table schema informationParameters:
table_name(str): Name of the table
List all tables in the database
Slack Integration: SlackTools
Send messages, manage channels, and interact with Slack workspaces.Installation
Basic Usage
Knowledge Base: KnowledgeTools
Access RAG (Retrieval Augmented Generation) knowledge bases.Basic Usage
Python Code Execution: PythonTools
Execute Python code safely in a controlled environment.Installation
Basic Usage
Available Functions
Execute Python codeParameters:
code(str): Python code to executepip_packages(list): Packages to install before execution
Shell Commands: ShellTools
Execute shell commands in a controlled environment.Basic Usage
API Integration: APITools
Make HTTP requests to any REST API.Basic Usage
Next Steps
Custom Tools
Learn how to create your own custom tools
MCP Integration
Connect to Model Context Protocol servers
Tool Cookbook
See 100+ real-world examples in the cookbook
Tools Overview
Browse all 100+ available tools