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/tests/integration/models/vertexai/claude/test_tool_use.py | libs/agno/tests/integration/models/vertexai/claude/test_tool_use.py | from typing import Optional
import pytest
from agno.agent import Agent # noqa
from agno.models.vertexai.claude import Claude
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.exa import ExaTools
from agno.tools.yfinance import YFinanceTools
def test_tool_use():
agent = Agent(
model=Clau... | 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/models/vertexai/claude/test_prompt_caching.py | libs/agno/tests/integration/models/vertexai/claude/test_prompt_caching.py | """
Integration tests for Claude model prompt caching functionality.
Tests the basic caching features including:
- System message caching with real API calls
- Cache performance tracking
- Usage metrics with standard field names
"""
from pathlib import Path
from unittest.mock import Mock
import pytest
from agno.age... | 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/models/vertexai/claude/test_multimodal.py | libs/agno/tests/integration/models/vertexai/claude/test_multimodal.py | from agno.agent.agent import Agent
from agno.media import Image
from agno.models.vertexai.claude import Claude
def test_image_input():
agent = Agent(model=Claude(id="claude-sonnet-4@20250514"), markdown=True, telemetry=False)
response = agent.run(
"Tell me about this image.",
images=[Image(ur... | 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/models/vertexai/claude/test_basic.py | libs/agno/tests/integration/models/vertexai/claude/test_basic.py | from pathlib import Path
import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.db.sqlite import SqliteDb
from agno.models.vertexai.claude import Claude
from agno.utils.log import log_warning
from agno.utils.media import download_file
@pytest.fixture(scope="module")
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/tests/integration/models/perplexity/test_structured_response.py | libs/agno/tests/integration/models/perplexity/test_structured_response.py | import enum
from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.perplexity import Perplexity
class MovieScript(BaseModel):
setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.")
ending: 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/models/perplexity/__init__.py | libs/agno/tests/integration/models/perplexity/__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/models/perplexity/test_basic.py | libs/agno/tests/integration/models/perplexity/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.db.sqlite import SqliteDb
from agno.models.perplexity import Perplexity
def _assert_metrics(response: RunOutput):
assert response.metrics is not None
input_tokens = response.metrics.input_tokens
output_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/models/deepseek/test_tool_use.py | libs/agno/tests/integration/models/deepseek/test_tool_use.py | from typing import Optional
import pytest
from agno.agent import Agent, RunOutput # noqa
from agno.models.deepseek import DeepSeek
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.yfinance import YFinanceTools
def test_tool_use():
agent = Agent(
model=DeepSeek(id="deepseek-chat"),
... | 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/models/deepseek/test_structured_response.py | libs/agno/tests/integration/models/deepseek/test_structured_response.py | import enum
from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.deepseek import DeepSeek
class MovieScript(BaseModel):
setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.")
ending: str = Field(
...,
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/tests/integration/models/deepseek/__init__.py | libs/agno/tests/integration/models/deepseek/__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/models/deepseek/test_reasoning_streaming.py | libs/agno/tests/integration/models/deepseek/test_reasoning_streaming.py | """Integration tests for DeepSeek reasoning streaming functionality.
This test verifies that reasoning content streams correctly (not all at once)
for DeepSeek reasoning models when used as a reasoning_model.
These tests verify the streaming reasoning feature where reasoning content
is delivered incrementally via Run... | 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/models/deepseek/test_basic.py | libs/agno/tests/integration/models/deepseek/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput # noqa
from agno.db.sqlite import SqliteDb
from agno.models.deepseek import DeepSeek
def _assert_metrics(response: RunOutput):
assert response.metrics is not None
input_tokens = response.metrics.input_tokens
outp... | 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/models/deepinfra/test_tool_use.py | libs/agno/tests/integration/models/deepinfra/test_tool_use.py | from typing import Optional
import pytest
from agno.agent import Agent, RunOutput # noqa
from agno.models.deepinfra import DeepInfra
from agno.tools.yfinance import YFinanceTools
def test_tool_use():
agent = Agent(
model=DeepInfra(id="openai/gpt-oss-120b"),
tools=[YFinanceTools(cache_results=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/tests/integration/models/deepinfra/test_structured_response.py | libs/agno/tests/integration/models/deepinfra/test_structured_response.py | import enum
from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.deepinfra import DeepInfra
class MovieScript(BaseModel):
setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.")
ending: 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/models/deepinfra/__init__.py | libs/agno/tests/integration/models/deepinfra/__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/models/deepinfra/test_basic.py | libs/agno/tests/integration/models/deepinfra/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.db.sqlite import SqliteDb
from agno.models.deepinfra import DeepInfra
def _assert_metrics(response: RunOutput):
assert response.metrics is not None
input_tokens = response.metrics.input_tokens
output_tok... | 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/models/litellm/test_tool_use.py | libs/agno/tests/integration/models/litellm/test_tool_use.py | import pytest
from agno.agent import Agent, RunOutput
from agno.models.litellm import LiteLLM
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.yfinance import YFinanceTools
def _assert_metrics(response: RunOutput):
"""Helper function to assert metrics are present and valid"""
# Check that me... | 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/models/litellm/__init__.py | libs/agno/tests/integration/models/litellm/__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/models/litellm/test_multimodal.py | libs/agno/tests/integration/models/litellm/test_multimodal.py | from typing import Any
import requests
from agno.agent.agent import Agent
from agno.media import Audio, Image
from agno.models.litellm import LiteLLM
from agno.tools.duckduckgo import DuckDuckGoTools
def _get_audio_input() -> bytes | Any:
"""Fetch an example audio file and return it as base64 encoded string"""
... | 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/models/litellm/test_basic.py | libs/agno/tests/integration/models/litellm/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.db.sqlite import SqliteDb
from agno.models.litellm import LiteLLM
def _assert_metrics(response: RunOutput):
"""Helper function to assert metrics are present and valid"""
# Check that metrics dictionary exist... | 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/models/dashscope/test_tool_use.py | libs/agno/tests/integration/models/dashscope/test_tool_use.py | from typing import Optional
import pytest
from agno.agent import Agent
from agno.models.dashscope import DashScope
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.exa import ExaTools
from agno.tools.yfinance import YFinanceTools
def test_tool_use():
agent = Agent(
model=DashScope(id="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/models/dashscope/test_structured_response.py | libs/agno/tests/integration/models/dashscope/test_structured_response.py | import enum
from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.dashscope import DashScope
class MovieScript(BaseModel):
setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.")
ending: 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/models/dashscope/__init__.py | libs/agno/tests/integration/models/dashscope/__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/models/dashscope/test_multimodal.py | libs/agno/tests/integration/models/dashscope/test_multimodal.py | from pathlib import Path
import pytest
from agno.agent.agent import Agent
from agno.media import Image
from agno.models.dashscope import DashScope
def test_image_input_url():
agent = Agent(model=DashScope(id="qwen-vl-plus"), markdown=True, telemetry=False)
response = agent.run(
"Tell me about this ... | 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/models/dashscope/test_basic.py | libs/agno/tests/integration/models/dashscope/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput # noqa
from agno.db.sqlite import SqliteDb
from agno.models.dashscope import DashScope
def _assert_metrics(response: RunOutput):
assert response.metrics is not None
input_tokens = response.metrics.input_tokens
ou... | 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/models/meta/__init__.py | libs/agno/tests/integration/models/meta/__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/models/meta/llama_openai/test_tool_use.py | libs/agno/tests/integration/models/meta/llama_openai/test_tool_use.py | from typing import Optional
import pytest
from agno.agent import Agent, RunOutput # noqa
from agno.models.meta import LlamaOpenAI
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.yfinance import YFinanceTools
def test_tool_use():
agent = Agent(
model=LlamaOpenAI(id="Llama-4-Maverick-17... | 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/models/meta/llama_openai/test_structured_response.py | libs/agno/tests/integration/models/meta/llama_openai/test_structured_response.py | import enum
from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.meta import LlamaOpenAI
class MovieScript(BaseModel):
setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.")
ending: str = Field(
...,
des... | 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/models/meta/llama_openai/__init__.py | libs/agno/tests/integration/models/meta/llama_openai/__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/models/meta/llama_openai/test_multimodal.py | libs/agno/tests/integration/models/meta/llama_openai/test_multimodal.py | from pathlib import Path
from agno.agent.agent import Agent
from agno.media import Image
from agno.models.meta import LlamaOpenAI
from agno.utils.media import download_image
image_path = Path(__file__).parent.joinpath("sample.jpg")
download_image(
url="https://upload.wikimedia.org/wikipedia/commons/0/0c/GoldenGa... | 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/models/meta/llama_openai/test_basic.py | libs/agno/tests/integration/models/meta/llama_openai/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.db.sqlite import SqliteDb
from agno.models.meta.llama_openai import LlamaOpenAI
@pytest.fixture(scope="module")
def llama_openai_model():
"""Fixture that provides a LlamaOpenAI model and reuses it across all tes... | 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/models/meta/llama/test_tool_use.py | libs/agno/tests/integration/models/meta/llama/test_tool_use.py | from typing import Optional
import pytest
from agno.agent import Agent, RunOutput # noqa
from agno.models.meta import Llama
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.yfinance import YFinanceTools
def test_tool_use():
agent = Agent(
model=Llama(id="Llama-4-Maverick-17B-128E-Instr... | 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/models/meta/llama/__init__.py | libs/agno/tests/integration/models/meta/llama/__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/models/meta/llama/test_multimodal.py | libs/agno/tests/integration/models/meta/llama/test_multimodal.py | from pathlib import Path
from agno.agent.agent import Agent
from agno.media import Image
from agno.models.meta import Llama
image_path = Path(__file__).parent.parent.parent.joinpath("sample_image.jpg")
def test_image_input_file():
agent = Agent(model=Llama(id="Llama-4-Maverick-17B-128E-Instruct-FP8"), markdown=... | 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/models/meta/llama/test_basic.py | libs/agno/tests/integration/models/meta/llama/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.db.sqlite import SqliteDb
from agno.models.meta.llama import Llama
@pytest.fixture(scope="module")
def llama_model():
"""Fixture that provides a Llama model and reuses it across all tests in the module."""
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/models/fireworks/test_tool_use.py | libs/agno/tests/integration/models/fireworks/test_tool_use.py | from typing import Optional
import pytest
from agno.agent import Agent # noqa
from agno.models.fireworks import Fireworks
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.exa import ExaTools
from agno.tools.yfinance import YFinanceTools
def test_tool_use():
agent = Agent(
model=Firewor... | 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/models/fireworks/test_structured_response.py | libs/agno/tests/integration/models/fireworks/test_structured_response.py | import enum
from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.fireworks import Fireworks
class MovieScript(BaseModel):
setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.")
ending: 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/models/fireworks/__init__.py | libs/agno/tests/integration/models/fireworks/__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/models/fireworks/test_basic.py | libs/agno/tests/integration/models/fireworks/test_basic.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.db.sqlite import SqliteDb
from agno.models.fireworks import Fireworks
def _assert_metrics(response: RunOutput):
assert response.metrics is not None
input_tokens = response.metrics.input_tokens
output_tok... | 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/managers/test_session_summary_manager.py | libs/agno/tests/integration/managers/test_session_summary_manager.py | import os
import tempfile
from datetime import datetime
from unittest.mock import Mock, patch
import pytest
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIChat
from agno.run.agent import Message, RunOutput
from agno.session.agent import AgentSession
from agno.session.summary import SessionSu... | 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/managers/__init__.py | libs/agno/tests/integration/managers/__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/managers/test_memory_manager.py | libs/agno/tests/integration/managers/test_memory_manager.py | import os
import tempfile
from datetime import datetime
import pytest
from agno.db.sqlite import SqliteDb
from agno.memory import MemoryManager, UserMemory
from agno.memory.strategies.types import MemoryOptimizationStrategyType
from agno.models.message import Message
from agno.models.openai import OpenAIChat
@pytes... | 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/session/test_agent_session.py | libs/agno/tests/integration/session/test_agent_session.py | """Integration tests for AgentSession methods"""
import uuid
from datetime import datetime
from time import time
from agno.db.base import SessionType
from agno.models.message import Message
from agno.run.agent import RunOutput
from agno.run.base import RunStatus
from agno.session.agent import AgentSession
from agno.s... | 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/session/test_team_session.py | libs/agno/tests/integration/session/test_team_session.py | """Integration tests for TeamSession methods"""
import uuid
from datetime import datetime
from time import time
from agno.db.base import SessionType
from agno.models.message import Message
from agno.run.agent import RunOutput
from agno.run.base import RunStatus
from agno.run.team import TeamRunOutput
from agno.sessio... | 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/session/test_share_sessions.py | libs/agno/tests/integration/session/test_share_sessions.py | import uuid
import pytest
from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.run.agent import RunOutput
from agno.run.team import TeamRunOutput
from agno.session.agent import AgentSession
from agno.session.team import TeamSession
from agno.team.team import Team
@pytest.fixture
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/tests/integration/os/test_custom_fastapi_app.py | libs/agno/tests/integration/os/test_custom_fastapi_app.py | """Integration tests for custom FastAPI app scenarios with AgentOS."""
from contextlib import asynccontextmanager
from unittest.mock import Mock, patch
import pytest
from fastapi import FastAPI, HTTPException
from fastapi.testclient import TestClient
from starlette.middleware.cors import CORSMiddleware
from agno.age... | 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/os/test_sessions.py | libs/agno/tests/integration/os/test_sessions.py | """Integration tests for session and run endpoints in AgentOS."""
import time
from datetime import UTC, datetime
import pytest
from fastapi.testclient import TestClient
from agno.agent.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.message import Message
from agno.models.openai import OpenAI... | 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/os/test_knowledge.py | libs/agno/tests/integration/os/test_knowledge.py | """Integration tests for knowledge router endpoints."""
import json
from io import BytesIO
from unittest.mock import AsyncMock, Mock, patch
from uuid import uuid4
import pytest
from fastapi import APIRouter, FastAPI
from fastapi.testclient import TestClient
from agno.db.schemas.knowledge import KnowledgeRow
from agn... | 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/os/test_output_schema_override.py | libs/agno/tests/integration/os/test_output_schema_override.py | """
Integration tests for AgentOS dynamic output_schema.
Tests passing output_schema as JSON schema string via AgentOS API endpoints.
"""
import json
import pytest
from fastapi.testclient import TestClient
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.openai import OpenAIChat
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/integration/os/test_authorization.py | libs/agno/tests/integration/os/test_authorization.py | """Integration tests for JWT middleware with RBAC (scope-based authorization).
This test suite validates the AgentOS RBAC system using simplified scopes:
- Global resource: resource:action
- Per-resource: resource:<resource-id>:action
- Wildcards: resource:*:action
- Admin: agent_os:admin - Full access to everything
... | 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/os/test_agent_runs.py | libs/agno/tests/integration/os/test_agent_runs.py | """Integration tests for running Agents in AgentOS."""
import json
from unittest.mock import AsyncMock, patch
from agno.agent.agent import Agent
from agno.run import RunContext
def test_create_agent_run(test_os_client, test_agent: Agent):
"""Test creating an agent run using form input."""
response = test_os... | 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/os/test_workflow_runs.py | libs/agno/tests/integration/os/test_workflow_runs.py | """Integration tests for running Workflows in AgentOS."""
import json
from unittest.mock import AsyncMock, patch
from agno.workflow.workflow import Workflow
def test_create_workflow_run(test_os_client, test_workflow: Workflow):
"""Test creating a workflow run using form input."""
response = test_os_client.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/tests/integration/os/test_backround_tasks.py | libs/agno/tests/integration/os/test_backround_tasks.py | """Integration tests for background tasks in AgentOS.
Note on Testing Background Tasks:
When using httpx.AsyncClient with ASGITransport for testing, the ASGI transport
waits for all background tasks to complete before returning the response. This is
by design in the ASGI specification to ensure background tasks finish... | 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/os/test_db_migrations.py | libs/agno/tests/integration/os/test_db_migrations.py | """Tests for database migration endpoints in AgentOS."""
import os
import tempfile
import time
import pytest
from fastapi.testclient import TestClient
from sqlalchemy import BigInteger, Column, MetaData, String, Table, text
from sqlalchemy.engine import create_engine
from sqlalchemy.types import JSON
from agno.agent... | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/os/conftest.py | libs/agno/tests/integration/os/conftest.py | import pytest
from fastapi.testclient import TestClient
from agno.agent.agent import Agent
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.workflow.workflow import Workflow
@pytest.fixture
def test_agent(shared_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/os/test_memory.py | libs/agno/tests/integration/os/test_memory.py | """Integration tests for the Memory routes in AgentOS."""
def test_create_memory(test_os_client):
"""Test creating a new memory."""
response = test_os_client.post(
"/memories",
json={
"memory": "User prefers technical explanations with code examples",
"user_id": "test-u... | 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/os/__init__.py | libs/agno/tests/integration/os/__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/os/test_resync.py | libs/agno/tests/integration/os/test_resync.py | """Integration tests for AgentOS resync functionality."""
from contextlib import asynccontextmanager
import pytest
from fastapi.testclient import TestClient
from agno.agent.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.os import AgentOS
from agno.team.team import Team
from agno.workflow.workf... | 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/os/test_exceptions.py | libs/agno/tests/integration/os/test_exceptions.py | """Integration tests for exception handling in AgentOS."""
import logging
from unittest.mock import AsyncMock
import pytest
from fastapi.testclient import TestClient
from agno.agent.agent import Agent
from agno.models.openai import OpenAIChat
from agno.os import AgentOS
@pytest.fixture
def test_agent(shared_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/os/test_register_mcp_tools.py | libs/agno/tests/integration/os/test_register_mcp_tools.py | from agno.agent import Agent
from agno.os import AgentOS
from agno.team.team import Team
from agno.tools.mcp import MCPTools, MultiMCPTools
from agno.workflow.step import Step
from agno.workflow.workflow import Workflow
def test_agent_mcp_tools_are_registered():
"""Test that agent MCP tools are registered"""
... | 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/os/test_built_in_endpoints.py | libs/agno/tests/integration/os/test_built_in_endpoints.py | import pytest
from fastapi.testclient import TestClient
from agno.agent.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.os import AgentOS
from agno.team.team import Team
from agno.workflow.workflow import Workflow
@pytest.fixture
def test_agent():
"""Create a test agent."""
return Agent(name... | 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/os/test_jwt_middleware.py | libs/agno/tests/integration/os/test_jwt_middleware.py | """Integration tests for JWT middleware functionality."""
from datetime import UTC, datetime, timedelta
from unittest.mock import AsyncMock, patch
import jwt
import pytest
from fastapi import Request
from fastapi.testclient import TestClient
from agno.agent.agent import Agent
from agno.db.in_memory import InMemoryDb... | 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/os/test_team_runs.py | libs/agno/tests/integration/os/test_team_runs.py | """Integration tests for running Teams in AgentOS."""
import json
from unittest.mock import AsyncMock, patch
from agno.run import RunContext
from agno.team.team import Team
def test_create_team_run(test_os_client, test_team: Team):
"""Test creating a team run using form input."""
response = test_os_client.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/tests/integration/os/interfaces/__init__.py | libs/agno/tests/integration/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/libs/agno/tests/integration/os/interfaces/test_a2a.py | libs/agno/tests/integration/os/interfaces/test_a2a.py | import json
from typing import AsyncIterator
from unittest.mock import AsyncMock, patch
import pytest
from fastapi.testclient import TestClient
from agno.agent import Agent
from agno.models.response import ToolExecution
from agno.os.app import AgentOS
from agno.os.interfaces.a2a import A2A
from agno.run.agent import ... | 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/embedder/test_huggingface_embedder.py | libs/agno/tests/integration/embedder/test_huggingface_embedder.py | import pytest
from agno.knowledge.embedder.huggingface import HuggingfaceCustomEmbedder
@pytest.fixture
def embedder():
return HuggingfaceCustomEmbedder()
def test_embedder_initialization(embedder):
"""Test that the embedder initializes correctly"""
assert embedder is not None
assert embedder.id ==... | 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/embedder/__init__.py | libs/agno/tests/integration/embedder/__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/embedder/test_jina_embedder.py | libs/agno/tests/integration/embedder/test_jina_embedder.py | import pytest
from agno.knowledge.embedder.jina import JinaEmbedder
@pytest.fixture
def embedder():
return JinaEmbedder()
def test_embedder_initialization(embedder):
"""Test that the embedder initializes correctly"""
assert embedder is not None
assert embedder.id == "jina-embeddings-v3" # Field is... | 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/agent/test_session.py | libs/agno/tests/integration/agent/test_session.py | import uuid
from typing import Any, Dict, Optional
import pytest
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
from agno.run import RunContext
from agno.run.agent import RunEvent
def add_item(run_context: RunContext, item: str) -> 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/agent/test_output_model.py | libs/agno/tests/integration/agent/test_output_model.py | from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.openai import OpenAIChat
from agno.run.agent import IntermediateRunContentEvent, RunContentEvent
def test_claude_with_openai_output_model():
park_agent = Agent(
model=Claude(id="claude-sonnet-4-20250514"), # Main 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/agent/test_async_tool_calling.py | libs/agno/tests/integration/agent/test_async_tool_calling.py | import asyncio
from typing import AsyncIterator
import pytest
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.models.openai import OpenAIChat
from agno.run import RunContext
from agno.run.base import RunStatus
# Test tools: Async functions (return values)
async def fast_async_functio... | 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/agent/test_parser_model.py | libs/agno/tests/integration/agent/test_parser_model.py | from typing import List
from pydantic import BaseModel, Field
from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.models.google import Gemini
from agno.models.openai import OpenAIChat
class ParkGuide(BaseModel):
park_name: str = Field(..., description="The official name of the nation... | 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/agent/test_metrics.py | libs/agno/tests/integration/agent/test_metrics.py | from agno.agent import Agent, RunOutput # noqa
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.db.base import SessionType
def test_run_response_metrics():
agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
markdown=True,
)
response1 =... | 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/agent/test_filter_tool_calls.py | libs/agno/tests/integration/agent/test_filter_tool_calls.py | import pytest
from agno.agent import Agent
from agno.models.openai import OpenAIChat
@pytest.fixture
def agent(shared_db):
"""Create an agent 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 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/agent/test_output_schema_override.py | libs/agno/tests/integration/agent/test_output_schema_override.py | import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput
from agno.models.openai import OpenAIChat
class PersonSchema(BaseModel):
name: str = Field(..., description="Person's name")
age: int = Field(..., description="Person's age")
class BookSchema(BaseModel):
title: ... | 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/agent/test_shared_model.py | libs/agno/tests/integration/agent/test_shared_model.py | from unittest.mock import patch
import pytest
from agno.agent import Agent
from agno.models.openai.chat import OpenAIChat
@pytest.fixture(scope="session")
def shared_model():
return OpenAIChat(id="gpt-4o-mini")
@pytest.fixture
def web_agent(shared_model):
"""Create a web agent for testing."""
from agn... | 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/agent/test_input.py | libs/agno/tests/integration/agent/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
def test_message_as_input():
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/libs/agno/tests/integration/agent/test_reasoning_content_reasoning_tools.py | libs/agno/tests/integration/agent/test_reasoning_content_reasoning_tools.py | """Test for reasoning_content generation in the Agno framework.
This test verifies that reasoning_content is properly populated in the RunOutput
when using ReasoningTools, in both streaming and non-streaming modes.
"""
from textwrap import dedent
import pytest
from agno.agent import Agent
from agno.models.openai 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/agent/test_dependencies.py | libs/agno/tests/integration/agent/test_dependencies.py | import json
from agno.agent import Agent, RunOutput
from agno.db.in_memory import InMemoryDb
from agno.models.openai.chat import OpenAIChat
def test_dependencies():
agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
dependencies={"robot_name": "Anna"},
instructions="If you are asked to wr... | 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/agent/test_memory_impact.py | libs/agno/tests/integration/agent/test_memory_impact.py | import gc
import tracemalloc
from typing import List, Tuple
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
class MemoryMonitor:
"""Utility class to monitor memory usage during agent operations using tracemalloc."""
def __init__(self):
... | 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/agent/test_introduction.py | libs/agno/tests/integration/agent/test_introduction.py | import uuid
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
def test_agent_with_introduction(shared_db):
"""Test that introduction is added to the session as the first assistant message."""
session_id = str(uuid.uuid4())
introduction_... | 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/agent/test_hooks.py | libs/agno/tests/integration/agent/test_hooks.py | """
Tests for Agent hooks functionality.
"""
from typing import Any, AsyncIterator, Iterator, Optional
from unittest.mock import AsyncMock, Mock
import pytest
from agno.agent import Agent
from agno.exceptions import CheckTrigger, InputCheckError, OutputCheckError
from agno.models.base import Model
from agno.models.m... | 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/agent/test_tool_parsing.py | libs/agno/tests/integration/agent/test_tool_parsing.py | from typing import List, Optional
from git import Union
from agno.agent import Agent, RunOutput # noqa
from agno.models.openai import OpenAIChat
def test_tool_call_custom_tool_no_parameters():
def get_the_weather():
return "It is currently 70 degrees and cloudy in Tokyo"
agent = Agent(
mod... | 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/agent/test_chat_history.py | libs/agno/tests/integration/agent/test_chat_history.py | import pytest
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
@pytest.fixture
def chat_agent(shared_db):
"""Create an agent with storage and memory for testing."""
return Agent(
model=OpenAIChat(id="gpt-4o-mini"),
db=share... | 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/agent/test_structured_output_parsing.py | libs/agno/tests/integration/agent/test_structured_output_parsing.py | from typing import List
import pytest
from pydantic import BaseModel, Field
from agno.agent import Agent, RunOutput # noqa
from agno.models.openai.chat import OpenAIChat # noqa
def test_structured_output_parsing_with_quotes():
class MovieScript(BaseModel):
script: str = Field(..., description="The scr... | 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/agent/test_instructions.py | libs/agno/tests/integration/agent/test_instructions.py | import pytest
from agno.agent import Agent
from agno.team import Team
def test_callable_instructions():
def instructions(agent: Agent, team: Team) -> str:
return "You are a helpful assistant."
agent = Agent(instructions=instructions)
team = Team(instructions=instructions, members=[])
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/agent/test_agent_reasoning_new_models.py | libs/agno/tests/integration/agent/test_agent_reasoning_new_models.py | """Integration tests for Agent reasoning with all supported reasoning model providers.
This test verifies that Agent 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... | 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/agent/test_custom_retriever.py | libs/agno/tests/integration/agent/test_custom_retriever.py | from agno.agent import Agent
from agno.models.openai import OpenAIChat
def test_agent_with_custom_knowledge_retriever():
def custom_knowledge_retriever(**kwargs):
return ["Paris is the capital of France"]
agent = Agent(
model=OpenAIChat(id="gpt-4o"),
knowledge_retriever=custom_knowled... | 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/agent/test_disable_storing_tool_and_history_messages.py | libs/agno/tests/integration/agent/test_disable_storing_tool_and_history_messages.py | """
Comprehensive test suite for store_tool_messages and store_history_messages options.
Tests cover:
- Tool result storage (enabled/disabled)
- History message storage (enabled/disabled)
- Combined options
- Edge cases
- Sync and async operations
"""
import pytest
from agno.agent import Agent
from agno.db.sqlite 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/agent/test_retries.py | libs/agno/tests/integration/agent/test_retries.py | """Integration tests for agent 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
def test_agent_retry():
"""Test that agent retries on failure and eventually succeeds."""
model = 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/integration/agent/test_agent_run_cancellation.py | libs/agno/tests/integration/agent/test_agent_run_cancellation.py | """Integration tests for agent cancellation with partial data preservation.
These tests verify that when an agent is cancelled mid-execution:
1. The partial content/data generated before cancellation is preserved
2. The agent run status is set to cancelled
3. All partial data is stored in the database
4. Cancellation ... | 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/agent/test_reasoning_content_default_COT.py | libs/agno/tests/integration/agent/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/agent/test_tool_compression.py | libs/agno/tests/integration/agent/test_tool_compression.py | import pytest
from agno.agent import Agent
from agno.compression.manager import CompressionManager
from agno.models.openai import OpenAIChat
def search_tool(query: str) -> str:
"""Search tool that returns large content to trigger compression."""
return f"Search results for '{query}': " + ("This is detailed 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/tests/integration/agent/test_session_state.py | libs/agno/tests/integration/agent/test_session_state.py | import uuid
import pytest
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
from agno.run import RunContext
def test_session_state_precedence_all_three_layers(shared_db):
"""Test precedence when all three session state layers are present.
... | 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/agent/test_agent_convenience_functions.py | libs/agno/tests/integration/agent/test_agent_convenience_functions.py | import uuid
import pytest
from agno.agent.agent import Agent
from agno.models.openai.chat import OpenAIChat
from agno.run import RunContext
@pytest.fixture
def test_agent(shared_db):
"""Create a test agent with database."""
return Agent(
model=OpenAIChat(id="gpt-4o-mini"),
db=shared_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/agent/test_memory.py | libs/agno/tests/integration/agent/test_memory.py | import pytest
from agno.agent.agent import Agent
from agno.db.base import UserMemory
def test_get_user_memories(shared_db):
shared_db.clear_memories()
shared_db.upsert_user_memory(memory=UserMemory(user_id="test_user", memory="test_memory"))
agent = Agent(db=shared_db)
memories = agent.get_user_mem... | 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/agent/__init__.py | libs/agno/tests/integration/agent/__init__.py | python | Apache-2.0 | 26b9daa0fb760c3ad8384e1ba9218b1bce854535 | 2026-01-04T14:41:49.609528Z | false | |
agno-agi/agno | https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/agent/test_message_ordering.py | libs/agno/tests/integration/agent/test_message_ordering.py | from agno.agent import Agent
from agno.models.openai import OpenAIChat
def test_message_ordering_run():
"""Test that historical messages come before current user message"""
agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
user_id="test_user",
session_id="test_session",
add_hi... | 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/agent/test_event_streaming.py | libs/agno/tests/integration/agent/test_event_streaming.py | from dataclasses import dataclass
from textwrap import dedent
import pytest
from pydantic import BaseModel
from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.models.openai.chat import OpenAIChat
from agno.run.agent import CustomEvent, RunEvent, RunInput, RunOutput
from agno.tools.decora... | 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/agent/test_multimodal.py | libs/agno/tests/integration/agent/test_multimodal.py | from agno.agent.agent import Agent
from agno.db.base import SessionType
from agno.media import Image
from agno.models.openai.chat import OpenAIChat
def test_agent_image_input(shared_db, image_path):
agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
markdown=True,
db=shared_db,
)
... | 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.