repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/financial_datasets_tools.py | cookbook/14_tools/financial_datasets_tools.py | """
Financial Datasets API Toolkit Example
This example demonstrates various Financial Datasets API functionalities including
financial statements, stock prices, news, insider trades, and more.
Prerequisites:
- Set the environment variable `FINANCIAL_DATASETS_API_KEY` with your Financial Datasets API key.
You can ob... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/visualization_tools.py | cookbook/14_tools/visualization_tools.py | """📊 Data Visualization Tools - Create Charts and Graphs with AI Agents
This example shows how to use the VisualizationTools to create various types of charts
and graphs for data visualization. Demonstrates include_tools/exclude_tools patterns
for selective visualization function access.
Run: `pip install matplotlib... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/file_tools.py | cookbook/14_tools/file_tools.py | """
File Tools - File System Operations and Management
This example demonstrates how to use FileTools for file operations.
Shows enable_ flag patterns for selective function access.
FileTools is a small tool (<6 functions) so it uses enable_ flags.
"""
from pathlib import Path
from agno.agent import Agent
from agno.... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/crawl4ai_tools.py | cookbook/14_tools/crawl4ai_tools.py | """
Crawl4AI Tools - Web Scraping and Content Extraction
This example demonstrates how to use Crawl4aiTools for web crawling and content extraction.
Shows enable_ flag patterns for selective function access.
Crawl4aiTools is a small tool (<6 functions) so it uses enable_ flags.
Run: `pip install crawl4ai` to install ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/resend_tools.py | cookbook/14_tools/resend_tools.py | from agno.agent import Agent
from agno.tools.resend import ResendTools
from_email = "<enter_from_email>"
to_email = "<enter_to_email>"
agent = Agent(tools=[ResendTools(from_email=from_email)])
agent.print_response(f"Send an email to {to_email} greeting them with hello world")
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/newspaper_tools.py | cookbook/14_tools/newspaper_tools.py | from agno.agent import Agent
from agno.tools.newspaper import NewspaperTools
agent = Agent(tools=[NewspaperTools()])
agent.print_response("Please summarize https://en.wikipedia.org/wiki/Language_model")
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/googlecalendar_tools.py | cookbook/14_tools/googlecalendar_tools.py | """
Steps to get the Google OAuth Credentials (Reference : https://developers.google.com/calendar/api/quickstart/python)
1. Enable Google Calender API
- Go To https://console.cloud.google.com/apis/enableflow?apiid=calendar-json.googleapis.com
- Select Project and Enable The API
2. Go To API & Service -> OAuth... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/linear_tools.py | cookbook/14_tools/linear_tools.py | from agno.agent import Agent
from agno.tools.linear import LinearTools
agent = Agent(
name="Linear Tool Agent",
tools=[LinearTools()],
markdown=True,
)
user_id = "69069"
issue_id = "6969"
team_id = "73"
new_title = "updated title for issue"
new_issue_title = "title for new issue"
desc = "issue descriptio... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/aws_ses_tools.py | cookbook/14_tools/aws_ses_tools.py | """
AWS SES (Simple Email Service) Setup Instructions:
1. Go to AWS SES Console and verify your domain or email address:
- For production:
a. Go to AWS SES Console > Verified Identities > Create Identity
b. Choose "Domain" and follow DNS verification steps
c. Add DKIM and SPF records to your domain's... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/docker_tools.py | cookbook/14_tools/docker_tools.py | import sys
from agno.agent import Agent
try:
from agno.tools.docker import DockerTools
# Example 1: Include specific Docker functions for container management
container_tools = DockerTools(
include_tools=[
"list_containers",
"start_container",
"stop_container",... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/linkup_tools.py | cookbook/14_tools/linkup_tools.py | from agno.agent import Agent
from agno.tools.linkup import LinkupTools
agent = Agent(tools=[LinkupTools()])
agent.print_response("What's the latest news in French politics?", markdown=True)
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/whatsapp_tools.py | cookbook/14_tools/whatsapp_tools.py | """
WhatsApp Cookbook
----------------
This cookbook demonstrates how to use WhatsApp integration with Agno. Before running this example,
you'll need to complete these setup steps:
1. Create Meta Developer Account
- Go to [Meta Developer Portal](https://developers.facebook.com/) and create a new account
- Creat... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/firecrawl_tools.py | cookbook/14_tools/firecrawl_tools.py | """
This is an example of how to use the FirecrawlTools.
Prerequisites:
- Create a Firecrawl account and get an API key
- Set the API key as an environment variable:
export FIRECRAWL_API_KEY=<your-api-key>
"""
from agno.agent import Agent
from agno.tools.firecrawl import FirecrawlTools
agent = Agent(
tools=[... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/nano_banana_tools.py | cookbook/14_tools/nano_banana_tools.py | """
Example showing how to use the NanoBananaTools toolkit with your Agno Agent.
Usage:
- Set your Google API key as environment variable: `export GOOGLE_API_KEY="your_api_key"`
- Run `pip install agno google-genai Pillow` to install dependencies
"""
from pathlib import Path
from agno.agent import Agent
from agno.to... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models_lab_tools.py | cookbook/14_tools/models_lab_tools.py | """Run `pip install requests` to install dependencies."""
from agno.agent import Agent
from agno.models.response import FileType
from agno.tools.models_labs import ModelsLabTools
from agno.utils.media import download_audio
from agno.utils.pprint import pprint_run_response
# Create a video agent (set to make MP4)
agen... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/multiple_tools.py | cookbook/14_tools/multiple_tools.py | """Run `pip install openai ddgs yfinance` to install dependencies."""
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.yfinance import YFinanceTools
agent = Agent(
model=OpenAIChat(id="gpt-4o"),
tools=[DuckDuckGoTools(), Y... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/google_maps_tools.py | cookbook/14_tools/google_maps_tools.py | """
Google Maps Tools - Location and Business Information Agent
This example demonstrates various Google Maps API functionalities including business search,
directions, geocoding, address validation, and more. Shows how to use include_tools and
exclude_tools parameters for selective function access.
Prerequisites:
- ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/webex_tools.py | cookbook/14_tools/webex_tools.py | """
Run `pip install openai webexpythonsdk` to install dependencies.
To get the Webex Teams Access token refer to - https://developer.webex.com/docs/bots
Steps:
1. Sign up for Webex Teams and go to the Webex [Developer Portal](https://developer.webex.com/)
2. Create the Bot
2.1 Click in the top-right on your prof... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/googlesheets_tools.py | cookbook/14_tools/googlesheets_tools.py | """
Google Sheets Toolkit can be used to read, create, update and duplicate Google Sheets.
Example spreadsheet: https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/
The ID is the URL of the spreadsheet and the range is the sheet name and the range of cells to read.
If you'd like to us... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/notion_tools.py | cookbook/14_tools/notion_tools.py | from agno.agent import Agent
from agno.tools.notion import NotionTools
# Notion Tools Demonstration Script
"""
This script showcases the power of organizing and managing content in Notion using AI.
Automatically categorize, store, and retrieve information from your Notion workspace!
---
Configuration Instructions:
1.... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/telegram_tools.py | cookbook/14_tools/telegram_tools.py | """
Telegram Tools - Bot Communication and Messaging
This example demonstrates how to use TelegramTools for Telegram bot operations.
Shows enable_ flag patterns for selective function access.
TelegramTools is a small tool (<6 functions) so it uses enable_ flags.
Prerequisites:
- Create a new bot with BotFather on Tel... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/postgres_tools.py | cookbook/14_tools/postgres_tools.py | from agno.agent import Agent
from agno.tools.postgres import PostgresTools
# Example 1: Include specific Postgres functions (default behavior - all functions included)
agent = Agent(
tools=[
PostgresTools(
host="localhost",
port=5532,
db_name="ai",
user="ai",... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/opencv_tools.py | cookbook/14_tools/opencv_tools.py | """
OpenCV Tools - Computer Vision and Image Processing
This example demonstrates how to use OpenCVTools for computer vision tasks.
Shows enable_ flag patterns for selective function access.
OpenCVTools is a small tool (<6 functions) so it uses enable_ flags.
Steps to use OpenCV Tools:
1. Install OpenCV
- Run: pi... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/brandfetch_tools.py | cookbook/14_tools/brandfetch_tools.py | """
You can use the Brandfetch API to retrieve the company's brand information.
Register an account at: https://developers.brandfetch.com/register
For the Brand API, you can use the `brand` parameter to True. (default is True)
For the Brand Search API, you can use the `search` parameter to True. (default is False)
-... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/todoist_tools.py | cookbook/14_tools/todoist_tools.py | """
Example showing how to use the Todoist Tools with Agno
Requirements:
- Sign up/login to Todoist and get a Todoist API Token (get from https://app.todoist.com/app/settings/integrations/developer)
- pip install todoist-api-python
Usage:
- Set the following environment variables:
export TODOIST_API_TOKEN="your_a... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/openweather_tools.py | cookbook/14_tools/openweather_tools.py | """
OpenWeatherMap API Integration Example
This example demonstrates how to use the OpenWeatherTools to get weather data
from the OpenWeatherMap API.
Prerequisites:
1. Get an API key from https://openweathermap.org/api
2. Set the OPENWEATHER_API_KEY environment variable or pass it directly to the tool
Usage:
- Get c... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/dalle_tools.py | cookbook/14_tools/dalle_tools.py | """Run `pip install openai` to install dependencies."""
from pathlib import Path
from agno.agent import Agent
from agno.tools.dalle import DalleTools
from agno.utils.media import download_image
# Example 1: Basic DALL-E agent with all functions enabled
agent = Agent(tools=[DalleTools(all=True)], name="DALL-E Image G... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/arxiv_tools.py | cookbook/14_tools/arxiv_tools.py | """
ArXiv Tools - Academic Paper Search and Research
This example demonstrates how to use ArxivTools for searching academic papers.
Shows enable_ flag patterns for selective function access.
ArxivTools is a small tool (<6 functions) so it uses enable_ flags.
Run: `pip install arxiv` to install the dependencies
"""
f... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/calculator_tools.py | cookbook/14_tools/calculator_tools.py | from agno.agent import Agent
from agno.tools.calculator import CalculatorTools
# Example 1: Include specific calculator functions for basic operations
basic_calc_agent = Agent(
tools=[CalculatorTools(include_tools=["add", "subtract", "multiply", "divide"])],
markdown=True,
)
# Example 2: Exclude advanced func... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/cartesia_tools.py | cookbook/14_tools/cartesia_tools.py | """
Get an API key from https://play.cartesia.ai/keys
Run `pip install cartesia` to install the dependencies.
"""
from agno.agent import Agent
from agno.tools.cartesia import CartesiaTools
from agno.utils.audio import write_audio_to_file
# Initialize Agent with Cartesia tools
agent = Agent(
name="Cartesia TTS Ag... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/website_tools_knowledge.py | cookbook/14_tools/website_tools_knowledge.py | from agno.agent import Agent
from agno.knowledge.knowledge import Knowledge
from agno.tools.website import WebsiteTools
from agno.vectordb.pgvector import PgVector
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
# Create PDF URL knowledge base
kb = Knowledge(
vector_db=PgVector(
table_name="docume... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/giphy_tools.py | cookbook/14_tools/giphy_tools.py | from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.giphy import GiphyTools
"""Create an agent specialized in creating gifs using Giphy """
# Example 1: Enable specific Giphy functions
gif_agent = Agent(
name="Gif Generator Agent",
model=OpenAIChat(id="gpt-4o"),
tools=[G... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/searxng_tools.py | cookbook/14_tools/searxng_tools.py | from agno.agent import Agent
from agno.tools.searxng import SearxngTools
# Initialize Searxng with your Searxng instance URL
searxng = SearxngTools(
host="http://localhost:53153",
engines=[],
fixed_max_results=5,
news=True,
science=True,
)
# Create an agent with Searxng
agent = Agent(tools=[searxn... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/pubmed_tools.py | cookbook/14_tools/pubmed_tools.py | from agno.agent import Agent
from agno.tools.pubmed import PubmedTools
# Example 1: Enable all PubMed functions
agent_all = Agent(
tools=[
PubmedTools(
all=True, # Enable all PubMed search functions
)
],
markdown=True,
)
# Example 2: Enable specific PubMed functions only
agent... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/brightdata_tools.py | cookbook/14_tools/brightdata_tools.py | from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.brightdata import BrightDataTools
# Example 1: Include specific BrightData functions for web scraping
scraping_agent = Agent(
model=OpenAIChat(id="gpt-4o"),
tools=[
BrightDataTools(include_tools=["web_scraper", "serp... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/moviepy_video_tools.py | cookbook/14_tools/moviepy_video_tools.py | from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.moviepy_video import MoviePyVideoTools
from agno.tools.openai import OpenAITools
video_tools = MoviePyVideoTools(
process_video=True, generate_captions=True, embed_captions=True
)
openai_tools = OpenAITools()
video_caption_age... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/newspaper4k_tools.py | cookbook/14_tools/newspaper4k_tools.py | from agno.agent import Agent
from agno.tools.newspaper4k import Newspaper4kTools
agent = Agent(tools=[Newspaper4kTools(enable_read_article=True)])
agent.print_response(
"Please summarize https://www.rockymountaineer.com/blog/experience-icefields-parkway-scenic-drive-lifetime"
)
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/custom_async_tools.py | cookbook/14_tools/custom_async_tools.py | import asyncio
from dataclasses import dataclass
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from pydantic import BaseModel
async def dict_tool(name: str, age: int, city: str):
"""
Return a dictionary with the name, age, and city of the person.
"""
return {"name": name, "ag... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/wikipedia_tools.py | cookbook/14_tools/wikipedia_tools.py | from agno.agent import Agent
from agno.knowledge.knowledge import Knowledge
from agno.tools.wikipedia import WikipediaTools
# Example 1: Basic Wikipedia search (without knowledge base)
agent = Agent(
tools=[
WikipediaTools(
enable_search_wikipedia=True,
enable_search_wikipedia_and_u... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/__init__.py | cookbook/14_tools/__init__.py | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false | |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/google_bigquery_tools.py | cookbook/14_tools/google_bigquery_tools.py | """
You can set the following environment variables for your Google Cloud project:
export GOOGLE_CLOUD_PROJECT="your-project-id"
export GOOGLE_CLOUD_LOCATION="your-location"
Or you can set the following parameters in the BQTools class:
BQTools(
project="<your-project-id>",
location="<your-location>",
dat... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/mem0_tools.py | cookbook/14_tools/mem0_tools.py | """
This example demonstrates how to use the Mem0 toolkit with Agno agents.
To get started, please export your Mem0 API key as an environment variable. You can get your Mem0 API key from https://app.mem0.ai/dashboard/api-keys
export MEM0_API_KEY=<your-mem0-api-key>
export MEM0_ORG_ID=<your-mem0-org-id> (Optional)
exp... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/python_function_as_tool.py | cookbook/14_tools/python_function_as_tool.py | import json
import httpx
from agno.agent import Agent
def get_top_hackernews_stories(num_stories: int = 10) -> str:
"""Use this function to get top stories from Hacker News.
Args:
num_stories (int): Number of stories to return. Defaults to 10.
Returns:
str: JSON string of top stories.
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/reddit_tools.py | cookbook/14_tools/reddit_tools.py | """
Steps to get Reddit credentials:
1. Create/Login to Reddit account
- Go to https://www.reddit.com
2. Create a Reddit App
- Go to https://www.reddit.com/prefs/apps
- Click "Create App" or "Create Another App" button
- Fill in required details:
* Name: Your app name
* App type: Select "script"... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/lumalabs_tools.py | cookbook/14_tools/lumalabs_tools.py | from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.lumalab import LumaLabTools
"""Create an agent specialized for Luma AI video generation"""
luma_agent = Agent(
name="Luma Video Agent",
id="luma-video-agent",
model=OpenAIChat(id="gpt-4o"),
tools=[LumaLabTools()], ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/email_tools.py | cookbook/14_tools/email_tools.py | from agno.agent import Agent
from agno.tools.email import EmailTools
receiver_email = "<receiver_email>"
sender_email = "<sender_email>"
sender_name = "<sender_name>"
sender_passkey = "<sender_passkey>"
# Example 1: Enable specific email functions
agent = Agent(
tools=[
EmailTools(
receiver_em... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/calcom_tools.py | cookbook/14_tools/calcom_tools.py | from datetime import datetime
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.calcom import CalComTools
"""
Example showing how to use the Cal.com Tools with Agno.
Requirements:
- Cal.com API key (get from cal.com/settings/developer/api-keys)
- Event Type ID from Cal.com
- pip ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/zendesk_tools.py | cookbook/14_tools/zendesk_tools.py | from agno.agent import Agent
from agno.tools.zendesk import ZendeskTools
agent = Agent(tools=[ZendeskTools()])
agent.print_response("How do I login?", markdown=True)
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/bravesearch_tools.py | cookbook/14_tools/bravesearch_tools.py | from agno.agent import Agent
from agno.tools.bravesearch import BraveSearchTools
# Example 1: Enable specific Brave Search functions
agent = Agent(
tools=[BraveSearchTools(enable_brave_search=True)],
description="You are a news agent that helps users find the latest news.",
instructions=[
"Given a ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/shopify_tools.py | cookbook/14_tools/shopify_tools.py | """
Example: Using ShopifyTools with an Agno Agent
This example shows how to create an agent that can:
- Analyze sales data and identify top-selling products
- Find products that are frequently bought together
- Track inventory levels and identify low-stock items
- Generate sales reports and trends
Prerequisites:
Set... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/duckduckgo_tools.py | cookbook/14_tools/duckduckgo_tools.py | from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
# Example 1: Enable specific DuckDuckGo functions
agent = Agent(
model=OpenAIChat(id="gpt-4o"),
tools=[DuckDuckGoTools(enable_search=True, enable_news=False)],
)
# Example 2: Enable all Duc... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/x_tools.py | cookbook/14_tools/x_tools.py | from agno.agent import Agent
from agno.tools.x import XTools
"""
To set up an X developer account and obtain the necessary keys, follow these steps:
1. **Create an X Developer Account:**
- Go to the X Developer website: https://developer.x.com/
- Sign in with your X account or create a new one if you don't have... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/slack_tools.py | cookbook/14_tools/slack_tools.py | """Run `pip install openai slack-sdk` to install dependencies."""
from agno.agent import Agent
from agno.tools.slack import SlackTools
# Example 1: Enable all Slack functions
agent_all = Agent(
tools=[
SlackTools(
all=True, # Enable all Slack functions
)
],
markdown=True,
)
#... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/redshift_tools.py | cookbook/14_tools/redshift_tools.py | """
Amazon Redshift Tools Example
For IAM authentication with environment variables, set:
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_SESSION_TOKEN="your-session-token"
export REDSHIFT_HOST="your-workgroup.123456789.us-east-1.redshift-serverless.amazonaws.com"
e... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/agentql_tools.py | cookbook/14_tools/agentql_tools.py | """
AgentQL Tools for scraping websites.
Prerequisites:
- Set the environment variable `AGENTQL_API_KEY` with your AgentQL API key.
You can obtain the API key from the AgentQL website:
https://agentql.com/
- Run `playwright install` to install a browser extension for playwright.
AgentQL will open up a browser ins... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/aws_lambda_tools.py | cookbook/14_tools/aws_lambda_tools.py | """
AWS Lambda Tools - Serverless Function Management
This example demonstrates how to use AWSLambdaTools for AWS Lambda operations.
Shows enable_ flag patterns for selective function access.
AWSLambdaTools is a small tool (<6 functions) so it uses enable_ flags.
Prerequisites:
- Run: `pip install boto3` to install d... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/zoom_tools.py | cookbook/14_tools/zoom_tools.py | """
Zoom Tools Example - Demonstrates how to use the Zoom toolkit for meeting management.
This example shows how to:
1. Set up authentication with Zoom API
2. Initialize the ZoomTools with proper credentials
3. Create an agent that can manage Zoom meetings
4. Use various Zoom API functionalities through natural langua... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/github_tools.py | cookbook/14_tools/github_tools.py | """
GitHub Authentication Setup Guide
1. Getting Personal Access Token (PAT):
a. Navigate to GitHub Settings:
- Log into GitHub
- Click profile picture (top-right)
- Select "Settings"
- Go to "Developer settings" → "Personal access tokens" → "Tokens (classic)"
b. Generate New Token:
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/jira_tools.py | cookbook/14_tools/jira_tools.py | from agno.agent import Agent
from agno.tools.jira import JiraTools
# Example 1: Enable all Jira functions
agent_all = Agent(
tools=[
JiraTools(
all=True, # Enable all Jira functions
)
],
markdown=True,
)
# Example 2: Enable specific Jira functions only
agent_specific = Agent(
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/spider_tools.py | cookbook/14_tools/spider_tools.py | from agno.agent import Agent
from agno.tools.spider import SpiderTools
# Example 1: All functions available (default behavior)
agent_all = Agent(
name="Spider Agent - All Functions",
tools=[SpiderTools(optional_params={"proxy_enabled": True})],
instructions=["You have access to all Spider web scraping capa... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/google_drive.py | cookbook/14_tools/google_drive.py | """
This example demonstrates how to use the Google Drive Toolkit, allowing your Agents to interact with Google Drive.
Google Drive Toolkit can be used to read, create, update and duplicate Google Drive files.
Setup instructions for the Auth flow:
1. Go to the Google Cloud Console.
2. Navigate to "APIs & Services" > ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/sql_tools.py | cookbook/14_tools/sql_tools.py | from agno.agent import Agent
from agno.tools.sql import SQLTools
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
agent = Agent(tools=[SQLTools(db_url=db_url)])
agent.print_response(
"List the tables in the database. Tell me about contents of one of the tables",
markdown=True,
)
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/pandas_tools.py | cookbook/14_tools/pandas_tools.py | """
Pandas Tools - Data Analysis and DataFrame Operations
This example demonstrates how to use PandasTools for data manipulation and analysis.
Shows enable_ flag patterns for selective function access.
PandasTools is a small tool (<6 functions) so it uses enable_ flags.
Run: `pip install pandas` to install the depend... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/valyu_tools.py | cookbook/14_tools/valyu_tools.py | """
This cookbook demonstrates how to use the Valyu Toolkit for academic and web search.
Prerequisites:
- Install: pip install valyu
- Get API key: https://platform.valyu.network
- Set environment variable: export VALYU_API_KEY with your api key or pass the api key while initializing the toolkit
"""
from agno.agent i... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/custom_tools.py | cookbook/14_tools/custom_tools.py | from dataclasses import dataclass
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from pydantic import BaseModel
def dict_tool(name: str, age: int, city: str):
"""
Return a dictionary with the name, age, and city of the person.
"""
return {"name": name, "age": age, "city": city... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/yfinance_tools.py | cookbook/14_tools/yfinance_tools.py | """
YFinance Tools - Stock Market Analysis and Financial Data
This example demonstrates how to use YFinanceTools for financial analysis,
showing include_tools/exclude_tools patterns for selective function access.
YFinanceTools is a large tool (≥6 functions) so it uses include_tools/exclude_tools.
Run: `pip install yf... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/serper_tools.py | cookbook/14_tools/serper_tools.py | """
This is a example of an agent using the Serper Toolkit.
You can obtain an API key from https://serper.dev/
- Set your API key as an environment variable: export SERPER_API_KEY="your_api_key_here"
- or pass api_key to the SerperTools class
"""
from agno.agent import Agent
from agno.tools.serper import SerperToo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/oxylabs_tools.py | cookbook/14_tools/oxylabs_tools.py | from agno.agent import Agent
from agno.tools.oxylabs import OxylabsTools
agent = Agent(
tools=[OxylabsTools()],
markdown=True,
)
# Example 1: Google Search
agent.print_response(
"Let's search for 'latest iPhone reviews' and provide a summary of the top 3 results. ",
)
# Example 2: Amazon Product Search
#... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/daytona_tools.py | cookbook/14_tools/daytona_tools.py | """
👩💻 Agent with Daytona tools
This example shows how to use Agno's Daytona integration to run Agent-generated code in a remote, secure sandbox.
1. Get your Daytona API key and API URL: https://app.daytona.io/dashboard/keys
2. Set the API key and API URL as environment variables:
export DAYTONA_API_KEY=<your_... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/youtube_tools.py | cookbook/14_tools/youtube_tools.py | from agno.agent import Agent
from agno.tools.youtube import YouTubeTools
agent = Agent(
tools=[YouTubeTools()],
description="You are a YouTube agent. Obtain the captions of a YouTube video and answer questions.",
)
agent.print_response(
"Summarize this video https://www.youtube.com/watch?v=Iv9dewmcFbs&t", ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/parallel_tools.py | cookbook/14_tools/parallel_tools.py | from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.parallel import ParallelTools
agent = Agent(
model=OpenAIResponses(id="gpt-5.1"),
tools=[ParallelTools()],
instructions="No need to tell me its based on your research.",
markdown=True,
)
agent.print_response(
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/duckdb_tools.py | cookbook/14_tools/duckdb_tools.py | from agno.agent import Agent
from agno.tools.duckdb import DuckDbTools
agent = Agent(
tools=[DuckDbTools()],
instructions="Use this file for Movies data: https://agno-public.s3.amazonaws.com/demo_data/IMDB-Movie-Data.csv",
)
agent.print_response(
"What is the average rating of movies?", markdown=True, stre... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/bitbucket_tools.py | cookbook/14_tools/bitbucket_tools.py | """
Setup:
1. Generate an App Password:
- Go to "Personal Bitbucket settings" -> "App passwords"
- Create a new App password with the appropriate permissions
2. Set environment variables:
- BITBUCKET_USERNAME: Your Bitbucket username
- BITBUCKET_PASSWORD: Your generated App password
"""
from agno.agent im... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/website_tools.py | cookbook/14_tools/website_tools.py | """
Website Tools - Web Scraping and Content Analysis
This example demonstrates how to use WebsiteTools for web scraping and analysis.
Shows enable_ flag patterns for selective function access.
WebsiteTools is a small tool (<6 functions) so it uses enable_ flags.
"""
from agno.agent import Agent
from agno.tools.websi... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/browserbase_tools.py | cookbook/14_tools/browserbase_tools.py | from agno.agent import Agent
from agno.tools.browserbase import BrowserbaseTools
# Browserbase Configuration
# -------------------------------
# These environment variables are required for the BrowserbaseTools to function properly.
# You can set them in your .env file or export them directly in your terminal.
# BROW... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/exceptions/stop_agent_exception.py | cookbook/14_tools/exceptions/stop_agent_exception.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.exceptions import StopAgentRun
from agno.models.openai import OpenAIChat
from agno.run import RunContext
from agno.utils.log import logger
def add_item(run_context: RunContext, item: str) -> str:
"""Add an item to the shopping list."""
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/exceptions/retry_tool_call_from_post_hook.py | cookbook/14_tools/exceptions/retry_tool_call_from_post_hook.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.exceptions import RetryAgentRun
from agno.models.openai import OpenAIChat
from agno.run import RunContext
from agno.tools import FunctionCall, tool
from agno.utils.log import logger
def post_hook(run_context: RunContext, fc: FunctionCall):
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/exceptions/retry_tool_call.py | cookbook/14_tools/exceptions/retry_tool_call.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.exceptions import RetryAgentRun
from agno.models.openai import OpenAIChat
from agno.run import RunContext
from agno.utils.log import logger
def add_item(run_context: RunContext, item: str) -> str:
"""Add an item to the shopping list."""
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models/gemini_image_generation.py | cookbook/14_tools/models/gemini_image_generation.py | """🔧 Example: Using the GeminiTools Toolkit for Image Generation
An Agent using the Gemini image generation tool.
Example prompts to try:
- "Generate an image of a dog and tell me the color of the dog"
- "Create an image of a cat driving a car"
Run `pip install google-genai agno` to install the necessary dependenci... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models/gemini_video_generation.py | cookbook/14_tools/models/gemini_video_generation.py | """🔧 Example: Using the GeminiTools Toolkit for Video Generation
An Agent using the Gemini video generation tool.
Video generation only works with Vertex AI.
Make sure you have set the GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION environment variables.
Example prompts to try:
- "Generate a 5-second video of a kit... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models/nebius_tools.py | cookbook/14_tools/models/nebius_tools.py | """Run `pip install openai agno` to install dependencies.
This example demonstrates how to use NebiusTools for text-to-image generation with Nebius Token Factory.
"""
import base64
import os
from pathlib import Path
from uuid import uuid4
from agno.agent import Agent
from agno.tools.models.nebius import NebiusTools
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models/morph.py | cookbook/14_tools/models/morph.py | """
Simple example showing Morph Fast Apply with file creation and editing.
"""
from pathlib import Path
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.models.morph import MorphTools
def create_sample_file():
"""Create a simple Python file in tmp directory for testing"""
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models/openai_tools.py | cookbook/14_tools/models/openai_tools.py | """
This example demonstrates how to use the OpenAITools to transcribe an audio file.
"""
import base64
from pathlib import Path
from agno.agent import Agent
from agno.run.agent import RunOutput
from agno.tools.openai import OpenAITools
from agno.utils.media import download_file, save_base64_data
# Example 1: Transc... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models/azure_openai_tools.py | cookbook/14_tools/models/azure_openai_tools.py | """Example showing how to use Azure OpenAI Tools with Agno.
Requirements:
1. Azure OpenAI service setup with DALL-E deployment and chat model deployment
2. Environment variables:
- AZURE_OPENAI_API_KEY - Your Azure OpenAI API key
- AZURE_OPENAI_ENDPOINT - The Azure OpenAI endpoint URL
- AZURE_OPENAI_DEPLOYMEN... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/models/__init__.py | cookbook/14_tools/models/__init__.py | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false | |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/async/groq-demo.py | cookbook/14_tools/async/groq-demo.py | import asyncio
import time
from agno.agent import Agent
from agno.models.groq import Groq
from agno.utils.log import logger
#####################################
# Async execution
#####################################
async def atask1(delay: int):
"""Simulate a task that takes a random amount of time to complet... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/async/__init__.py | cookbook/14_tools/async/__init__.py | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false | |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/async/openai-demo.py | cookbook/14_tools/async/openai-demo.py | import asyncio
import time
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.utils.log import logger
#####################################
# Async execution
#####################################
async def atask1(delay: int):
"""Simulate a task that takes a random amount of time to... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hook.py | cookbook/14_tools/tool_hooks/tool_hook.py | """Show how to use a tool execution hook, to run logic before and after a tool is called."""
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.utils.log import logger
def logger_hook(function_name... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hook_in_toolkit.py | cookbook/14_tools/tool_hooks/tool_hook_in_toolkit.py | """Show how to use a tool execution hook, to run logic before and after a tool is called."""
import json
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.tools import Toolkit
from agno.utils.log import logger
class CustomerDBTools(Toolkit):
def __init__(self, *args, **kwargs):
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/pre_and_post_hooks.py | cookbook/14_tools/tool_hooks/pre_and_post_hooks.py | import json
from typing import Iterator
import httpx
from agno.agent import Agent
from agno.tools import FunctionCall, tool
def pre_hook(fc: FunctionCall):
print(f"Pre-hook: {fc.function.name}")
print(f"Arguments: {fc.arguments}")
print(f"Result: {fc.result}")
def post_hook(fc: FunctionCall):
print... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hook_in_toolkit_async.py | cookbook/14_tools/tool_hooks/tool_hook_in_toolkit_async.py | """Show how to use a tool execution hook with async functions, to run logic before and after a tool is called."""
import asyncio
import json
from inspect import iscoroutinefunction
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.tools import Toolkit
from agno.utils.log import logger
cl... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hook_in_toolkit_with_state.py | cookbook/14_tools/tool_hooks/tool_hook_in_toolkit_with_state.py | """Show how to use a tool execution hook, to run logic before and after a tool is called."""
import json
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.run import RunContext
from agno.tools import Toolkit
class CustomerDBTools(Toolkit):
def __init__(self, *args, **kwargs):
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/async_pre_and_post_hooks.py | cookbook/14_tools/tool_hooks/async_pre_and_post_hooks.py | import asyncio
import json
from typing import AsyncIterator
import httpx
from agno.agent import Agent
from agno.tools import FunctionCall, tool
async def pre_hook(fc: FunctionCall):
print(f"About to run: {fc.function.name}")
async def post_hook(fc: FunctionCall):
print("After running: ", fc.function.name)
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hooks_in_toolkit_nested.py | cookbook/14_tools/tool_hooks/tool_hooks_in_toolkit_nested.py | """Show how to use multiple tool execution hooks, to run logic before and after a tool is called."""
import json
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.tools import Toolkit
from agno.utils.log import logger
class CustomerDBTools(Toolkit):
def __init__(self, *args, **kwargs... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hook_in_toolkit_with_state_nested.py | cookbook/14_tools/tool_hooks/tool_hook_in_toolkit_with_state_nested.py | """Show how to use a tool execution hook, to run logic before and after a tool is called."""
import json
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.run import RunContext
from agno.tools import Toolkit
from agno.utils.log import logger
class CustomerDBTools(Toolkit):
def __init... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hooks_in_toolkit_nested_async.py | cookbook/14_tools/tool_hooks/tool_hooks_in_toolkit_nested_async.py | """Show how to use multiple tool execution hooks with async functions, to run logic before and after a tool is called."""
import asyncio
import json
from inspect import iscoroutinefunction
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.tools import Toolkit
from agno.utils.log import log... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/tool_hooks/tool_hook_async.py | cookbook/14_tools/tool_hooks/tool_hook_async.py | """Show how to use a tool execution hook with async functions, to run logic before and after a tool is called."""
import asyncio
from inspect import iscoroutinefunction
from typing import Any, Callable, Dict
from agno.agent import Agent
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.utils.log import logg... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/mcp/pipedream_google_calendar.py | cookbook/14_tools/mcp/pipedream_google_calendar.py | """
🗓️ Pipedream Google Calendar MCP
This example shows how to use Pipedream MCP servers (in this case the Google Calendar one) with Agno Agents.
1. Connect your Pipedream and Google Calendar accounts: https://mcp.pipedream.com/app/google_calendar
2. Get your Pipedream MCP server url: https://mcp.pipedream.com/app/g... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/14_tools/mcp/filesystem.py | cookbook/14_tools/mcp/filesystem.py | """📁 MCP Filesystem Agent - Your Personal File Explorer!
This example shows how to create a filesystem agent that uses MCP to explore,
analyze, and provide insights about files and directories. The agent leverages the Model
Context Protocol (MCP) to interact with the filesystem, allowing it to answer questions
about ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.