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/aws/bedrock/__init__.py
libs/agno/tests/integration/models/aws/bedrock/__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/aws/bedrock/test_multimodal.py
libs/agno/tests/integration/models/aws/bedrock/test_multimodal.py
import tempfile from pathlib import Path import pytest from agno.agent.agent import Agent from agno.media import File, Image from agno.models.aws import AwsBedrock from agno.utils.media import download_file @pytest.mark.asyncio async def test_async_image_input_bytes(): """Test async image input using bytes with...
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/aws/bedrock/test_basic.py
libs/agno/tests/integration/models/aws/bedrock/test_basic.py
import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput from agno.db.sqlite.sqlite import SqliteDb from agno.models.aws import AwsBedrock 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/vercel/test_tool_use.py
libs/agno/tests/integration/models/vercel/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.vercel import V0 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=V0(id="v0-1.0-md"), ...
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/vercel/test_structured_response.py
libs/agno/tests/integration/models/vercel/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.vercel import V0 class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: str = Field( ..., descriptio...
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/vercel/__init__.py
libs/agno/tests/integration/models/vercel/__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/vercel/test_multimodal.py
libs/agno/tests/integration/models/vercel/test_multimodal.py
from agno.agent import Agent from agno.media import Image from agno.models.vercel import V0 from agno.tools.duckduckgo import DuckDuckGoTools def test_image_input(): agent = Agent( model=V0(id="v0-1.0-md"), tools=[DuckDuckGoTools(cache_results=True)], markdown=True, telemetry=False...
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/vercel/test_basic.py
libs/agno/tests/integration/models/vercel/test_basic.py
import pytest from agno.agent import Agent, RunOutput from agno.db.sqlite import SqliteDb from agno.models.vercel import V0 def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = response.metrics.input_tokens output_tokens = response.metrics.output_tokens total_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/nebius/test_tool_use.py
libs/agno/tests/integration/models/nebius/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent # noqa from agno.models.nebius import Nebius from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools NEBIUS_MODEL_ID = "Qwen/Qwen3-30B-A3B" def test_tool_use(): ag...
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/nebius/test_structured_response.py
libs/agno/tests/integration/models/nebius/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.nebius import Nebius NEBIUS_MODEL_ID = "Qwen/Qwen3-4B-fast" class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: ...
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/nebius/__init__.py
libs/agno/tests/integration/models/nebius/__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/nebius/test_basic.py
libs/agno/tests/integration/models/nebius/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.nebius import Nebius NEBIUS_MODEL_ID = "Qwen/Qwen3-4B-fast" def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = 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/integration/models/portkey/test_tool_use.py
libs/agno/tests/integration/models/portkey/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.portkey import Portkey from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools PORTKEY_MODEL_ID = "gpt-4o-mini" def test_tool_use(): 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/models/portkey/test_structured_response.py
libs/agno/tests/integration/models/portkey/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.portkey import Portkey PORTKEY_MODEL_ID = "gpt-4o-mini" class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: 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/models/portkey/__init__.py
libs/agno/tests/integration/models/portkey/__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/portkey/test_basic.py
libs/agno/tests/integration/models/portkey/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.portkey import Portkey PORTKEY_MODEL_ID = "gpt-4o-mini" def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = respon...
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/azure/__init__.py
libs/agno/tests/integration/models/azure/__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/azure/openai/test_tool_use.py
libs/agno/tests/integration/models/azure/openai/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent # noqa from agno.models.azure import AzureOpenAI 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=AzureOpen...
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/azure/openai/test_structured_response.py
libs/agno/tests/integration/models/azure/openai/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.azure import AzureOpenAI 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/azure/openai/__init__.py
libs/agno/tests/integration/models/azure/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/azure/openai/test_reasoning_streaming.py
libs/agno/tests/integration/models/azure/openai/test_reasoning_streaming.py
"""Integration tests for Azure OpenAI reasoning streaming functionality. This test verifies that reasoning content streams correctly (not all at once) for Azure OpenAI o-series models when used as a reasoning_model. Note: Azure OpenAI o-series models (o1, o3, o4) perform internal reasoning but do not expose the reaso...
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/azure/openai/test_multimodal.py
libs/agno/tests/integration/models/azure/openai/test_multimodal.py
from agno.agent.agent import Agent from agno.media import Image from agno.models.azure import AzureOpenAI def test_image_input(): agent = Agent(model=AzureOpenAI(id="gpt-4o-mini"), markdown=True, telemetry=False) response = agent.run( "Tell me about this image.", images=[Image(url="https://up...
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/azure/openai/test_basic.py
libs/agno/tests/integration/models/azure/openai/test_basic.py
import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput # noqa from agno.db.sqlite.sqlite import SqliteDb from agno.models.azure import AzureOpenAI @pytest.fixture(scope="module") def azure_openai_model(): """Fixture that provides an Azure OpenAI model and reuses it across al...
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/azure/ai_foundry/test_tool_use.py
libs/agno/tests/integration/models/azure/ai_foundry/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.azure import AzureAIFoundry 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=AzureAIFoundry...
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/azure/ai_foundry/test_structured_response.py
libs/agno/tests/integration/models/azure/ai_foundry/test_structured_response.py
import enum from typing import Dict, List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.azure import AzureAIFoundry 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/azure/ai_foundry/__init__.py
libs/agno/tests/integration/models/azure/ai_foundry/__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/azure/ai_foundry/test_reasoning_streaming.py
libs/agno/tests/integration/models/azure/ai_foundry/test_reasoning_streaming.py
"""Integration tests for Azure AI Foundry reasoning streaming functionality. This test verifies that reasoning content streams correctly (not all at once) for Azure AI Foundry models (like DeepSeek-R1) when used as a reasoning_model. These tests verify the streaming reasoning feature where reasoning content is delive...
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/azure/ai_foundry/test_multimodal.py
libs/agno/tests/integration/models/azure/ai_foundry/test_multimodal.py
from agno.agent.agent import Agent from agno.media import Image from agno.models.azure import AzureAIFoundry def test_image_input(): agent = Agent(model=AzureAIFoundry(id="Phi-4"), markdown=True, telemetry=False) response = agent.run( "Tell me about this image.", images=[Image(url="https://up...
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/azure/ai_foundry/test_basic.py
libs/agno/tests/integration/models/azure/ai_foundry/test_basic.py
import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput from agno.db.sqlite.sqlite import SqliteDb from agno.models.azure import AzureAIFoundry @pytest.fixture async def azure_model(): """Fixture that provides an Azure AI Foundry model and cleans it up after the test.""" m...
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/sambanova/test_structured_response.py
libs/agno/tests/integration/models/sambanova/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.sambanova import Sambanova 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/sambanova/__init__.py
libs/agno/tests/integration/models/sambanova/__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/sambanova/test_basic.py
libs/agno/tests/integration/models/sambanova/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.sambanova import Sambanova 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/xai/test_tool_use.py
libs/agno/tests/integration/models/xai/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.xai import xAI 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=xAI(id="grok-3-mini-fast"),...
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/xai/test_structured_response.py
libs/agno/tests/integration/models/xai/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.xai import xAI class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: str = Field( ..., description=...
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/xai/__init__.py
libs/agno/tests/integration/models/xai/__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/xai/test_multimodal.py
libs/agno/tests/integration/models/xai/test_multimodal.py
from agno.agent import Agent from agno.media import Image from agno.models.xai import xAI from agno.tools.duckduckgo import DuckDuckGoTools def test_image_input(): agent = Agent( model=xAI(id="grok-2-vision-1212"), tools=[DuckDuckGoTools(cache_results=True)], markdown=True, telemet...
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/xai/test_basic.py
libs/agno/tests/integration/models/xai/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.xai import xAI def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = response.metrics.input_tokens output_tokens = respon...
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/cometapi/test_structured_response.py
libs/agno/tests/integration/models/cometapi/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.cometapi import CometAPI 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/cometapi/__init__.py
libs/agno/tests/integration/models/cometapi/__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/cometapi/test_basic.py
libs/agno/tests/integration/models/cometapi/test_basic.py
"""Integration tests for CometAPI model provider.""" import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput from agno.db.sqlite import SqliteDb from agno.models.cometapi import CometAPI def _assert_metrics(response: RunOutput): """Helper function to assert response metrics 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/models/ibm/__init__.py
libs/agno/tests/integration/models/ibm/__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/ibm/watsonx/test_tool_use.py
libs/agno/tests/integration/models/ibm/watsonx/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent, RunOutput # noqa from agno.models.ibm import WatsonX 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=Wats...
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/ibm/watsonx/__init__.py
libs/agno/tests/integration/models/ibm/watsonx/__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/ibm/watsonx/test_multimodal.py
libs/agno/tests/integration/models/ibm/watsonx/test_multimodal.py
from pathlib import Path from agno.agent.agent import Agent from agno.media import Image from agno.models.ibm import WatsonX def test_image_input(): agent = Agent(model=WatsonX(id="meta-llama/llama-3-2-11b-vision-instruct"), telemetry=False) response = agent.run( "Tell me about this image.", ...
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/ibm/watsonx/test_basic.py
libs/agno/tests/integration/models/ibm/watsonx/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.ibm import WatsonX 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/together/test_tool_use.py
libs/agno/tests/integration/models/together/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.together import Together 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=Together(id="meta...
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/together/test_structured_response.py
libs/agno/tests/integration/models/together/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.together import Together 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/together/__init__.py
libs/agno/tests/integration/models/together/__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/together/test_multimodal.py
libs/agno/tests/integration/models/together/test_multimodal.py
from agno.agent import Agent from agno.media import Image from agno.models.together import Together def test_image_input(): agent = Agent(model=Together(id="meta-llama/Llama-Vision-Free"), markdown=True, telemetry=False) response = agent.run( "Tell me about this image and give me the latest news abou...
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/together/test_basic.py
libs/agno/tests/integration/models/together/test_basic.py
import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput from agno.db.sqlite.sqlite import SqliteDb from agno.models.together import Together def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = response.metrics.input_tokens outpu...
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/groq/test_tool_use.py
libs/agno/tests/integration/models/groq/test_tool_use.py
from typing import Optional import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput # noqa from agno.models.groq import Groq from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools @pytest.mark.skip(reason="This test fails often on CI for Groq") def 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/groq/__init__.py
libs/agno/tests/integration/models/groq/__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/groq/test_reasoning_streaming.py
libs/agno/tests/integration/models/groq/test_reasoning_streaming.py
"""Integration tests for Groq reasoning streaming functionality. This test verifies that reasoning content streams correctly (not all at once) for Groq models (like DeepSeek-R1 distill) when used as a reasoning_model. These tests verify the streaming reasoning feature where reasoning content is delivered incrementall...
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/groq/test_multimodal.py
libs/agno/tests/integration/models/groq/test_multimodal.py
import pytest from agno.agent.agent import Agent from agno.media import Image from agno.models.groq import Groq @pytest.mark.skip(reason="Error on Groq API") def test_image_input(): agent = Agent(model=Groq(id="meta-llama/llama-4-scout-17b-16e-instruct"), telemetry=False) response = agent.run( "Tell...
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/groq/test_basic.py
libs/agno/tests/integration/models/groq/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.groq import Groq @pytest.fixture(scope="module") def groq_model(): """Fixture that provides a Groq model and reuses it across all tests in the module.""" 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/integration/models/ollama/test_thinking.py
libs/agno/tests/integration/models/ollama/test_thinking.py
import json import os import tempfile import pytest from agno.agent import Agent from agno.db.json import JsonDb from agno.models.message import Message from agno.models.ollama import Ollama from agno.run.agent import RunOutput api_key = os.getenv("OLLAMA_API_KEY") def _get_thinking_agent(**kwargs): """Create ...
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/ollama/test_tool_use.py
libs/agno/tests/integration/models/ollama/test_tool_use.py
import os from typing import Optional import pytest from agno.agent import Agent from agno.models.ollama import Ollama 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=Ollama(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/models/ollama/__init__.py
libs/agno/tests/integration/models/ollama/__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/ollama/test_basic.py
libs/agno/tests/integration/models/ollama/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.ollama import Ollama def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = response.metrics.input_tokens output_tokens = ...
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_openai/test_tool_use.py
libs/agno/tests/integration/models/litellm_openai/test_tool_use.py
import pytest from agno.agent import Agent, RunOutput from agno.models.litellm import LiteLLMOpenAI 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 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/litellm_openai/__init__.py
libs/agno/tests/integration/models/litellm_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/litellm_openai/test_multimodal.py
libs/agno/tests/integration/models/litellm_openai/test_multimodal.py
from typing import Any, Union import requests from agno.agent.agent import Agent from agno.media import Audio, Image from agno.models.litellm import LiteLLMOpenAI from agno.tools.duckduckgo import DuckDuckGoTools def _get_audio_input() -> Union[bytes, Any]: """Fetch an example audio file and return it as base64...
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_openai/test_basic.py
libs/agno/tests/integration/models/litellm_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.litellm import LiteLLMOpenAI def _assert_metrics(response: RunOutput): """Helper function to assert metrics are present and valid""" # Check that metrics dictionary...
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/vllm/test_tool_use.py
libs/agno/tests/integration/models/vllm/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.vllm import VLLM from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools VLLM_MODEL_ID = "Qwen/Qwen2.5-7B-Instruct" def test_tool_use(): agent = Ag...
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/vllm/test_structured_response.py
libs/agno/tests/integration/models/vllm/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.vllm import VLLM VLLM_MODEL_ID = "Qwen/Qwen2.5-7B-Instruct" class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: ...
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/vllm/__init__.py
libs/agno/tests/integration/models/vllm/__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/vllm/test_basic.py
libs/agno/tests/integration/models/vllm/test_basic.py
import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput from agno.db.sqlite.sqlite import SqliteDb from agno.exceptions import ModelProviderError from agno.models.vllm import VLLM # Use default model id or override via env var VLLM_MODEL_ID = "Qwen/Qwen2.5-7B-Instruct" def _asser...
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/mistral/test_tool_use.py
libs/agno/tests/integration/models/mistral/test_tool_use.py
from typing import Optional import pytest from pydantic import BaseModel, Field from agno.agent import Agent # noqa from agno.models.mistral import MistralChat from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools def test_tool_use(): ...
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/mistral/__init__.py
libs/agno/tests/integration/models/mistral/__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/mistral/test_multimodal.py
libs/agno/tests/integration/models/mistral/test_multimodal.py
from agno.agent.agent import Agent from agno.media import Image from agno.models.mistral import MistralChat def test_image_input(): agent = Agent(model=MistralChat(id="pixtral-12b-2409"), markdown=True, telemetry=False) response = agent.run( "Tell me about this image.", images=[Image(url="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/models/mistral/test_basic.py
libs/agno/tests/integration/models/mistral/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.groq.groq import Groq from agno.models.mistral import MistralChat def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens...
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/anthropic/test_thinking.py
libs/agno/tests/integration/models/anthropic/test_thinking.py
import json import os import tempfile import pytest from agno.agent import Agent from agno.db.json import JsonDb from agno.models.anthropic import Claude from agno.models.message import Message from agno.run.agent import RunOutput from agno.tools.yfinance import YFinanceTools def _get_thinking_agent(**kwargs): ...
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/anthropic/test_tool_use.py
libs/agno/tests/integration/models/anthropic/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent # noqa from agno.models.anthropic 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=Claude(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/models/anthropic/test_betas.py
libs/agno/tests/integration/models/anthropic/test_betas.py
"""Tests for Anthropic beta features support.""" from unittest.mock import AsyncMock, MagicMock, patch import pytest from agno.agent import Agent from agno.models.anthropic import Claude def _create_mock_response(): """Create a properly structured mock response.""" mock_content_block = MagicMock() mock...
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/anthropic/test_prompt_caching.py
libs/agno/tests/integration/models/anthropic/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/anthropic/__init__.py
libs/agno/tests/integration/models/anthropic/__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/anthropic/test_multimodal.py
libs/agno/tests/integration/models/anthropic/test_multimodal.py
from agno.agent.agent import Agent from agno.media import File, Image from agno.models.anthropic import Claude def test_image_input(image_path): agent = Agent(model=Claude(id="claude-sonnet-4-20250514"), markdown=True, telemetry=False) response = agent.run( "Tell me about this image.", images...
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/anthropic/test_format_tools.py
libs/agno/tests/integration/models/anthropic/test_format_tools.py
from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field from agno.tools.function import Function from agno.utils.models.claude import format_tools_for_model def test_none_input(): """Test that None input returns None.""" result = format_tools_for_model(None) assert resu...
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/anthropic/test_basic.py
libs/agno/tests/integration/models/anthropic/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.anthropic import Claude @pytest.fixture(scope="module") def claude_model(): """Fixture that provides a Claude model and reuses it across all tests in the module.""" ...
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/aimlapi/test_tool_use.py
libs/agno/tests/integration/models/aimlapi/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.aimlapi import AIMLAPI 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=AIMLAPI(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/models/aimlapi/test_structured_response.py
libs/agno/tests/integration/models/aimlapi/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.aimlapi import AIMLAPI class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: str = Field( ..., desc...
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/aimlapi/__init__.py
libs/agno/tests/integration/models/aimlapi/__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/aimlapi/test_basic.py
libs/agno/tests/integration/models/aimlapi/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.aimlapi import AIMLAPI def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = response.metrics.input_tokens output_tokens ...
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/cerebras/test_tool_use.py
libs/agno/tests/integration/models/cerebras/test_tool_use.py
import pytest from agno.agent import Agent, RunOutput # noqa from agno.models.cerebras import Cerebras from agno.tools.duckduckgo import DuckDuckGoTools def test_tool_use(): agent = Agent( model=Cerebras(id="gpt-oss-120b"), tools=[DuckDuckGoTools(cache_results=True)], telemetry=False, ...
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/cerebras/test_structured_response.py
libs/agno/tests/integration/models/cerebras/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.cerebras import Cerebras 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/cerebras/__init__.py
libs/agno/tests/integration/models/cerebras/__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/cerebras/test_basic.py
libs/agno/tests/integration/models/cerebras/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.cerebras import Cerebras @pytest.fixture(scope="module") def cerebras_model(): """Fixture that provides a Cerebras model and reuses it across all tests in the module.""...
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/cerebras/cerebras_openai/test_tool_use.py
libs/agno/tests/integration/models/cerebras/cerebras_openai/test_tool_use.py
import pytest from agno.agent import Agent from agno.models.cerebras import CerebrasOpenAI from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.yfinance import YFinanceTools def test_tool_use(): agent = Agent( model=CerebrasOpenAI(id="gpt-oss-120b"), tools=[YFinanceTools(cache_result...
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/cerebras/cerebras_openai/test_structured_response.py
libs/agno/tests/integration/models/cerebras/cerebras_openai/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.cerebras import CerebrasOpenAI 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/cerebras/cerebras_openai/__init__.py
libs/agno/tests/integration/models/cerebras/cerebras_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/cerebras/cerebras_openai/test_basic.py
libs/agno/tests/integration/models/cerebras/cerebras_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.cerebras import CerebrasOpenAI def _assert_metrics(response: RunOutput): assert response.metrics is not None input_tokens = response.metrics.input_tokens output...
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/google/test_tool_use.py
libs/agno/tests/integration/models/google/test_tool_use.py
from enum import Enum import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput # noqa from agno.models.google import Gemini from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.yfinance import YFinanceTools def test_tool_use(): def get_weather(city: 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/models/google/test_tool_parsing.py
libs/agno/tests/integration/models/google/test_tool_parsing.py
from typing import Any, Dict, List, Optional, Sequence, Tuple, Union from pydantic import BaseModel from agno.models.google.gemini import Gemini from agno.models.message import Message from agno.tools.function import Function def test_no_parameters_tool_parsing(): def get_the_weather_in_tokyo() -> 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/models/google/test_structured_response.py
libs/agno/tests/integration/models/google/test_structured_response.py
import enum from typing import Dict, List, Union from pydantic import BaseModel, Field from rich.pretty import pprint # noqa from agno.agent import Agent, RunOutput # noqa from agno.models.google import Gemini class SimpleMovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting fo...
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/google/__init__.py
libs/agno/tests/integration/models/google/__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/google/test_reasoning_streaming.py
libs/agno/tests/integration/models/google/test_reasoning_streaming.py
"""Integration tests for Gemini reasoning streaming functionality. This test verifies that reasoning content streams correctly (not all at once) for Gemini models with thinking_budget enabled when used as a reasoning_model. These tests verify the streaming reasoning feature where reasoning content is delivered increm...
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/google/test_multimodal.py
libs/agno/tests/integration/models/google/test_multimodal.py
from io import BytesIO import pytest import requests from PIL import Image as PILImage from agno.agent.agent import Agent from agno.db.in_memory import InMemoryDb from agno.media import Audio, Image, Video from agno.models.google import Gemini def test_image_input(image_path): agent = Agent( model=Gemin...
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/google/test_basic.py
libs/agno/tests/integration/models/google/test_basic.py
import pytest from google.genai import types from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput # noqa from agno.db.sqlite import SqliteDb from agno.exceptions import ModelProviderError from agno.models.google import Gemini def _assert_metrics(response: RunOutput): assert response.met...
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/google/test_retryable_exceptions.py
libs/agno/tests/integration/models/google/test_retryable_exceptions.py
"""Test the regeneration mechanism for known Gemini errors.""" from unittest.mock import Mock, patch import pytest from agno.agent import Agent from agno.exceptions import ModelProviderError from agno.models.google import Gemini from agno.models.google.gemini import RetryableModelProviderError from agno.models.googl...
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_thinking.py
libs/agno/tests/integration/models/vertexai/claude/test_thinking.py
import json import os import tempfile import pytest from agno.agent import Agent from agno.db.json import JsonDb from agno.models.message import Message from agno.models.vertexai.claude import Claude from agno.run.agent import RunOutput from agno.tools.yfinance import YFinanceTools def _get_thinking_agent(**kwargs)...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false