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/libs/agno_infra/agno/infra/enums.py | libs/agno_infra/agno/infra/enums.py | from enum import Enum
class InfraStarterTemplate(str, Enum):
agent_infra_docker = "agent-infra-docker"
agent_infra_aws = "agent-infra-aws"
agent_infra_railway = "agent-infra-railway"
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/infra/operator.py | libs/agno_infra/agno/infra/operator.py | from pathlib import Path
from typing import Dict, List, Optional, cast
from rich.prompt import Prompt
from agno.base.resources import InfraResources
from agno.cli.config import AgnoCliConfig
from agno.cli.console import (
console,
log_config_not_available_msg,
print_heading,
print_info,
print_subh... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/infra/helpers.py | libs/agno_infra/agno/infra/helpers.py | from pathlib import Path
from typing import Optional
from agno.utilities.logging import log_debug
def get_infra_dir_from_env() -> Optional[Path]:
from os import getenv
from agno.constants import AGNO_INFRA_DIR
log_debug(f"Reading {AGNO_INFRA_DIR} from environment variables")
infra_dir = getenv(AGNO... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/infra/settings.py | libs/agno_infra/agno/infra/settings.py | from __future__ import annotations
from pathlib import Path
from typing import List, Optional
from pydantic import BaseModel, model_validator
class InfraSettings(BaseModel):
"""Settings that can be used by any resource in the infrastructure."""
# Infrastructure name
infra_name: str
# Path to the i... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/infra/config.py | libs/agno_infra/agno/infra/config.py | from pathlib import Path
from typing import Any, Dict, List, Optional
from pydantic import BaseModel
from agno.base.base import InfraBase
from agno.base.resources import InfraResources
from agno.infra.settings import InfraSettings
from agno.utilities.logging import logger
# List of directories to ignore when loading... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/infra/__init__.py | libs/agno_infra/agno/infra/__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/libs/agno_infra/agno/utilities/filesystem.py | libs/agno_infra/agno/utilities/filesystem.py | from pathlib import Path
def rmdir_recursive(dir_path: Path) -> bool:
"""Deletes dir_path recursively, including all files and dirs in that directory
Returns True if dir deleted successfully.
"""
if not dir_path.exists():
return True
if dir_path.is_dir():
from shutil import rmtre... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/defaults.py | libs/agno_infra/agno/utilities/defaults.py | # Don't import anything which may lead to circular imports
def get_default_ns_name(app_name: str) -> str:
return "{}-ns".format(app_name)
def get_default_ctx_name(app_name: str) -> str:
return "{}-ctx".format(app_name)
def get_default_sa_name(app_name: str) -> str:
return "{}-sa".format(app_name)
de... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/string.py | libs/agno_infra/agno/utilities/string.py | def to_kebab_case(input_string):
return input_string.lower().replace(" ", "-").replace("_", "-")
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/json_io.py | libs/agno_infra/agno/utilities/json_io.py | import json
from datetime import date, datetime
from pathlib import Path
from typing import Dict, List, Optional, Union
from agno.utilities.logging import log_debug
class CustomJSONEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, datetime) or isinstance(o, date):
return o.iso... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/py_io.py | libs/agno_infra/agno/utilities/py_io.py | from pathlib import Path
from typing import Dict, Optional
def get_python_objects_from_module(module_path: Path) -> Dict:
"""Returns a dictionary of python objects from a module"""
import importlib.util
from importlib.machinery import ModuleSpec
# https://docs.python.org/3/library/importlib.html#impo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/git.py | libs/agno_infra/agno/utilities/git.py | from pathlib import Path
from typing import Optional
import git
from agno.utilities.logging import log_debug
def get_remote_origin_for_dir(
ws_root_path: Optional[Path],
) -> Optional[str]:
"""Returns the remote origin for a directory"""
if ws_root_path is None or not ws_root_path.exists() or not ws_ro... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/load_env.py | libs/agno_infra/agno/utilities/load_env.py | from pathlib import Path
from typing import Dict, Optional
def load_env(env: Optional[Dict[str, str]] = None, dotenv_dir: Optional[Path] = None) -> None:
from os import environ
if dotenv_dir is not None:
dotenv_file = dotenv_dir.joinpath(".env")
if dotenv_file is not None and dotenv_file.exis... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/logging.py | libs/agno_infra/agno/utilities/logging.py | import logging
from os import getenv
from typing import Any, Optional
from rich.logging import RichHandler
from rich.text import Text
LOGGER_NAME = "agno_infra"
# Define custom styles for different log sources
LOG_STYLES = {
"warning": "magenta",
"error": "red",
"exception": "red",
"debug": "green",
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/pyproject.py | libs/agno_infra/agno/utilities/pyproject.py | from pathlib import Path
from typing import Dict, Optional
from agno.utilities.logging import log_debug, logger
def read_pyproject_agno(pyproject_file: Path) -> Optional[Dict]:
"""
Read the pyproject.toml file and return the "agno" tool configuration.
"""
log_debug(f"Reading {pyproject_file}")
tr... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/__init__.py | libs/agno_infra/agno/utilities/__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/libs/agno_infra/agno/utilities/yaml_io.py | libs/agno_infra/agno/utilities/yaml_io.py | from pathlib import Path
from typing import Any, Dict, Optional
from agno.utilities.logging import logger
def read_yaml_file(file_path: Optional[Path]) -> Optional[Dict[str, Any]]:
if file_path is not None and file_path.exists() and file_path.is_file():
import yaml
logger.debug(f"Reading {file_p... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/utilities/resource_filter.py | libs/agno_infra/agno/utilities/resource_filter.py | from typing import Optional, Tuple
def parse_resource_filter(
resource_filter: str,
) -> Tuple[Optional[str], Optional[str], Optional[str], Optional[str], Optional[str]]:
target_env: Optional[str] = None
target_infra: Optional[str] = None
target_group: Optional[str] = None
target_name: Optional[st... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/operator.py | libs/agno_infra/agno/cli/operator.py | from pathlib import Path
from typing import List, Optional
from agno.base.resources import InfraResources
from agno.cli.config import AgnoCliConfig
from agno.cli.console import print_heading, print_info
from agno.cli.settings import AGNO_CLI_CONFIG_DIR
from agno.utilities.logging import logger
def delete_agno_config... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/infra_cli.py | libs/agno_infra/agno/cli/infra_cli.py | """Agno Infra Cli
This is the entrypoint for the `agno infra` application.
"""
from pathlib import Path
from typing import List, Optional, cast
import typer
from agno.cli.console import (
log_active_infra_not_available,
log_config_not_available_msg,
print_available_infra,
print_info,
)
from agno.inf... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/console.py | libs/agno_infra/agno/cli/console.py | from rich.console import Console
from rich.style import Style
from agno.utilities.logging import logger
console = Console()
######################################################
## Styles
# Standard Colors: https://rich.readthedocs.io/en/stable/appendix/colors.html#appendix-colors
##################################... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/entrypoint.py | libs/agno_infra/agno/cli/entrypoint.py | """Agno cli
This is the entrypoint for the `agno` cli application.
"""
import typer
from agno.cli.infra_cli import infra_cli as infra_subcommands
agno_cli = typer.Typer(
help="""\b
Agno is a lightweight framework for building Agent Systems.
\b
Usage:
1. Run `ag infra create` to create a new Agentics Infrastruct... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/utils.py | libs/agno_infra/agno/cli/utils.py | import subprocess
from os import environ
from pathlib import Path
from sys import stderr, stdin, stdout
from typing import List
from agno.utilities.logging import logger
def find_compose_files(directory: Path) -> List[Path]:
"""Find Docker Compose files in the given directory."""
compose_files = []
commo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/settings.py | libs/agno_infra/agno/cli/settings.py | from __future__ import annotations
from pathlib import Path
from pydantic_settings import BaseSettings, SettingsConfigDict
AGNO_CLI_CONFIG_DIR: Path = Path.home().resolve().joinpath(".config").joinpath("ag")
class AgnoCliSettings(BaseSettings):
config_file_path: Path = AGNO_CLI_CONFIG_DIR.joinpath("config.json... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/config.py | libs/agno_infra/agno/cli/config.py | from collections import OrderedDict
from pathlib import Path
from typing import Dict, List, Optional
from agno.cli.console import print_heading, print_info
from agno.cli.settings import agno_cli_settings
from agno.infra.config import InfraConfig
from agno.utilities.json_io import read_json_file, write_json_file
from a... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno_infra/agno/cli/__init__.py | libs/agno_infra/agno/cli/__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/libs/agno/tests/__init__.py | libs/agno/tests/__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/libs/agno/tests/system/test_session_routes.py | libs/agno/tests/system/test_session_routes.py | """
System Tests for AgentOS Session Routes.
Run with: pytest test_session_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import REQUEST_TIMEOUT, generate_jwt_token
@pytest.fixture(scope="module")
def test_user_id() -> str:
"""Generate a unique user ID for testing."""
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_agents_routes.py | libs/agno/tests/system/test_agents_routes.py | """
System Tests for AgentOS Agent Routes.
Run with: pytest test_agents_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import (
EXPECTED_ALL_AGENTS,
REQUEST_TIMEOUT,
generate_jwt_token,
parse_sse_events,
validate_agent_stream_events,
)
@pytest.fixture(scope... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_evals_routes.py | libs/agno/tests/system/test_evals_routes.py | """
System Tests for AgentOS Evals Routes.
Run with: pytest test_evals_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import REQUEST_TIMEOUT, generate_jwt_token
@pytest.fixture(scope="module")
def test_user_id() -> str:
"""Generate a unique user ID for testing."""
retu... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_utils.py | libs/agno/tests/system/test_utils.py | """
Shared test utilities and helpers for AgentOS system tests.
"""
import json
import os
from datetime import datetime, timedelta, timezone
from typing import Any, Dict, List, Optional, Tuple
import jwt
# Must match the secret key in gateway_server.py and remote_server.py
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY"... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_slack_routes.py | libs/agno/tests/system/test_slack_routes.py | """
System Tests for Slack Interface Routes.
Tests both local and remote agents/teams/workflows through the Slack interface.
Note: These tests mock Slack webhook signatures since we don't have actual Slack credentials.
Run with: pytest test_slack_routes.py -v --tb=short
"""
import hashlib
import hmac
import json
imp... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_traces_routes.py | libs/agno/tests/system/test_traces_routes.py | """
System Tests for AgentOS Traces Routes.
Run with: pytest test_traces_routes.py -v --tb=short
"""
import time
import uuid
import httpx
import pytest
from .test_utils import REQUEST_TIMEOUT, generate_jwt_token
@pytest.fixture(scope="module")
def test_user_id() -> str:
"""Generate a unique user ID for testin... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/conftest.py | libs/agno/tests/system/conftest.py | """
Pytest configuration and shared fixtures for system tests.
"""
import os
from typing import Dict
import pytest
from .test_utils import generate_jwt_token
def pytest_configure(config):
"""Configure pytest with custom markers."""
config.addinivalue_line("markers", "slow: marks tests as slow (deselect wit... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_a2a_routes.py | libs/agno/tests/system/test_a2a_routes.py | """
System Tests for A2A (Agent-to-Agent) Interface Routes.
Tests both local and remote agents/teams/workflows through the A2A interface.
Run with: pytest test_a2a_routes.py -v --tb=short
"""
import json
import uuid
from typing import Any, Dict, List, Tuple
import httpx
import pytest
from .test_utils import generat... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_knowledge_routes.py | libs/agno/tests/system/test_knowledge_routes.py | """
System Tests for AgentOS Knowledge Routes.
Run with: pytest test_knowledge_routes.py -v --tb=short
"""
import time
import uuid
import httpx
import pytest
from .test_utils import REQUEST_TIMEOUT, generate_jwt_token
@pytest.fixture(scope="module")
def test_user_id() -> str:
"""Generate a unique user ID for ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_agentos_routes.py | libs/agno/tests/system/test_agentos_routes.py | """
Integration Tests for AgentOS Routes - Remote Resources, Error Handling, and Authorization.
This file contains integration tests for:
- Remote resource accessibility (agents, teams, workflows)
- Error handling and edge cases
- Authorization tests
Run with: pytest test_agentos_routes.py -v --tb=short
"""
import o... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_mcp_routes.py | libs/agno/tests/system/test_mcp_routes.py | """
Comprehensive System Tests for MCP (Model Context Protocol) Routes.
These tests verify the MCP interface functionality provided by AgentOS.
The MCP server exposes tools that can be called by MCP clients using
Streamable HTTP transport (the modern MCP standard).
Coverage:
- Connection and authentication
- Configur... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/remote_server.py | libs/agno/tests/system/remote_server.py | """
Remote AgentOS Server for System Tests.
This server hosts the actual agents, teams, and workflows that the gateway
consumes via RemoteAgent, RemoteTeam, and RemoteWorkflow.
"""
import os
from agno.agent import Agent
from agno.db.postgres import AsyncPostgresDb
from agno.knowledge.embedder.openai import OpenAIEmb... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/__init__.py | libs/agno/tests/system/__init__.py | """
AgentOS System Tests Package.
This package contains comprehensive system tests for the AgentOS API,
testing a multi-container Docker setup with gateway and remote servers.
"""
| python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_teams_routes.py | libs/agno/tests/system/test_teams_routes.py | """
System Tests for AgentOS Team Routes.
Run with: pytest test_teams_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import (
EXPECTED_ALL_TEAMS,
REQUEST_TIMEOUT,
generate_jwt_token,
parse_sse_events,
validate_team_stream_events,
)
@pytest.fixture(scope="mo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_metrics_routes.py | libs/agno/tests/system/test_metrics_routes.py | """
System Tests for AgentOS Metrics Routes.
Run with: pytest test_metrics_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import REQUEST_TIMEOUT, generate_jwt_token
@pytest.fixture(scope="module")
def test_user_id() -> str:
"""Generate a unique user ID for testing."""
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_agui_routes.py | libs/agno/tests/system/test_agui_routes.py | """
System Tests for AG-UI Interface Routes.
Tests both local and remote agents/teams through the AG-UI interface.
Run with: pytest test_agui_routes.py -v --tb=short
"""
import json
import uuid
from typing import Any, Dict, List, Tuple
import httpx
import pytest
from .test_utils import generate_jwt_token
# Test ti... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/gateway_server.py | libs/agno/tests/system/gateway_server.py | """
Gateway AgentOS Server for System Tests.
This server acts as a gateway that consumes remote agents, teams, and workflows
defined in a separate remote server container.
"""
import os
from agno.agent import Agent, RemoteAgent
from agno.db.postgres import AsyncPostgresDb
from agno.knowledge.embedder.openai import O... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_workflows_routes.py | libs/agno/tests/system/test_workflows_routes.py | """
System Tests for AgentOS Workflow Routes.
Run with: pytest test_workflows_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import (
EXPECTED_ALL_WORKFLOWS,
REQUEST_TIMEOUT,
generate_jwt_token,
parse_sse_events,
validate_workflow_stream_events,
)
@pytest.f... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_memory_routes.py | libs/agno/tests/system/test_memory_routes.py | """
System Tests for AgentOS Memory Routes.
Run with: pytest test_memory_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import REQUEST_TIMEOUT, generate_jwt_token
@pytest.fixture(scope="module")
def test_user_id() -> str:
"""Generate a unique user ID for testing."""
re... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/system/test_config_routes.py | libs/agno/tests/system/test_config_routes.py | """
System Tests for AgentOS Health and Config Routes.
Run with: pytest test_config_routes.py -v --tb=short
"""
import uuid
import httpx
import pytest
from .test_utils import (
EXPECTED_ALL_AGENTS,
EXPECTED_ALL_TEAMS,
EXPECTED_ALL_WORKFLOWS,
REQUEST_TIMEOUT,
generate_jwt_token,
)
@pytest.fixtu... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/conftest.py | libs/agno/tests/integration/conftest.py | import os
import tempfile
import time
import uuid
from pathlib import Path
from unittest.mock import Mock
import pytest
import pytest_asyncio
from sqlalchemy import Engine, create_engine, text
from agno.agent.agent import Agent
from agno.db.postgres import PostgresDb
from agno.db.sqlite import AsyncSqliteDb, SqliteDb... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/__init__.py | libs/agno/tests/integration/__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/libs/agno/tests/integration/test_os_basic.py | libs/agno/tests/integration/test_os_basic.py | import pytest
from fastapi.testclient import TestClient
from agno.agent.agent import Agent
from agno.knowledge.knowledge import Knowledge
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
from agno.vectordb.chroma import ChromaDb
@pytest.fixture
def vector_db():
"""Setup a temporary 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/libs/agno/tests/integration/test_basic.py | libs/agno/tests/integration/test_basic.py | import pytest
from agno.agent.agent import Agent
from agno.knowledge.knowledge import Knowledge
from agno.models.openai import OpenAIChat
from agno.run.agent import RunOutput
from agno.team.team import Team
from agno.vectordb.chroma import ChromaDb
@pytest.fixture
def vector_db():
"""Setup a temporary 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/libs/agno/tests/integration/workflows/test_session.py | libs/agno/tests/integration/workflows/test_session.py | import uuid
from typing import Any, Dict, Optional
import pytest
from agno.agent.agent import Agent
from agno.workflow import Step, StepInput, StepOutput, Workflow
from agno.workflow.condition import Condition
from agno.workflow.router import Router
# Simple helper functions
def research_step_function(step_input: ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_parallel_session_state.py | libs/agno/tests/integration/workflows/test_parallel_session_state.py | """Integration tests for parallel session state handling in workflows."""
import asyncio
from copy import deepcopy
import pytest
from agno.run.base import RunContext, RunStatus
from agno.utils.merge_dict import merge_parallel_session_states
from agno.workflow.parallel import Parallel
from agno.workflow.step import S... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_streaming_events.py | libs/agno/tests/integration/workflows/test_streaming_events.py | """Integration tests for workflow streaming events."""
from typing import List
import pytest
from agno.run.workflow import (
ConditionExecutionCompletedEvent,
ConditionExecutionStartedEvent,
LoopExecutionCompletedEvent,
LoopExecutionStartedEvent,
LoopIterationCompletedEvent,
LoopIterationStar... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_workflow_cancellation.py | libs/agno/tests/integration/workflows/test_workflow_cancellation.py | import pytest
from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.run.base import RunStatus
from agno.run.workflow import WorkflowCancelledEvent
from agno.workflow import Step, Workflow
from agno.workflow.types import StepOutput
# Test fixtures
@pytest.fixture
def streaming_workflo... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_router_steps.py | libs/agno/tests/integration/workflows/test_router_steps.py | """Test Router functionality in workflows."""
from agno.run.workflow import WorkflowCompletedEvent
from agno.workflow.router import Router
from agno.workflow.step import Step
from agno.workflow.steps import Steps
from agno.workflow.types import StepInput, StepOutput
from agno.workflow.workflow import Workflow
def fi... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_structured_output_flow.py | libs/agno/tests/integration/workflows/test_structured_output_flow.py | """Integration tests for structured output flow between workflow steps."""
from typing import List
import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team import Team
from agno.workflow import Step, Workflow
from agno.workflow.types im... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_convenience_functions.py | libs/agno/tests/integration/workflows/test_convenience_functions.py | import uuid
import pytest
from agno.agent.agent import Agent
from agno.db.sqlite.async_sqlite import AsyncSqliteDb
from agno.db.sqlite.sqlite import SqliteDb
from agno.team.team import Team
from agno.workflow.step import Step
from agno.workflow.workflow import Workflow
# -- 1. Workflow class convenience functions --... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_sequence_of_steps.py | libs/agno/tests/integration/workflows/test_sequence_of_steps.py | """Integration tests for Workflow v2 sequence of steps functionality"""
import asyncio
from typing import AsyncIterator
import pytest
from agno.models.metrics import Metrics
from agno.run.workflow import WorkflowCompletedEvent, WorkflowRunOutput
from agno.workflow import Step, StepInput, StepOutput, Workflow
def r... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_workflow_metrics.py | libs/agno/tests/integration/workflows/test_workflow_metrics.py | """Integration tests for Workflow metrics including duration tracking."""
import asyncio
import pytest
from agno.models.metrics import Metrics
from agno.run.base import RunStatus
from agno.run.workflow import WorkflowCompletedEvent
from agno.workflow import Condition, Parallel, Step, StepInput, StepOutput, Workflow
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_background_execution.py | libs/agno/tests/integration/workflows/test_background_execution.py | """
Integration tests for Workflow background execution functionality.
Tests the background task execution, polling, and status tracking features.
"""
import asyncio
import pytest
from agno.run.base import RunStatus
@pytest.mark.asyncio
async def test_basic_background_execution(simple_workflow):
"""Test basic ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_parallel_steps.py | libs/agno/tests/integration/workflows/test_parallel_steps.py | """Integration tests for Parallel steps functionality."""
from contextvars import ContextVar
from secrets import token_hex
import pytest
from agno.run.workflow import WorkflowCompletedEvent, WorkflowRunOutput
from agno.workflow import Workflow
from agno.workflow.parallel import Parallel
from agno.workflow.step impor... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_access_multiple_previous_steps_outputs.py | libs/agno/tests/integration/workflows/test_access_multiple_previous_steps_outputs.py | """Integration tests for accessing multiple previous step outputs in workflows."""
import pytest
from agno.run.workflow import WorkflowCompletedEvent, WorkflowRunOutput
from agno.workflow import Condition, Parallel, Step, Workflow
from agno.workflow.steps import Steps
from agno.workflow.types import StepInput, StepOu... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/conftest.py | libs/agno/tests/integration/workflows/conftest.py | import asyncio
import uuid
from typing import List
import pytest
import pytest_asyncio
from agno.agent.agent import Agent
from agno.db.json import JsonDb
from agno.db.sqlite.async_sqlite import AsyncSqliteDb
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.workflow import Condition,... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_condition_steps.py | libs/agno/tests/integration/workflows/test_condition_steps.py | """Integration tests for Condition functionality in workflows."""
import pytest
from agno.run.base import RunStatus
from agno.run.workflow import (
ConditionExecutionCompletedEvent,
ConditionExecutionStartedEvent,
WorkflowCompletedEvent,
WorkflowRunOutput,
)
from agno.workflow import Condition, Parall... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_workflow_chat_agent.py | libs/agno/tests/integration/workflows/test_workflow_chat_agent.py | """Integration tests for WorkflowAgent functionality in workflows."""
import uuid
import pytest
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.run.workflow import WorkflowCompletedEvent, WorkflowStartedEvent
from agno.workflow import Step, StepInput, StepOutput, Workflow
from agno.w... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/__init__.py | libs/agno/tests/integration/workflows/__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/libs/agno/tests/integration/workflows/test_custom_executor_events.py | libs/agno/tests/integration/workflows/test_custom_executor_events.py | """Integration tests for workflow streaming events."""
from pydantic import BaseModel
from agno.agent.agent import Agent
from agno.workflow import Step, Workflow
from agno.workflow.types import StepInput, StepOutput
def test_agent_stream_basic_events():
def test_step_one_executor(step_input: StepInput) -> StepO... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_loop_steps.py | libs/agno/tests/integration/workflows/test_loop_steps.py | """Integration tests for Loop functionality in workflows."""
import pytest
from agno.run.workflow import (
LoopExecutionCompletedEvent,
LoopExecutionStartedEvent,
WorkflowCompletedEvent,
WorkflowRunOutput,
)
from agno.workflow import Loop, Parallel, Workflow
from agno.workflow.types import StepInput, ... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_steps.py | libs/agno/tests/integration/workflows/test_steps.py | """Integration tests for Steps functionality in workflows."""
import asyncio
from typing import AsyncIterator
import pytest
from agno.run.workflow import (
StepsExecutionCompletedEvent,
StepsExecutionStartedEvent,
WorkflowCompletedEvent,
)
from agno.workflow import Step, StepInput, StepOutput, Steps, Wor... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_sequence_of_function_and_agent.py | libs/agno/tests/integration/workflows/test_sequence_of_function_and_agent.py | """Integration tests for Workflow v2 sequence of steps functionality"""
import asyncio
from typing import AsyncIterator, Iterator
import pytest
from agno.run.workflow import StepOutputEvent, WorkflowCompletedEvent, WorkflowRunOutput
from agno.workflow import StepInput, StepOutput, Workflow
def test_basic_sequence(... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_mixed_steps.py | libs/agno/tests/integration/workflows/test_mixed_steps.py | """Integration tests for complex combinations of workflow steps."""
import pytest
from agno.run.workflow import WorkflowCompletedEvent, WorkflowRunOutput
from agno.workflow import Condition, Loop, Parallel, Workflow
from agno.workflow.router import Router
from agno.workflow.types import StepInput, StepOutput
def fi... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/workflows/test_functions_instead_of_steps.py | libs/agno/tests/integration/workflows/test_functions_instead_of_steps.py | """Test custom execution functions in workflows."""
from typing import Iterator, Union
import pytest
from agno.agent.agent import Agent
from agno.run.agent import RunOutputEvent
from agno.run.base import RunStatus
from agno.run.workflow import WorkflowCompletedEvent
from agno.workflow.types import WorkflowExecutionI... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/tools/__init__.py | libs/agno/tests/integration/tools/__init__.py | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false | |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/tools/test_custom_api.py | libs/agno/tests/integration/tools/test_custom_api.py | """Unit tests for CustomApiTools class."""
import json
from agno.tools.api import CustomApiTools
def test_integration_dog_api():
"""Integration test with actual Dog API (optional, can be skipped in CI)."""
# This test makes actual API calls - can be skipped in CI environments
# by using pytest.mark.skip... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/tools/test_tool_generated_media.py | libs/agno/tests/integration/tools/test_tool_generated_media.py | import pytest
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.db.in_memory.in_memory_db import InMemoryDb
from agno.media import Audio, Image
from agno.models.openai.chat import OpenAIChat
from agno.tools.dalle import DalleTools
@pytest.fixture
def openai_agent():
"""Create an a... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_session.py | libs/agno/tests/integration/teams/test_session.py | import uuid
from typing import Any, Dict, Optional
import pytest
from agno.agent.agent import Agent
from agno.models.openai.chat import OpenAIChat
from agno.run.team import TeamRunEvent
from agno.team.team import Team
def team_factory(shared_db, session_id: Optional[str] = None, session_state: Optional[Dict[str, An... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_parser_model.py | libs/agno/tests/integration/teams/test_parser_model.py | """
Test parser model functionality with teams
"""
from typing import List
from pydantic import BaseModel, Field
from agno.models.openai import OpenAIChat
from agno.team import Team
class ParkGuide(BaseModel):
park_name: str = Field(..., description="The official name of the national park.")
activities: Li... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_metrics.py | libs/agno/tests/integration/teams/test_metrics.py | from typing import Iterator
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools.yfinance import YFinanceTools
def test_team_metrics_basic(shared_db):
"""Test basic team metrics functionality."""
stock_agent = Agent(
name="Stock Agent... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_filter_tool_calls.py | libs/agno/tests/integration/teams/test_filter_tool_calls.py | import pytest
from agno.models.openai import OpenAIChat
from agno.team import Team
@pytest.fixture
def team(shared_db):
"""Create a team with db and max_tool_calls_from_history for testing."""
def get_weather(city: str) -> str:
return f"The weather in {city} is sunny."
return Team(
mode... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_output_schema_override.py | libs/agno/tests/integration/teams/test_output_schema_override.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team import Team
@pytest.fixture(autouse=True)
def reset_async_client():
"""Reset global async HTTP client between tests to avoid event loop conflicts."""
import agno.utils.htt... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_input.py | libs/agno/tests/integration/teams/test_input.py | from pydantic import BaseModel
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.media import Image
from agno.models.message import Message
from agno.models.openai import OpenAIChat
from agno.session.summary import SessionSummaryManager
from agno.team import Team
def test_message_as_input():... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_team_with_member_with_parser_model.py | libs/agno/tests/integration/teams/test_team_with_member_with_parser_model.py | from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team import Team
class ParkGuide(BaseModel):
park_name: str = Field(..., description="The official name of the national park.")
activities: List[str] = Field(
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_dependencies.py | libs/agno/tests/integration/teams/test_dependencies.py | import json
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.models.openai.chat import OpenAIChat
from agno.team import Team, TeamRunOutput
def test_dependencies():
team = Team(
members=[],
model=OpenAIChat(id="gpt-4o-mini"),
dependencies={"robot_name": "Ann... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_memory_impact.py | libs/agno/tests/integration/teams/test_memory_impact.py | import asyncio
import gc
import tracemalloc
from typing import List, Tuple
import pytest
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
from agno.team.team import Team
class MemoryMonitor:
"""Utility class to monitor memory usage during tea... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_introduction.py | libs/agno/tests/integration/teams/test_introduction.py | import uuid
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
from agno.team.team import Team
def test_team_with_introduction(shared_db):
"""Test that introduction is added to the session as the first assistant message."""
session_id = str(... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_hooks.py | libs/agno/tests/integration/teams/test_hooks.py | """
Tests for Team parameter initialization and configuration.
This test file validates that all Team class parameters are properly initialized
and configured according to their expected behavior.
"""
from typing import Any, AsyncIterator, Dict, Iterator, Optional
from unittest.mock import AsyncMock, Mock
import pyt... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | true |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_send_media_to_model.py | libs/agno/tests/integration/teams/test_send_media_to_model.py | from typing import Optional, Sequence
import pytest
from agno.agent import Agent
from agno.media import File
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools import Toolkit
class DocumentProcessingTools(Toolkit):
"""Test toolkit that accesses files without sending them t... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_team_delegation.py | libs/agno/tests/integration/teams/test_team_delegation.py | from typing import List
from pydantic import BaseModel
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team.team import Team
def test_team_delegation():
"""Test basic functionality of a coordinator team."""
def get_climate_change_info() -> str:
return "Climate chang... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_team_reasoning_new_models.py | libs/agno/tests/integration/teams/test_team_reasoning_new_models.py | """Integration tests for Team reasoning with all supported reasoning model providers.
This test verifies that Team reasoning works with:
- Anthropic Claude models with extended thinking
- Gemini 2.5+ models with thinking support
- VertexAI Claude models with extended thinking
- OpenAI reasoning models (o1, o3, o4, 4.1... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | true |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_team_with_output_model.py | libs/agno/tests/integration/teams/test_team_with_output_model.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.openai import OpenAIChat
from agno.run.team import IntermediateRunContentEvent, RunContentEvent
from agno.team import Team
agent = Agent(
model=Claude(id="claude-sonnet-4-20250514"),
description="You are an expert on nationa... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_structured_output.py | libs/agno/tests/integration/teams/test_structured_output.py | import pytest
from pydantic import BaseModel
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools.yfinance import YFinanceTools
def test_output_schemas_on_members():
class StockAnalysis(BaseModel):
symbol: str
company_name: str
... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_retries.py | libs/agno/tests/integration/teams/test_retries.py | """Integration tests for team retry functionality."""
from unittest.mock import patch
import pytest
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.run.base import RunStatus
from agno.team import Team
def test_team_retry():
"""Test that team retries on failure and eventually su... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_team_convenience_functions.py | libs/agno/tests/integration/teams/test_team_convenience_functions.py | import uuid
from typing import Any, Dict
import pytest
from agno.agent.agent import Agent
from agno.models.openai.chat import OpenAIChat
from agno.team.team import Team
@pytest.fixture
def simple_agent():
"""Create a simple agent for team members."""
return Agent(
name="Helper Agent",
model=... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_reasoning_content_default_COT.py | libs/agno/tests/integration/teams/test_reasoning_content_default_COT.py | """Test for reasoning_content generation in different Agent configurations.
This test verifies that reasoning_content is properly populated in the RunOutput
for various Agent configurations, including:
- reasoning=True (with default model)
- reasoning_model=specified model
- streaming and non-streaming modes
"""
from... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_tool_compression.py | libs/agno/tests/integration/teams/test_tool_compression.py | import pytest
from agno.agent import Agent
from agno.compression.manager import CompressionManager
from agno.models.openai import OpenAIChat
from agno.team.team import Team
def search_tool(query: str) -> str:
"""Search tool that returns large content to trigger compression."""
return f"Search results for '{q... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_session_state.py | libs/agno/tests/integration/teams/test_session_state.py | from typing import Any, Dict, Optional
from agno.agent.agent import Agent
from agno.models.openai.chat import OpenAIChat
from agno.team.team import Team
def team_factory(shared_db, session_id: Optional[str] = None, session_state: Optional[Dict[str, Any]] = None):
return Team(
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/libs/agno/tests/integration/teams/__init__.py | libs/agno/tests/integration/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/libs/agno/tests/integration/teams/test_event_streaming.py | libs/agno/tests/integration/teams/test_event_streaming.py | from textwrap import dedent
import pytest
from pydantic import BaseModel
from agno.agent import RunEvent
from agno.agent.agent import Agent
from agno.db.in_memory.in_memory_db import InMemoryDb
from agno.models.openai.chat import OpenAIChat
from agno.run.team import TeamRunInput, TeamRunOutput
from agno.team import T... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | true |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/teams/test_multimodal.py | libs/agno/tests/integration/teams/test_multimodal.py | from agno.agent.agent import Agent
from agno.media import Image
from agno.models.openai.chat import OpenAIChat
from agno.team.team import Team
def test_team_image_input(shared_db, image_path):
image_analyst = Agent(
name="Image Analyst",
role="Analyze images and provide insights.",
model=O... | 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.