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/02_examples/01_agents/deep_research_agent_exa.py | cookbook/02_examples/01_agents/deep_research_agent_exa.py | """Example: Advanced Research Agent using Exa Research Tools
This example demonstrates how to use the Exa research tool for complex,
structured research tasks with automatic citation tracking.
"""
from textwrap import dedent
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.exa 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/02_examples/01_agents/pydantic_model_as_input.py | cookbook/02_examples/01_agents/pydantic_model_as_input.py | from typing import List
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.hackernews import HackerNewsTools
from pydantic import BaseModel, Field
class ResearchTopic(BaseModel):
"""Structured research topic with specific requirements"""
topic: str
focus_areas: List[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/02_examples/01_agents/book_recommendation.py | cookbook/02_examples/01_agents/book_recommendation.py | """📚 Book Recommendation Agent - Your Personal Literary Curator!
This example shows how to create an intelligent book recommendation system that provides
comprehensive literary suggestions based on your preferences. The agent combines book databases,
ratings, reviews, and upcoming releases to deliver personalized rea... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/recipe_rag_image.py | cookbook/02_examples/01_agents/recipe_rag_image.py | """Example: Multi-Modal RAG & Image Agent
An agent that uses Llama 4 for multi-modal RAG and OpenAITools to create a visual, step-by-step image manual for a recipe.
Run: `pip install openai agno groq cohere` to install the dependencies
"""
import asyncio
from pathlib import Path
from agno.agent import Agent
from 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/02_examples/01_agents/thinking_finance_agent.py | cookbook/02_examples/01_agents/thinking_finance_agent.py | """🗞️ Finance Agent - Your Personal Market Analyst!
This example shows how to create a sophisticated financial analyst that provides
comprehensive market insights using real-time data. The agent combines stock market data,
analyst recommendations, company information, and latest news to deliver professional-grade
fin... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/social_media_agent.py | cookbook/02_examples/01_agents/social_media_agent.py | """Social Media Agent Example with Dummy Dataset
This example demonstrates how to create an agent that:
1. Analyzes a dummy dataset of tweets
2. Leverages LLM capabilities to perform sophisticated sentiment analysis
3. Provides insights about the overall sentiment around a topic
"""
from agno.agent import Agent
from ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/run_as_cli.py | cookbook/02_examples/01_agents/run_as_cli.py | """📝 Interactive Writing Assistant - CLI App Example
This example shows how to create an interactive CLI app with an agent.
Run `pip install openai agno duckduckgo-search` to install dependencies.
"""
from textwrap import dedent
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.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/02_examples/01_agents/startup_analyst_agent.py | cookbook/02_examples/01_agents/startup_analyst_agent.py | """
Startup Intelligence Agent - Comprehensive Company Analysis
This agent acts as a startup analyst that can perform comprehensive due diligence on companies
Prerequisites:
- Set SGAI_API_KEY environment variable with your ScrapeGraph API key
- Install dependencies: pip install scrapegraph-py agno openai
"""
from 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/02_examples/01_agents/agent_with_memory.py | cookbook/02_examples/01_agents/agent_with_memory.py | from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.anthropic import Claude
from rich.pretty import pprint
# Database connection
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
db = PostgresDb(
db_url=db_url,
session_table="sessions",
memory_table="user_memories",
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/youtube_agent.py | cookbook/02_examples/01_agents/youtube_agent.py | """🎥 YouTube Agent - Your Video Content Expert!
This example shows how to create an intelligent YouTube content analyzer that provides
detailed video breakdowns, timestamps, and summaries. Perfect for content creators,
researchers, and viewers who want to efficiently navigate video content.
Example prompts to try:
-... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/recipe_creator.py | cookbook/02_examples/01_agents/recipe_creator.py | """👨🍳 Recipe Creator - Your Personal AI Chef!
This example shows how to create an intelligent recipe recommendation system that provides
detailed, personalized recipes based on your ingredients, dietary preferences, and time constraints.
The agent combines culinary knowledge, nutritional data, and cooking technique... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/basic_agent.py | cookbook/02_examples/01_agents/basic_agent.py | from agno.agent import Agent
from agno.models.anthropic import Claude
agent = Agent(
model=Claude(id="claude-3-7-sonnet-latest"),
instructions="You are an agent focused on responding in one line. All your responses must be super concise and focused.",
markdown=True,
)
runx = agent.run("What is the stock pr... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/agno_support_agent.py | cookbook/02_examples/01_agents/agno_support_agent.py | """🤖 Agno Support Agent - Your AI Assistant for Agno Framework!
This example shows how to create an AI support assistant that combines iterative knowledge searching
with Agno's documentation to provide comprehensive, well-researched answers about the Agno framework.
Key Features:
- Iterative knowledge base searching... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/deep_knowledge.py | cookbook/02_examples/01_agents/deep_knowledge.py | """🤔 DeepKnowledge - An AI Agent that iteratively searches a knowledge base to answer questions
This agent performs iterative searches through its knowledge base, breaking down complex
queries into sub-questions, and synthesizing comprehensive answers. It's designed to explore
topics deeply and thoroughly by followin... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/movie_recommedation.py | cookbook/02_examples/01_agents/movie_recommedation.py | """🎬 Movie Recommendation Agent - Your Personal Cinema Curator!
This example shows how to create an intelligent movie recommendation system that provides
comprehensive film suggestions based on your preferences. The agent combines movie databases,
ratings, reviews, and upcoming releases to deliver personalized movie ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/airbnb_mcp.py | cookbook/02_examples/01_agents/airbnb_mcp.py | """🏠 MCP Airbnb Agent - Search for Airbnb listings!
This example shows how to create an agent that uses MCP and Llama 4 to search for Airbnb listings.
1. Run: `pip install groq mcp agno` to install the dependencies
2. Export your GROQ_API_KEY
3. Run: `python cookbook/examples/agents/airbnb_mcp.py` to run the 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/02_examples/01_agents/agent_with_storage.py | cookbook/02_examples/01_agents/agent_with_storage.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.anthropic import Claude
from agno.tools.duckduckgo import DuckDuckGoTools
from rich.pretty import pprint
agent = Agent(
# This session_id is usually auto-generated
# But for this example, we can set it to a fixed value
# This... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/research_agent.py | cookbook/02_examples/01_agents/research_agent.py | """🔍 Research Agent - Your AI Investigative Journalist!
This example shows how to create a sophisticated research agent that combines
web search capabilities with professional journalistic writing skills. The agent performs
comprehensive research using multiple sources, fact-checks information, and delivers
well-stru... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/__init__.py | cookbook/02_examples/01_agents/__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/02_examples/01_agents/competitor_analysis_agent.py | cookbook/02_examples/01_agents/competitor_analysis_agent.py | """🔍 Competitor Analysis Agent - Your AI-Powered Market Intelligence System!
This example demonstrates how to build a sophisticated competitor analysis agent that combines powerful search and scraping capabilities with advanced reasoning tools to provide
comprehensive competitive intelligence. The agent performs deep... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/agno_assist.py | cookbook/02_examples/01_agents/agno_assist.py | import asyncio
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.knowledge.embedder.openai import OpenAIEmbedder
from agno.knowledge.knowledge import Knowledge
from agno.models.openai import OpenAIChat
from agno.vectordb.lancedb import LanceDb, SearchType
knowledge = Knowledge(
vector_db=... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/legal_consultant.py | cookbook/02_examples/01_agents/legal_consultant.py | import asyncio
from agno.agent import Agent
from agno.knowledge.knowledge import Knowledge
from agno.models.openai import OpenAIChat
from agno.vectordb.pgvector import PgVector
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
knowledge = Knowledge(
vector_db=PgVector(table_name="legal_docs", db_url=db_url... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/finance_agent_with_memory.py | cookbook/02_examples/01_agents/finance_agent_with_memory.py | """🗞️ Finance Agent with Memory - Your Market Analyst that remembers your preferences
1. Create virtual environment and install dependencies:
- Run `uv venv --python 3.12` to create a virtual environment
- Run `source .venv/bin/activate` to activate the virtual environment
- Run `uv pip install agno openai 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/02_examples/01_agents/agent_with_tools.py | cookbook/02_examples/01_agents/agent_with_tools.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.tools.yfinance import YFinanceTools
agent = Agent(
model=Claude(id="claude-3-7-sonnet-latest"),
tools=[YFinanceTools()],
markdown=True,
)
agent.print_response("What is the stock price of Apple?", stream=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/02_examples/01_agents/translation_agent.py | cookbook/02_examples/01_agents/translation_agent.py | import base64
from textwrap import dedent
from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.cartesia import CartesiaTools
from agno.utils.media import save_base64_data
agent_instructions = dedent(
"""Follow these steps SEQUENTIALLY to translate text and generate a localized voice ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/agent_team.py | cookbook/02_examples/01_agents/agent_team.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.reasoning import ReasoningTools
from agno.tools.yfinance import YFinanceTools
web_agent = Agent(
name="We... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/web_extraction_agent.py | cookbook/02_examples/01_agents/web_extraction_agent.py | from textwrap import dedent
from typing import Dict, List, Optional
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.firecrawl import FirecrawlTools
from pydantic import BaseModel, Field
from rich.pretty import pprint
class ContentSection(BaseModel):
"""Represents a section ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/agent_with_reasoning.py | cookbook/02_examples/01_agents/agent_with_reasoning.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.tools.parallel import ParallelTools
from agno.tools.reasoning import ReasoningTools
reasoning_agent = Agent(
model=Claude(id="claude-sonnet-4-5"),
tools=[ParallelTools(), ReasoningTools(add_instructions=True)],
instructions="On... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/01_agents/research_agent_exa.py | cookbook/02_examples/01_agents/research_agent_exa.py | """🎓 Research Scholar Agent - Your AI Academic Research Assistant!
This example shows how to create a sophisticated research agent that combines
academic search capabilities with scholarly writing expertise. The agent performs
thorough research using Exa's academic search, analyzes recent publications, and delivers
w... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/06_spotify_agent/spotify_agent.py | cookbook/02_examples/06_spotify_agent/spotify_agent.py | from os import getenv
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.anthropic import Claude
from agno.os import AgentOS
from agno.tools.spotify import SpotifyTools
# Your Spotify access token (get one from https://developer.spotify.com/)
SPOTIFY_TOKEN = getenv("SPOTIFY_TOKEN")
# 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/02_examples/06_spotify_agent/__init__.py | cookbook/02_examples/06_spotify_agent/__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/02_examples/06_spotify_agent/spotiy_auth.py | cookbook/02_examples/06_spotify_agent/spotiy_auth.py | import base64
import webbrowser
from urllib.parse import parse_qs, urlencode, urlparse
import requests
CLIENT_ID = "<YOUR_CLIENT_ID>"
CLIENT_SECRET = "<YOUR_CLIENT_SECRET>"
REDIRECT_URI = "http://127.0.0.1:8888/callback"
SCOPES = [
"user-read-email",
"user-read-private",
"playlist-modify-private",
"... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/news_agency_team.py | cookbook/02_examples/02_teams/news_agency_team.py | """Example of a Team using the `coordinate` mode to play the role of a News Agency.
1. Run: `pip install openai ddgs newspaper4k lxml_html_clean agno` to install the dependencies
2. Run: `python cookbook/examples/teams/coordinate_mode/news_agency_team.py` to run the agent
"""
from pathlib import Path
from agno.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/02_examples/02_teams/content_team.py | cookbook/02_examples/02_teams/content_team.py | from agno.agent import Agent
from agno.models.google.gemini import Gemini
from agno.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
# Create individual specialized agents
researcher = Agent(
name="Researcher",
role="Expert at finding information",
tools=[DuckDuckGoTools()],
model=Gem... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/autonomous_startup_team.py | cookbook/02_examples/02_teams/autonomous_startup_team.py | """Example of a Team using the `coordinate` mode to play the role of a CEO of a Startup.
1. Run: `pip install agno exa_py slack_sdk pgvector psycopg` to install the dependencies
2. Add the following environment variables:
- `EXA_API_KEY`
- `SLACK_TOKEN`
"""
from agno.agent import Agent
from agno.knowledge.knowledge 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/02_examples/02_teams/tic_tac_toe_team.py | cookbook/02_examples/02_teams/tic_tac_toe_team.py | from textwrap import dedent
from agno.agent import Agent
from agno.models.google.gemini import Gemini
from agno.models.openai import OpenAIChat
from agno.team.team import Team
player_1 = Agent(
name="Player 1",
role="Play Tic Tac Toe",
model=OpenAIChat(id="gpt-4o"),
add_name_to_context=True,
instr... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/hackernews_team.py | cookbook/02_examples/02_teams/hackernews_team.py | """Example of a Team using the `coordinate` mode to play the role of a HackerNews Researcher.
1. Run: `pip install openai ddgs newspaper4k lxml_html_clean agno` to install the dependencies
2. Run: `python cookbook/examples/teams/coordinate_mode/hackernews_team.py` to run the agent
"""
from typing import List
from 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/02_examples/02_teams/skyplanner_mcp_team.py | cookbook/02_examples/02_teams/skyplanner_mcp_team.py | """
This example demonstrates how to use the MCP protocol to coordinate a team of agents.
Prerequisites:
- Google Maps:
- Set the environment variable `GOOGLE_MAPS_API_KEY` with your Google Maps API key.
You can obtain the API key from the Google Cloud Console:
https://console.cloud.google.com/projectselec... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/reasoning_team.py | cookbook/02_examples/02_teams/reasoning_team.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.reasoning import ReasoningTools
from agno.tools.yfinance import YFinanceTools
web_agent = Agent(
name="We... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/simple.py | cookbook/02_examples/02_teams/simple.py | from agno.agent import Agent
from agno.models.deepseek import DeepSeek
from agno.models.mistral.mistral import MistralChat
from agno.models.openai import OpenAIChat
from agno.team.team import Team
english_agent = Agent(
name="English Agent",
role="You only answer in English",
model=OpenAIChat(id="gpt-4o"),... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/__init__.py | cookbook/02_examples/02_teams/__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/02_examples/02_teams/travel_planner_mcp_team.py | cookbook/02_examples/02_teams/travel_planner_mcp_team.py | """
This example demonstrates how to use the MCP protocol to coordinate a team of agents.
Prerequisites:
- Google Maps:
- Set the environment variable `GOOGLE_MAPS_API_KEY` with your Google Maps API key.
You can obtain the API token from the Google Cloud Console:
https://console.cloud.google.com/projectsel... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/multi_purpose_team.py | cookbook/02_examples/02_teams/multi_purpose_team.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.deepseek import DeepSeek
from agno.models.google.gemini import Gemini
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools.calculator import CalculatorTools
from agno.tools.dalle import DalleTools... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/collaboration_team.py | cookbook/02_examples/02_teams/collaboration_team.py | """Example of a Team using the `collaborate` mode.
In Collaborate Mode, all team members are given the same task and the team leader synthesizes their outputs into a cohesive response.
Run `pip install agno arxiv pypdf pycountry` to install the dependencies.
"""
import asyncio
from pathlib import Path
from textwrap ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/ai_customer_support_team.py | cookbook/02_examples/02_teams/ai_customer_support_team.py | from agno.agent import Agent
from agno.knowledge.knowledge import Knowledge
from agno.knowledge.reader.website_reader import WebsiteReader
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.exa import ExaTools
from agno.tools.slack... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/02_teams/multi_language_team.py | cookbook/02_examples/02_teams/multi_language_team.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.deepseek import DeepSeek
from agno.models.mistral import MistralChat
from agno.models.openai import OpenAIChat
from agno.team.team import Team
japanese_agent = Agent(
name="Japanese Agent",
role="You only answer in Japanese"... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/agentic_rag/agentic_rag.py | cookbook/02_examples/05_streamlit_apps/agentic_rag/agentic_rag.py | """🤖 Agentic RAG - Your AI Knowledge Agent!
This advanced example shows how to build a sophisticated RAG (Retrieval Augmented Generation) system that
leverages vector search and Language Models to provide deep insights from any knowledge base.
The Agent can:
- Process and understand documents from multiple sources (P... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/agentic_rag/app.py | cookbook/02_examples/05_streamlit_apps/agentic_rag/app.py | import tempfile
from os import unlink
import nest_asyncio
import streamlit as st
from agentic_rag import get_agentic_rag_agent
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_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/02_examples/05_streamlit_apps/medical_imaging/medical_agent.py | cookbook/02_examples/05_streamlit_apps/medical_imaging/medical_agent.py | from textwrap import dedent
from typing import Optional
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.utils.streamlit import get_model_with_provider
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
def get_medical_imaging_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/02_examples/05_streamlit_apps/medical_imaging/app.py | cookbook/02_examples/05_streamlit_apps/medical_imaging/app.py | import tempfile
from os import unlink
import nest_asyncio
import streamlit as st
from agno.media import Image as AgnoImage
from agno.utils.streamlit import (
COMMON_CSS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_agent,
reset_ses... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/podcast_generator/agents.py | cookbook/02_examples/05_streamlit_apps/podcast_generator/agents.py | import os
from textwrap import dedent
from typing import Optional
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.utils.audio import write_audio_to_file
from agno.utils.streamlit import get_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/02_examples/05_streamlit_apps/podcast_generator/app.py | cookbook/02_examples/05_streamlit_apps/podcast_generator/app.py | import streamlit as st
from agents import generate_podcast, generate_podcast_agent
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_agent,
reset_session_state,
session_selec... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/paperpal/agents.py | cookbook/02_examples/05_streamlit_apps/paperpal/agents.py | from pathlib import Path
from textwrap import dedent
from typing import List, Optional
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.tools.arxiv import ArxivTools
from agno.tools.exa import ExaTools
from agno.utils.streamlit import get_model_with_provider
from pydantic import BaseModel... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/paperpal/app.py | cookbook/02_examples/05_streamlit_apps/paperpal/app.py | import json
import nest_asyncio
import pandas as pd
import streamlit as st
from agents import (
ArxivSearchResults,
SearchTerms,
WebSearchResults,
get_paperpal_agents,
)
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
dis... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/vision_ai/agents.py | cookbook/02_examples/05_streamlit_apps/vision_ai/agents.py | from textwrap import dedent
from typing import Optional
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.utils.streamlit import get_model_with_provider
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
EXTRACTION_PROMPT = dedent(""... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/vision_ai/app.py | cookbook/02_examples/05_streamlit_apps/vision_ai/app.py | from pathlib import Path
import streamlit as st
from agents import get_vision_agent
from agno.media import Image
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_agent,
reset_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/02_examples/05_streamlit_apps/image_generation/agents.py | cookbook/02_examples/05_streamlit_apps/image_generation/agents.py | from typing import Optional
from agno.agent import Agent
from agno.knowledge.embedder.openai import OpenAIEmbedder
from agno.knowledge.knowledge import Knowledge
from agno.knowledge.reader.pdf_reader import PDFImageReader
from agno.tools.openai import OpenAITools
from agno.utils.streamlit import get_model_from_id
from... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/image_generation/app.py | cookbook/02_examples/05_streamlit_apps/image_generation/app.py | import io
import tempfile
from os import unlink
import nest_asyncio
import streamlit as st
from agents import get_recipe_image_agent
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_tool_calls,
export_chat_history,
initial... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/llama_tutor/__init__.py | cookbook/02_examples/05_streamlit_apps/llama_tutor/__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/02_examples/05_streamlit_apps/llama_tutor/agents.py | cookbook/02_examples/05_streamlit_apps/llama_tutor/agents.py | import os
from datetime import datetime
from pathlib import Path
from textwrap import dedent
from typing import Optional
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.groq import Groq
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.exa import ExaTools
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/02_examples/05_streamlit_apps/llama_tutor/app.py | cookbook/02_examples/05_streamlit_apps/llama_tutor/app.py | import nest_asyncio
import streamlit as st
from agents import get_llama_tutor_agent
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_agent,
reset_session_state,
session_sele... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/chess_team/agents.py | cookbook/02_examples/05_streamlit_apps/chess_team/agents.py | """♟️ Chess Team Battle
This example demonstrates how to build a sophisticated multi-agent chess game where different AI models
compete against each other. The system coordinates multiple specialized agents working together to play chess.
The Chess Team includes:
- White Player Agent: Strategizes and makes moves for ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/chess_team/app.py | cookbook/02_examples/05_streamlit_apps/chess_team/app.py | import re
from typing import Dict, List
import chess
import nest_asyncio
import streamlit as st
from agents import get_chess_team
from agno.utils.streamlit import (
COMMON_CSS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_agent,
re... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/deep_researcher/agents.py | cookbook/02_examples/05_streamlit_apps/deep_researcher/agents.py | from typing import Optional
from agno.agent import Agent
from agno.models.nebius import Nebius
from agno.tools.scrapegraph import ScrapeGraphTools
from agno.utils.log import logger
from agno.workflow import Workflow
# --- Agents Definition ---
searcher_agent = Agent(
name="Research Searcher",
tools=[ScrapeGra... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/deep_researcher/app.py | cookbook/02_examples/05_streamlit_apps/deep_researcher/app.py | import nest_asyncio
import streamlit as st
from agents import get_deep_researcher_workflow
from agno.utils.streamlit import (
COMMON_CSS,
about_section,
add_message,
display_chat_messages,
export_chat_history,
)
nest_asyncio.apply()
st.set_page_config(
page_title="Deep Researcher",
page_ico... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/gemini_tutor/agents.py | cookbook/02_examples/05_streamlit_apps/gemini_tutor/agents.py | from typing import Optional
from agno.agent import Agent
from agno.utils.streamlit import get_model_from_id
# Education level configurations
EDUCATION_LEVELS = [
"Elementary School",
"High School",
"College",
"Graduate",
"PhD",
]
# Available Gemini models
GEMINI_MODELS = [
"gemini-2.5-pro",
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/gemini_tutor/app.py | cookbook/02_examples/05_streamlit_apps/gemini_tutor/app.py | import nest_asyncio
import streamlit as st
from agents import EDUCATION_LEVELS, GEMINI_MODELS, get_gemini_tutor_agent
from agno.utils.streamlit import (
COMMON_CSS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_agent,
reset_session_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/02_examples/05_streamlit_apps/github_repo_analyzer/agents.py | cookbook/02_examples/05_streamlit_apps/github_repo_analyzer/agents.py | from textwrap import dedent
from typing import Optional
from agno.agent import Agent
from agno.tools.github import GithubTools
from agno.utils.streamlit import get_model_from_id
def get_github_agent(
model_id: str = "openai:gpt-4o",
user_id: Optional[str] = None,
session_id: Optional[str] = None,
) -> 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/02_examples/05_streamlit_apps/github_repo_analyzer/app.py | cookbook/02_examples/05_streamlit_apps/github_repo_analyzer/app.py | import nest_asyncio
import streamlit as st
from agents import get_github_agent
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initialize_agent,
reset_session_state,
)
nest_asyncio.apply... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/mcp_agent/mcp_agent.py | cookbook/02_examples/05_streamlit_apps/mcp_agent/mcp_agent.py | from textwrap import dedent
from typing import List, Optional
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.knowledge.embedder.openai import OpenAIEmbedder
from agno.knowledge.knowledge import Knowledge
from agno.tools.mcp import MCPTools
from agno.utils.streamlit import get_model_from... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/mcp_agent/mcp_client.py | cookbook/02_examples/05_streamlit_apps/mcp_agent/mcp_client.py | """MCP Client for connecting to Model Context Protocol servers."""
from contextlib import AsyncExitStack
from typing import List, Optional
from agno.tools.mcp import MCPTools
from agno.utils.log import logger
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
from pydantic ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/mcp_agent/__init__.py | cookbook/02_examples/05_streamlit_apps/mcp_agent/__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/02_examples/05_streamlit_apps/mcp_agent/app.py | cookbook/02_examples/05_streamlit_apps/mcp_agent/app.py | import asyncio
import nest_asyncio
import streamlit as st
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_tool_calls,
export_chat_history,
initialize_agent,
reset_session_state,
session_selector_widget,
)
from mcp... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/github_mcp_agent/__init__.py | cookbook/02_examples/05_streamlit_apps/github_mcp_agent/__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/02_examples/05_streamlit_apps/github_mcp_agent/agents.py | cookbook/02_examples/05_streamlit_apps/github_mcp_agent/agents.py | import os
from textwrap import dedent
from agno.agent import Agent
from agno.tools.mcp import MCPTools
from agno.utils.log import logger
from agno.utils.streamlit import get_model_from_id
async def run_github_agent(message: str, model_id: str = "gpt-4o"):
if not os.getenv("GITHUB_TOKEN"):
return "Error: ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/github_mcp_agent/app.py | cookbook/02_examples/05_streamlit_apps/github_mcp_agent/app.py | import asyncio
import os
import streamlit as st
from agents import run_github_agent
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
export_chat_history,
)
st.set_page_config(
page_title="GitHub MCP Agent",
page_icon="🐙",
la... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/geobuddy/agents.py | cookbook/02_examples/05_streamlit_apps/geobuddy/agents.py | from pathlib import Path
from typing import Optional
from agno.agent import Agent
from agno.media import Image
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.utils.streamlit import get_model_from_id
def get_geobuddy_agent(
model_id: str = "gemini-2.0-flash-exp",
user_id: Optional[str] = None,
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/05_streamlit_apps/geobuddy/app.py | cookbook/02_examples/05_streamlit_apps/geobuddy/app.py | import os
import tempfile
from pathlib import Path
import streamlit as st
from agents import analyze_image_location, get_geobuddy_agent
from agno.utils.streamlit import (
COMMON_CSS,
MODELS,
about_section,
add_message,
display_chat_messages,
display_response,
export_chat_history,
initia... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/other/chainlit_apps/__init__.py | cookbook/02_examples/other/chainlit_apps/__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/02_examples/other/chainlit_apps/basic/basic_app.py | cookbook/02_examples/other/chainlit_apps/basic/basic_app.py | import chainlit as cl
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.models.openai.chat import OpenAIChat
# Global variables
agent = None
@cl.on_chat_start
async def on_chat_start():
"""Initialize the agent when a new chat session starts."""
# Create a unique database per ses... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/other/chainlit_apps/basic/__init__.py | cookbook/02_examples/other/chainlit_apps/basic/__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/02_examples/other/speech_to_text/stt_openai_agent.py | cookbook/02_examples/other/speech_to_text/stt_openai_agent.py | """
Speech to text example using OpenAI. This cookbook demonstrates how to transcribe audio files using OpenAI and obtain structured output.
"""
import httpx
from agno.agent import Agent, RunOutput # noqa
from agno.media import Audio
from agno.models.openai import OpenAIChat
from pydantic import BaseModel, Field
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/02_examples/other/speech_to_text/stt_gemini_agent.py | cookbook/02_examples/other/speech_to_text/stt_gemini_agent.py | """
Speech to text example using Gemini. This cookbook demonstrates how to transcribe audio files using Gemini and obtain structured output.
"""
import httpx
from agno.agent import Agent, RunOutput # noqa
from agno.media import Audio
from agno.models.google import Gemini
from pydantic import BaseModel, Field
INSTRUC... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/other/speech_to_text/stt_workflow.py | cookbook/02_examples/other/speech_to_text/stt_workflow.py | """
This cookbook demonstrates how to use an Agno Workflow with AgentOS to transcribe audio files. There are four steps in the workflow:
1. Echo the input file
2. Get the audio content
3. Transcribe the audio content
4. Convert the transcription to structured output
"""
import io
from textwrap import dedent
from typin... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/other/speech_to_text/stt_openai_agent_simple.py | cookbook/02_examples/other/speech_to_text/stt_openai_agent_simple.py | """
Speech to text example using OpenAI. This cookbook demonstrates how to transcribe audio files using OpenAI and obtain simple transcription.
"""
import httpx
from agno.agent import Agent, RunOutput # noqa
from agno.media import Audio
from agno.models.openai import OpenAIChat
INSTRUCTIONS = """
Transcribe the audi... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/other/speech_to_text/__init__.py | cookbook/02_examples/other/speech_to_text/__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/02_examples/03_workflows/investment_report_generator.py | cookbook/02_examples/03_workflows/investment_report_generator.py | """💰 Investment Report Generator - Your AI Financial Analysis Studio!
This advanced example demonstrates how to build a sophisticated investment analysis system that combines
market research, financial analysis, and portfolio management. The workflow uses a three-stage
approach:
1. Comprehensive stock analysis and ma... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/employee_recruiter.py | cookbook/02_examples/03_workflows/employee_recruiter.py | """
This workflow is a simple example of a recruitment workflow where in you can also pass custom prameters like job description,
candidate resume urls, etc. (**kwargs) in the workflow along with workflow execution input.
"""
import io
import random
from datetime import datetime, timedelta
from typing import Any, 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/02_examples/03_workflows/startup_idea_validator.py | cookbook/02_examples/03_workflows/startup_idea_validator.py | """
🚀 Startup Idea Validator - Your Personal Business Validation Assistant!
This workflow helps entrepreneurs validate their startup ideas by:
1. Clarifying and refining the core business concept
2. Evaluating originality compared to existing solutions
3. Defining clear mission and objectives
4. Conducting comprehens... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/employee_recruiter_async_stream.py | cookbook/02_examples/03_workflows/employee_recruiter_async_stream.py | import asyncio
import io
import random
from datetime import datetime, timedelta
from typing import Any, List
import requests
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.workflow.types import WorkflowExecutionInput
from agno.workflow.workflow impo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/blog_post_generator.py | cookbook/02_examples/03_workflows/blog_post_generator.py | """🎨 Blog Post Generator v2.0 - Your AI Content Creation Studio!
This advanced example demonstrates how to build a sophisticated blog post generator using
the new workflow v2.0 architecture. The workflow combines web research capabilities with
professional writing expertise using a multi-stage approach:
1. Intellige... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/customer_support/run_workflow.py | cookbook/02_examples/03_workflows/customer_support/run_workflow.py | from typing import Any, Dict
from agents import (
SupportTicketClassification,
support_agent,
triage_agent,
)
from agno.utils.log import log_info
from agno.workflow import Step, StepInput, StepOutput, Workflow
def cache_lookup_step(
step_input: StepInput, session_state: Dict[str, Any]
) -> StepOutput... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/customer_support/__init__.py | cookbook/02_examples/03_workflows/customer_support/__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/02_examples/03_workflows/customer_support/agents.py | cookbook/02_examples/03_workflows/customer_support/agents.py | from typing import List
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from pydantic import BaseModel
class SupportTicketClassification(BaseModel):
category: str
priority: str
tags: List[str]
summary: str
triage_agent = Agent(
name="Ticket Classifier",
model=OpenAICh... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/notion_knowledge_manager/notion_manager.py | cookbook/02_examples/03_workflows/notion_knowledge_manager/notion_manager.py | import os
from agno.agent.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai.chat import OpenAIChat
from agno.os import AgentOS
from agno.tools.notion import NotionTools
from agno.workflow.step import Step, StepInput, StepOutput
from agno.workflow.workflow import Workflow
from pydantic impo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/notion_knowledge_manager/__init__.py | cookbook/02_examples/03_workflows/notion_knowledge_manager/__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/02_examples/03_workflows/investment_analyst/models.py | cookbook/02_examples/03_workflows/investment_analyst/models.py | from enum import Enum
from typing import Dict, List, Optional
from pydantic import BaseModel, Field
class InvestmentType(str, Enum):
EQUITY = "equity"
DEBT = "debt"
HYBRID = "hybrid"
VENTURE = "venture"
GROWTH = "growth"
BUYOUT = "buyout"
class RiskLevel(str, Enum):
LOW = "low"
MEDI... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/investment_analyst/run_workflow.py | cookbook/02_examples/03_workflows/investment_analyst/run_workflow.py | from agents import (
company_research_agent,
database_setup_agent,
esg_analysis_agent,
financial_analysis_agent,
investment_recommendation_agent,
market_analysis_agent,
report_synthesis_agent,
risk_assessment_agent,
valuation_agent,
)
from agno.workflow import Condition, Loop, Parall... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/02_examples/03_workflows/investment_analyst/__init__.py | cookbook/02_examples/03_workflows/investment_analyst/__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/02_examples/03_workflows/investment_analyst/agents.py | cookbook/02_examples/03_workflows/investment_analyst/agents.py | import os
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.mcp import MCPTools
from agno.tools.reasoning import ReasoningTools
# MCP Tool configuration - Only Supabase
def get_supabase_mcp_tools():
"""Get Supabase MCP tools for database operations"""
token = os.getenv("S... | 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.