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/06_agent_os/advanced_demo/reasoning_demo.py | cookbook/06_agent_os/advanced_demo/reasoning_demo.py | """Run `pip install openai exa_py ddgs yfinance pypdf sqlalchemy 'fastapi[standard]' youtube-transcript-api python-docx agno` to install dependencies."""
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.knowledge.knowledge import Knowledge
from agno.models.openai import OpenAIChat
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/06_agent_os/advanced_demo/multiple_knowledge_bases.py | cookbook/06_agent_os/advanced_demo/multiple_knowledge_bases.py | from agno.agent import Agent
from agno.db.json import JsonDb
from agno.knowledge.knowledge import Knowledge
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.vectordb.pgvector import PgVector
db_url = "postgresql+psycopg://ai:ai@localhost:5532/ai"
vector_db = PgVector(table_name="vector... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/advanced_demo/teams_demo.py | cookbook/06_agent_os/advanced_demo/teams_demo.py | from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.anthropic import Claude
from agno.models.google.gemini import Gemini
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.too... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/advanced_demo/mcp_demo.py | cookbook/06_agent_os/advanced_demo/mcp_demo.py | """This example shows how to run an Agent using our MCP integration in the Agno OS.
For this example to run you need:
- Create a GitHub personal access token following these steps:
- https://github.com/modelcontextprotocol/servers/tree/main/src/github#setup
- Set the GITHUB_TOKEN environment variable: `export GITH... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/async_mongo_demo.py | cookbook/06_agent_os/dbs/async_mongo_demo.py | """Example showing how to use AgentOS with a Mongo database"""
from agno.agent import Agent
from agno.db.mongo import AsyncMongoDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
# Setup the Mongo database
db = AsyncMong... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/redis_demo.py | cookbook/06_agent_os/dbs/redis_demo.py | """Example showing how to use AgentOS with Redis as database"""
from agno.agent import Agent
from agno.db.redis import RedisDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
# Setup the Redis database
db = RedisDb(
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/async_mysql_demo.py | cookbook/06_agent_os/dbs/async_mysql_demo.py | """Example showing how to use AgentOS with a SQLite database"""
from agno.agent import Agent
from agno.db.mysql import AsyncMySQLDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
db_url = "mysql+asyncmy://ai:ai@localhost:3306/ai"
db = AsyncMySQLDb(
id="mysql... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/mongo_demo.py | cookbook/06_agent_os/dbs/mongo_demo.py | """Example showing how to use AgentOS with a Mongo database"""
from agno.agent import Agent
from agno.db.mongo import MongoDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
# Setup the Mongo database
db = MongoDb(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/06_agent_os/dbs/dynamo_demo.py | cookbook/06_agent_os/dbs/dynamo_demo.py | """Example showing how to use AgentOS with a DynamoDB database
Set the following environment variables to connect to your DynamoDb instance:
- AWS_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
Or pass those parameters when initializing the DynamoDb instance.
Run `pip install boto3` to install dependencies.
"""
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/gcs_json_demo.py | cookbook/06_agent_os/dbs/gcs_json_demo.py | """
Example showing how to use AgentOS with JSON files hosted in GCS as database.
GCS JSON Database Setup:
- Uses JSON files stored in Google Cloud Storage as a lightweight database
- Only requires a GCS bucket name - authentication follows the standard GCP patterns:
* Local development: `gcloud auth application-def... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/firestore_demo.py | cookbook/06_agent_os/dbs/firestore_demo.py | """Example showing how to use AgentOS with a Firestore database"""
from agno.agent import Agent
from agno.db.firestore import FirestoreDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
PROJECT_ID = "agno-os-test"
# 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/06_agent_os/dbs/supabase_demo.py | cookbook/06_agent_os/dbs/supabase_demo.py | """Example showing how to use AgentOS with Supabase as our database provider"""
from os import getenv
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/json_demo.py | cookbook/06_agent_os/dbs/json_demo.py | """Example showing how to use AgentOS with JSON files as database"""
from agno.agent import Agent
from agno.db.json import JsonDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
# Setup the JSON database
db = JsonDb(db_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/06_agent_os/dbs/singlestore_demo.py | cookbook/06_agent_os/dbs/singlestore_demo.py | """Example showing how to use AgentOS with SingleStore as our database provider"""
from agno.agent import Agent
from agno.db.singlestore import SingleStoreDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
SINGLE_STORE_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/06_agent_os/dbs/neon_demo.py | cookbook/06_agent_os/dbs/neon_demo.py | """Example showing how to use AgentOS with Neon as our database provider"""
from os import getenv
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
NEON... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/__init__.py | cookbook/06_agent_os/dbs/__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/06_agent_os/dbs/sqlite_demo.py | cookbook/06_agent_os/dbs/sqlite_demo.py | """Example showing how to use AgentOS with a SQLite database"""
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
# Setup the SQLite database
db = SqliteDb(
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/mysql_demo.py | cookbook/06_agent_os/dbs/mysql_demo.py | """Example showing how to use AgentOS with a SQLite database"""
from agno.agent import Agent
from agno.db.mysql import MySQLDb
from agno.eval.accuracy import AccuracyEval
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
db_url = "mysql+pymysql://ai:ai@localhost:330... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/postgres_demo.py | cookbook/06_agent_os/dbs/postgres_demo.py | """Example showing how to use AgentOS with Postgres as database"""
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
# Setup the Postgres database
db = PostgresDb(
db_url="postgresql+psycopg://... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/surreal_demo.py | cookbook/06_agent_os/dbs/surreal_demo.py | """Example showing how to use AgentOS with SurrealDB as database"""
from agno.agent import Agent
from agno.db.surrealdb import SurrealDb
from agno.knowledge.knowledge import Knowledge
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
from agno.vectordb.pgvector impor... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/async_postgres_demo.py | cookbook/06_agent_os/dbs/async_postgres_demo.py | """Example showing how to use AgentOS with a Postgres database, using our async interface"""
from agno.agent import Agent
from agno.db.postgres import AsyncPostgresDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team.team import Team
from agno.workflow.step import Step
from agno.work... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/surreal_db/run.py | cookbook/06_agent_os/dbs/surreal_db/run.py | """SurrealDB + AgentOS demo
Steps:
1. Run SurrealDB in a container: `./cookbook/scripts/run_surrealdb.sh`
2. Run the demo: `python cookbook/agent_os/dbs/surreal_db/run.py`
"""
from agents import agno_assist
from agno.os import AgentOS
from teams import reasoning_finance_team
from workflows import research_wor... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/surreal_db/db.py | cookbook/06_agent_os/dbs/surreal_db/db.py | from agno.db.surrealdb import SurrealDb
# ************* SurrealDB Config *************
SURREALDB_URL = "ws://localhost:8000"
SURREALDB_USER = "root"
SURREALDB_PASSWORD = "root"
SURREALDB_NAMESPACE = "agno"
SURREALDB_DATABASE = "agent_os_demo"
# *******************************
# ************* Create the SurrealDB inst... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/surreal_db/teams.py | cookbook/06_agent_os/dbs/surreal_db/teams.py | from agno.agent import Agent
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
from db import db
# ************* Core Agents *************
web_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/06_agent_os/dbs/surreal_db/__init__.py | cookbook/06_agent_os/dbs/surreal_db/__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/06_agent_os/dbs/surreal_db/agents.py | cookbook/06_agent_os/dbs/surreal_db/agents.py | from textwrap import dedent
from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.tools.mcp import MCPTools
from db import db
# ************* Create Agno Assist *************
agno_assist = Agent(
name="Agno Assist",
model=Claude(id="claude-sonnet-4-5"),
db=db,
# Enable agenti... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/dbs/surreal_db/workflows.py | cookbook/06_agent_os/dbs/surreal_db/workflows.py | from typing import List
from agno.agent.agent import Agent
from agno.models.anthropic import Claude
from agno.team.team import Team
from agno.tools.firecrawl import FirecrawlTools
from agno.tools.wikipedia import WikipediaTools
from agno.workflow.step import Step
from agno.workflow.workflow import Workflow
from db imp... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/mcp_demo/mcp_tools_advanced_example.py | cookbook/06_agent_os/mcp_demo/mcp_tools_advanced_example.py | """
Example AgentOS app where the agent has MCPTools.
AgentOS handles the lifespan of the MCPTools internally.
"""
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.mcp import MCPTools # noqa: 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/06_agent_os/mcp_demo/mcp_tools_example.py | cookbook/06_agent_os/mcp_demo/mcp_tools_example.py | """
Example AgentOS app where the agent has MCPTools.
AgentOS handles the lifespan of the MCPTools internally.
"""
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.mcp import MCPTools
# Setup the database
db = Sqlite... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/mcp_demo/enable_mcp_example.py | cookbook/06_agent_os/mcp_demo/enable_mcp_example.py | """
Example AgentOS app with MCP enabled.
After starting this AgentOS app, you can test the MCP server with the test_client.py file.
"""
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.duckduckgo import DuckDuckGoToo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/mcp_demo/__init__.py | cookbook/06_agent_os/mcp_demo/__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/06_agent_os/mcp_demo/mcp_tools_existing_lifespan.py | cookbook/06_agent_os/mcp_demo/mcp_tools_existing_lifespan.py | """
Example AgentOS app where the agent has MCPTools.
AgentOS handles the lifespan of the MCPTools internally.
In addition you can pass your own lifespan to AgentOS.
"""
from contextlib import asynccontextmanager
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.anthropic import Clau... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/mcp_demo/test_client.py | cookbook/06_agent_os/mcp_demo/test_client.py | """
First run the AgentOS with enable_mcp=True
```bash
python cookbook/agent_os/mcp/enable_mcp.py
```
"""
import asyncio
from uuid import uuid4
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.models.openai import OpenAIChat
from agno.tools.mcp import MCPTools
# This is the URL of the... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/background_tasks/background_hooks_workflow.py | cookbook/06_agent_os/background_tasks/background_hooks_workflow.py | """
Example: Background Hooks with Workflows in AgentOS
This example demonstrates how to use background hooks with a Workflow.
Background hooks execute after the API response is sent, making them non-blocking.
"""
import asyncio
from agno.agent import Agent
from agno.db.sqlite import AsyncSqliteDb
from agno.models.o... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/background_tasks/background_hooks_decorator.py | cookbook/06_agent_os/background_tasks/background_hooks_decorator.py | """
Example: Using Background Post-Hooks in AgentOS
This example demonstrates how to run post-hooks as FastAPI background tasks,
making them completely non-blocking.
"""
import asyncio
from agno.agent import Agent
from agno.db.sqlite import AsyncSqliteDb
from agno.hooks.decorator import hook
from agno.models.openai ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/background_tasks/background_evals_example.py | cookbook/06_agent_os/background_tasks/background_evals_example.py | """
Example: Per-Hook Background Control with AgentAsJudgeEval in AgentOS
This example demonstrates fine-grained control over which hooks run in background:
- Set eval.run_in_background = True for eval instances
- AgentAsJudgeEval evaluates output quality based on custom criteria
"""
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/06_agent_os/background_tasks/background_hooks_team.py | cookbook/06_agent_os/background_tasks/background_hooks_team.py | """
Example: Background Hooks with Teams in AgentOS
This example demonstrates how to use background hooks with a Team.
Background hooks execute after the API response is sent, making them non-blocking.
"""
import asyncio
from agno.agent import Agent
from agno.db.sqlite import AsyncSqliteDb
from agno.hooks.decorator ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/background_tasks/background_output_evaluation.py | cookbook/06_agent_os/background_tasks/background_output_evaluation.py | """
Example: Background Output Evaluation with Agent-as-Judge
This example demonstrates how to use a validator agent to evaluate the main agent's
output as a background task. Unlike blocking validation, background evaluation:
- Does NOT block the response to the user
- Logs evaluation results for monitoring and analyt... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/background_tasks/background_hooks_example.py | cookbook/06_agent_os/background_tasks/background_hooks_example.py | """
Example: Using Background Post-Hooks in AgentOS
This example demonstrates how to run post-hooks as FastAPI background tasks,
making them completely non-blocking.
"""
import asyncio
from agno.agent import Agent
from agno.db.sqlite import AsyncSqliteDb
from agno.models.openai import OpenAIChat
from agno.os import ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/remote/03_agent_os_gateway.py | cookbook/06_agent_os/remote/03_agent_os_gateway.py | """
Example showing how to use an AgentOS instance as a gateway to remote agents, teams and workflows.
Run `agent_os_setup.py` to start the remote AgentOS instance.
# Note:
- Remote Workflows via Websocket are not yet supported
- If authorization is enabled on remote servers and all endpoints are protected, not all o... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/remote/02_remote_team.py | cookbook/06_agent_os/remote/02_remote_team.py | """
Examples demonstrating AgentOSRunner for remote execution.
Run `agent_os_setup.py` to start the remote AgentOS instance.
"""
import asyncio
from agno.team import RemoteTeam
async def remote_agent_example():
"""Call a remote agent hosted on another AgentOS instance."""
# Create a runner that points to 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/06_agent_os/remote/01_remote_agent.py | cookbook/06_agent_os/remote/01_remote_agent.py | """
Examples demonstrating AgentOSRunner for remote execution.
Run `agent_os_setup.py` to start the remote AgentOS instance.
"""
import asyncio
from agno.agent import RemoteAgent
async def remote_agent_example():
"""Call a remote agent hosted on another AgentOS instance."""
# Create a runner that points 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/06_agent_os/remote/server.py | cookbook/06_agent_os/remote/server.py | """
AgentOS Server for Cookbook Client Examples
"""
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.os import AgentOS
from agno.team.team import ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/os_config/yaml_config.py | cookbook/06_agent_os/os_config/yaml_config.py | from pathlib import Path
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.interfaces.slack import Slack
from agno.os.interfaces.whatsapp import Whatsapp
from agno.team import Team
from agno.workflow.step import Step
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/os_config/basic.py | cookbook/06_agent_os/os_config/basic.py | from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.config import (
AgentOSConfig,
ChatConfig,
DatabaseConfig,
MemoryConfig,
MemoryDomainConfig,
)
from agno.team import Team
from agno.workflow.step 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/06_agent_os/os_config/__init__.py | cookbook/06_agent_os/os_config/__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/06_agent_os/middleware/custom_fastapi_app_with_jwt_middleware.py | cookbook/06_agent_os/middleware/custom_fastapi_app_with_jwt_middleware.py | """
This example demonstrates how to use our JWT middleware with your custom FastAPI app.
# Note: This example won't work with the AgentOS UI, because of the token validation mechanism in the JWT middleware.
"""
from datetime import UTC, datetime, timedelta
import jwt
from agno.agent import Agent
from agno.db.postgr... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/middleware/extract_content_middleware.py | cookbook/06_agent_os/middleware/extract_content_middleware.py | """Example for AgentOS to show how to extract content from a response and send it to a notification service.
This example middleware can extract content from both streaming and non-streaming responses.
"""
import json
from agno.agent import Agent
from agno.db.sqlite.sqlite import SqliteDb
from agno.os import AgentOS... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/middleware/agent_os_with_custom_middleware.py | cookbook/06_agent_os/middleware/agent_os_with_custom_middleware.py | """
This example demonstrates how to add custom middleware to your AgentOS application.
We add two middleware:
- Rate Limiting: Limits requests per IP address
- Request/Response Logging: Logs requests and responses
"""
import time
from collections import defaultdict, deque
from typing import Dict
from agno.agent imp... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/middleware/__init__.py | cookbook/06_agent_os/middleware/__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/06_agent_os/middleware/agent_os_with_jwt_middleware_cookies.py | cookbook/06_agent_os/middleware/agent_os_with_jwt_middleware_cookies.py | """
This example demonstrates how to use JWT middleware with cookies instead of Authorization headers.
This is useful for web applications that prefer to store JWT tokens in HTTP-only cookies for security.
"""
from datetime import UTC, datetime, timedelta
import jwt
from agno.agent import Agent
from agno.db.postgres ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/middleware/agent_os_with_jwt_middleware.py | cookbook/06_agent_os/middleware/agent_os_with_jwt_middleware.py | """
This example demonstrates how to use our JWT middleware with AgentOS.
The middleware extracts JWT claims and stores them in request.state for easy access.
This example uses the default Authorization header approach.
For cookie-based authentication, see agent_os_with_jwt_cookies.py
For both header and cookie suppo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/04_agent_with_reasoning_tools_tracing.py | cookbook/06_agent_os/tracing/04_agent_with_reasoning_tools_tracing.py | from textwrap import dedent
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.reasoning import ReasoningTools
db_sqlite = SqliteDb(db_file="tmp/traces.db")
reasoning_agent = Agent(
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/06_agent_os/tracing/07_tracing_with_multi_db_and_tracing_flag.py | cookbook/06_agent_os/tracing/07_tracing_with_multi_db_and_tracing_flag.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.duckduckgo import DuckDuckGoTools
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/02_basic_team_tracing.py | cookbook/06_agent_os/tracing/02_basic_team_tracing.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.team import Team
from agno.tools.hackernews import HackerNewsTools
# Set up database
db = SqliteDb(db_file="tmp/traces.db")
# Create agents - no need to set tracing on each ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/05_basic_workflow_tracing.py | cookbook/06_agent_os/tracing/05_basic_workflow_tracing.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.os import AgentOS
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.workflow.condition import Condit... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/01_basic_agent_tracing.py | cookbook/06_agent_os/tracing/01_basic_agent_tracing.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTools
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/06_tracing_with_multi_db_scenario.py | cookbook/06_agent_os/tracing/06_tracing_with_multi_db_scenario.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.duckduckgo import DuckDuckGoTools
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/__init__.py | cookbook/06_agent_os/tracing/__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/06_agent_os/tracing/03_agent_with_knowledge_tracing.py | cookbook/06_agent_os/tracing/03_agent_with_knowledge_tracing.py | from textwrap import dedent
from agno.agent import Agent
from agno.db.postgres import PostgresDb
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.os import AgentOS
from agno.v... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_dynamodb.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_dynamodb.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.dynamo import DynamoDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTools
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_mysql.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_mysql.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.mysql import MySQLDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTools
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/06_agent_os/tracing/dbs/basic_agent_with_redis.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_redis.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.redis import RedisDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTools
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/06_agent_os/tracing/dbs/basic_agent_with_mongodb.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_mongodb.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.mongo import MongoDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTools
#... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_async_mysql.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_async_mysql.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.mysql import AsyncMySQLDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsToo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_jsondb.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_jsondb.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.json import JsonDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTools
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/06_agent_os/tracing/dbs/basic_agent_with_singlestore.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_singlestore.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from os import getenv
from agno.agent import Agent
from agno.db.singlestore import SingleStoreDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.h... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_gcs_json_db.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_gcs_json_db.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
import google.auth
from agno.agent import Agent
from agno.db.gcs_json import GcsJsonDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews 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/06_agent_os/tracing/dbs/basic_agent_with_async_sqlite.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_async_sqlite.py | """
Traces with AgentOS using AsyncSqliteDb
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.sqlite import AsyncSqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackerne... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_async_postgres.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_async_postgres.py | """
Traces with AgentOS using AsyncPostgresDb
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.postgres import AsyncPostgresDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.ha... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_sqlite.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_sqlite.py | """
Traces with AgentOS using SqliteDb
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_firestore.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_firestore.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.firestore import FirestoreDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNews... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_postgresdb.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_postgresdb.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/tracing/dbs/basic_agent_with_surrealdb.py | cookbook/06_agent_os/tracing/dbs/basic_agent_with_surrealdb.py | """
Traces with AgentOS
Requirements:
pip install agno opentelemetry-api opentelemetry-sdk openinference-instrumentation-agno
"""
from agno.agent import Agent
from agno.db.surrealdb import SurrealDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.tools.hackernews import HackerNewsTo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/knowledge/agno_docs_agent.py | cookbook/06_agent_os/knowledge/agno_docs_agent.py | from textwrap import dedent
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.models.anthropic import Claude
from agno.os import AgentOS
from agno.vectordb.pgvector import PgVector, Sea... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/knowledge/__init__.py | cookbook/06_agent_os/knowledge/__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/06_agent_os/knowledge/agentos_knowledge.py | cookbook/06_agent_os/knowledge/agentos_knowledge.py | from textwrap import dedent
from agno.db.postgres import PostgresDb
from agno.knowledge.embedder.openai import OpenAIEmbedder
from agno.knowledge.knowledge import Knowledge
from agno.os import AgentOS
from agno.vectordb.pgvector import PgVector, SearchType
# ************* Setup Knowledge Databases *************
db_ur... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/__init__.py | cookbook/06_agent_os/interfaces/__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/06_agent_os/interfaces/slack/basic_workflow.py | cookbook/06_agent_os/interfaces/slack/basic_workflow.py | from agno.agent import Agent
from agno.db.postgres import PostgresDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.interfaces.slack import Slack
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.workflow.step import Step
from agno.workflow.workflow import Workflow
# Defin... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/slack/multiple_instances.py | cookbook/06_agent_os/interfaces/slack/multiple_instances.py | from agno.agent import Agent
from agno.db.sqlite.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os.app import AgentOS
from agno.os.interfaces.slack import Slack
from agno.tools.duckduckgo import DuckDuckGoTools
agent_db = SqliteDb(session_table="agent_sessions", db_file="tmp/persistent_memo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/slack/agent_with_user_memory.py | cookbook/06_agent_os/interfaces/slack/agent_with_user_memory.py | from textwrap import dedent
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.memory.manager import MemoryManager
from agno.models.anthropic.claude import Claude
from agno.os.app import AgentOS
from agno.os.interfaces.slack import Slack
from agno.tools.duckduckgo import DuckDuckGoTools
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/06_agent_os/interfaces/slack/reasoning_agent.py | cookbook/06_agent_os/interfaces/slack/reasoning_agent.py | from agno.agent import Agent
from agno.db.sqlite.sqlite import SqliteDb
from agno.models.anthropic.claude import Claude
from agno.os.app import AgentOS
from agno.os.interfaces.slack.slack import Slack
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.reasoning import ReasoningTools
agent_db = SqliteDb(... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/slack/basic.py | cookbook/06_agent_os/interfaces/slack/basic.py | from agno.agent import Agent
from agno.db.sqlite.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os.app import AgentOS
from agno.os.interfaces.slack import Slack
agent_db = SqliteDb(session_table="agent_sessions", db_file="tmp/persistent_memory.db")
basic_agent = Agent(
name="Basic 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/06_agent_os/interfaces/slack/__init__.py | cookbook/06_agent_os/interfaces/slack/__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/06_agent_os/interfaces/whatsapp/multiple_instances.py | cookbook/06_agent_os/interfaces/whatsapp/multiple_instances.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os.app import AgentOS
from agno.os.interfaces.whatsapp import Whatsapp
from agno.tools.duckduckgo import DuckDuckGoTools
agent_db = SqliteDb(db_file="tmp/persistent_memory.db")
basic_agent = 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/06_agent_os/interfaces/whatsapp/agent_with_media.py | cookbook/06_agent_os/interfaces/whatsapp/agent_with_media.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.google import Gemini
from agno.os.app import AgentOS
from agno.os.interfaces.whatsapp import Whatsapp
agent_db = SqliteDb(db_file="tmp/persistent_memory.db")
media_agent = Agent(
name="Media Agent",
model=Gemini(id="gemini-2.0-fl... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/whatsapp/agent_with_user_memory.py | cookbook/06_agent_os/interfaces/whatsapp/agent_with_user_memory.py | from textwrap import dedent
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.memory.manager import MemoryManager
from agno.models.google import Gemini
from agno.os.app import AgentOS
from agno.os.interfaces.whatsapp import Whatsapp
from agno.tools.duckduckgo import DuckDuckGoTools
agent_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/06_agent_os/interfaces/whatsapp/reasoning_agent.py | cookbook/06_agent_os/interfaces/whatsapp/reasoning_agent.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.anthropic.claude import Claude
from agno.os.app import AgentOS
from agno.os.interfaces.whatsapp import Whatsapp
from agno.tools.reasoning import ReasoningTools
from agno.tools.yfinance import YFinanceTools
agent_db = SqliteDb(db_file="tm... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/whatsapp/basic.py | cookbook/06_agent_os/interfaces/whatsapp/basic.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os.app import AgentOS
from agno.os.interfaces.whatsapp import Whatsapp
agent_db = SqliteDb(db_file="tmp/persistent_memory.db")
basic_agent = Agent(
name="Basic Agent",
model=OpenAIChat(id="gpt-4... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/whatsapp/image_generation_tools.py | cookbook/06_agent_os/interfaces/whatsapp/image_generation_tools.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os.app import AgentOS
from agno.os.interfaces.whatsapp import Whatsapp
from agno.tools.openai import OpenAITools
agent_db = SqliteDb(db_file="tmp/persistent_memory.db")
image_agent = Agent(
id="imag... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/whatsapp/image_generation_model.py | cookbook/06_agent_os/interfaces/whatsapp/image_generation_model.py | from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.google import Gemini
from agno.os.app import AgentOS
from agno.os.interfaces.whatsapp import Whatsapp
agent_db = SqliteDb(db_file="tmp/persistent_memory.db")
image_agent = Agent(
id="image_generation_model",
db=agent_db,
mode... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/whatsapp/__init__.py | cookbook/06_agent_os/interfaces/whatsapp/__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/06_agent_os/interfaces/agui/research_team.py | cookbook/06_agent_os/interfaces/agui/research_team.py | from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.os.app import AgentOS
from agno.os.interfaces.agui.agui import AGUI
from agno.team.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
researcher = Agent(
name="researcher",
role="Research Assistant",
mode... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/agui/multiple_instances.py | cookbook/06_agent_os/interfaces/agui/multiple_instances.py | from agno.agent.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.interfaces.agui import AGUI
from agno.tools.duckduckgo import DuckDuckGoTools
db = SqliteDb(db_file="tmp/agentos.db")
chat_agent = Agent(
name="Assistant",
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/agui/reasoning_agent.py | cookbook/06_agent_os/interfaces/agui/reasoning_agent.py | from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.interfaces.agui import AGUI
from agno.tools.duckduckgo import DuckDuckGoTools
chat_agent = Agent(
name="Assistant",
model=OpenAIChat(id="o4-mini"),
instructions="You are a helpful AI assist... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/agui/basic.py | cookbook/06_agent_os/interfaces/agui/basic.py | from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.interfaces.agui import AGUI
chat_agent = Agent(
name="Assistant",
model=OpenAIChat(id="gpt-4o"),
instructions="You are a helpful AI assistant.",
add_datetime_to_context=True,
markdo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/agui/__init__.py | cookbook/06_agent_os/interfaces/agui/__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/06_agent_os/interfaces/agui/structured_output.py | cookbook/06_agent_os/interfaces/agui/structured_output.py | from typing import List
from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.interfaces.agui import AGUI
from pydantic import BaseModel, Field
class MovieScript(BaseModel):
setting: str = Field(
..., description="Provide a nice setting 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/06_agent_os/interfaces/agui/agent_with_tools.py | cookbook/06_agent_os/interfaces/agui/agent_with_tools.py | from typing import List
from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.os.interfaces.agui import AGUI
from agno.tools import tool
from agno.tools.duckduckgo import DuckDuckGoTools
# Frontend Tools
@tool(external_execution=True)
def generate_haiku(
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/cookbook/06_agent_os/interfaces/a2a/research_team.py | cookbook/06_agent_os/interfaces/a2a/research_team.py | from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.os.app import AgentOS
from agno.team.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
researcher = Agent(
name="researcher",
id="researcher",
role="Research Assistant",
model=OpenAIChat(id="gpt-4o")... | 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.