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/teams/test_history.py
libs/agno/tests/integration/teams/test_history.py
from uuid import uuid4 import pytest from agno.agent import Agent from agno.models.openai import OpenAIChat from agno.team import Team @pytest.fixture def team(shared_db): """Create a route team with db and memory for testing.""" def get_weather(city: str) -> str: return f"The weather in {city} 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/teams/test_storage_and_memory.py
libs/agno/tests/integration/teams/test_storage_and_memory.py
import pytest from agno.agent.agent import Agent from agno.db.base import SessionType from agno.models.openai.chat import OpenAIChat from agno.run.base import RunStatus from agno.team.team import Team @pytest.fixture def team(shared_db): """Create a route team with db and memory for testing.""" return Team( ...
python
Apache-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/res/__init__.py
libs/agno/tests/integration/res/__init__.py
"""Media resources for integration tests. Use these to avoid depending on external resources."""
python
Apache-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/db/__init__.py
libs/agno/tests/integration/db/__init__.py
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/db/postgres/test_session.py
libs/agno/tests/integration/db/postgres/test_session.py
"""Integration tests for the Session related methods of the PostgresDb class""" import time from datetime import datetime import pytest from sqlalchemy import text from agno.db.base import SessionType from agno.db.postgres.postgres import PostgresDb from agno.run.agent import RunOutput from agno.run.base import RunS...
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/db/postgres/test_evals.py
libs/agno/tests/integration/db/postgres/test_evals.py
"""Integration tests for the Eval related methods of the PostgresDb class""" import time import pytest from agno.db.postgres.postgres import PostgresDb from agno.db.schemas.evals import EvalFilterType, EvalRunRecord, EvalType @pytest.fixture(autouse=True) def cleanup_evals(postgres_db_real: PostgresDb): """Fix...
python
Apache-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/db/postgres/test_knowledge.py
libs/agno/tests/integration/db/postgres/test_knowledge.py
"""Integration tests for the Knowledge related methods of the PostgresDb class""" import time import pytest from agno.db.postgres.postgres import PostgresDb from agno.db.schemas.knowledge import KnowledgeRow @pytest.fixture(autouse=True) def cleanup_knowledge(postgres_db_real: PostgresDb): """Fixture to clean-...
python
Apache-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/db/postgres/test_metrics.py
libs/agno/tests/integration/db/postgres/test_metrics.py
"""Integration tests for the Metrics related methods of the PostgresDb class""" import time from datetime import date, datetime, timedelta, timezone from typing import List import pytest from agno.db.base import SessionType from agno.db.postgres.postgres import PostgresDb from agno.run.agent import RunOutput from ag...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/db/postgres/test_db.py
libs/agno/tests/integration/db/postgres/test_db.py
"""Integration tests for the setup and main methods of the PostgresDb class""" from datetime import datetime, timezone from unittest.mock import patch from sqlalchemy import text from agno.db.postgres.postgres import PostgresDb def test_init_with_db_url(): """Test initialization with actual database URL format...
python
Apache-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/db/postgres/test_trace_upsert.py
libs/agno/tests/integration/db/postgres/test_trace_upsert.py
""" Test script to reproduce the UniqueViolation race condition in upsert_trace (SYNC version). This script demonstrates the race condition that occurs when multiple concurrent calls to upsert_trace() attempt to insert the same trace_id using the synchronous PostgresDb class. The race condition window: 1. Thread A: S...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/db/postgres/test_memory.py
libs/agno/tests/integration/db/postgres/test_memory.py
"""Integration tests for the Memory related methods of the PostgresDb class""" from datetime import datetime import pytest from agno.db.postgres.postgres import PostgresDb from agno.db.schemas.memory import UserMemory @pytest.fixture(autouse=True) def cleanup_memories(postgres_db_real: PostgresDb): """Fixture ...
python
Apache-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/db/postgres/__init__.py
libs/agno/tests/integration/db/postgres/__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/db/sqlite/test_session.py
libs/agno/tests/integration/db/sqlite/test_session.py
"""Integration tests for the Session related methods of the SqliteDb class""" import time from datetime import datetime import pytest from agno.db.base import SessionType from agno.db.sqlite.sqlite import SqliteDb from agno.run.agent import RunOutput from agno.run.base import RunStatus from agno.run.team import Team...
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/db/sqlite/test_upsert_trace.py
libs/agno/tests/integration/db/sqlite/test_upsert_trace.py
""" Test script to reproduce the UniqueViolation race condition in upsert_trace (SYNC version). This script demonstrates the race condition that occurs when multiple concurrent calls to upsert_trace() attempt to insert the same trace_id using the synchronous SqliteDb class. The race condition window: 1. Thread A: SEL...
python
Apache-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/db/sqlite/test_db.py
libs/agno/tests/integration/db/sqlite/test_db.py
"""Integration tests for the setup and main methods of the SqliteDb class""" from datetime import datetime, timezone from unittest.mock import patch from sqlalchemy import text from agno.db.sqlite.sqlite import SqliteDb def test_init_with_db_url(): """Test initialization with actual database URL format""" ...
python
Apache-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/db/sqlite/test_memory.py
libs/agno/tests/integration/db/sqlite/test_memory.py
"""Integration tests for the Memory related methods of the SqliteDb class""" from typing import cast import pytest from agno.db.schemas.memory import UserMemory from agno.db.sqlite.sqlite import SqliteDb @pytest.fixture(autouse=True) def cleanup_memories(sqlite_db_real: SqliteDb): """Fixture to clean-up sessio...
python
Apache-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/db/sqlite/__init__.py
libs/agno/tests/integration/db/sqlite/__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/db/surrealdb/test_surrealdb_memory.py
libs/agno/tests/integration/db/surrealdb/test_surrealdb_memory.py
# Run SurrealDB in a container before running this script # # ``` # docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start --user root --pass root # ``` # # or with # # ``` # surreal start -u root -p root # ``` # # Then, run this test like this: # # ``` # pytest libs/agno/tests/integration/db/surre...
python
Apache-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/db/surrealdb/test_surrealdb_session.py
libs/agno/tests/integration/db/surrealdb/test_surrealdb_session.py
# Run SurrealDB in a container before running this script # # ``` # docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start --user root --pass root # ``` # # or with # # ``` # surreal start -u root -p root # ``` # # Then, run this test like this: # # ``` # pytest libs/agno/tests/integration/db/surre...
python
Apache-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/db/surrealdb/test_surrealdb_evals.py
libs/agno/tests/integration/db/surrealdb/test_surrealdb_evals.py
# Run SurrealDB in a container before running this script # # ``` # docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start --user root --pass root # ``` # # or with # # ``` # surreal start -u root -p root # ``` # # Then, run this test like this: # # ``` # pytest libs/agno/tests/integration/db/surre...
python
Apache-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/db/surrealdb/test_surrealdb_knowledge.py
libs/agno/tests/integration/db/surrealdb/test_surrealdb_knowledge.py
# Run SurrealDB in a container before running this script # # ``` # docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start --user root --pass root # ``` # # or with # # ``` # surreal start -u root -p root # ``` # # Then, run this test like this: # # ``` # pytest libs/agno/tests/integration/db/surre...
python
Apache-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/db/surrealdb/test_surrealdb_metrics.py
libs/agno/tests/integration/db/surrealdb/test_surrealdb_metrics.py
# Run SurrealDB in a container before running this script # # ``` # docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start --user root --pass root # ``` # # or with # # ``` # surreal start -u root -p root # ``` # # Then, run this test like this: # # ``` # pytest libs/agno/tests/integration/db/surre...
python
Apache-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/db/async_mysql/test_session.py
libs/agno/tests/integration/db/async_mysql/test_session.py
"""Integration tests for AsyncMySQLDb session methods""" import pytest from agno.db.base import SessionType from agno.session import AgentSession, TeamSession, WorkflowSession @pytest.mark.asyncio async def test_upsert_and_get_agent_session(async_mysql_db_real): """Test upserting and retrieving an agent session...
python
Apache-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/db/async_mysql/test_evals.py
libs/agno/tests/integration/db/async_mysql/test_evals.py
"""Integration tests for AsyncMySQLDb eval methods""" import time import pytest from agno.db.schemas.evals import EvalRunRecord, EvalType @pytest.mark.asyncio async def test_create_and_get_eval_run(async_mysql_db_real): """Test creating and retrieving an eval run""" eval_run = EvalRunRecord( run_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/db/async_mysql/test_knowledge.py
libs/agno/tests/integration/db/async_mysql/test_knowledge.py
"""Integration tests for AsyncMySQLDb knowledge methods""" import time import pytest from agno.db.schemas.knowledge import KnowledgeRow @pytest.mark.asyncio async def test_upsert_and_get_knowledge_content(async_mysql_db_real): """Test upserting and retrieving knowledge content""" knowledge = KnowledgeRow( ...
python
Apache-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/db/async_mysql/test_metrics.py
libs/agno/tests/integration/db/async_mysql/test_metrics.py
"""Integration tests for AsyncMySQLDb metrics methods""" from datetime import date import pytest @pytest.mark.asyncio async def test_calculate_and_get_metrics(async_mysql_db_real): """Test calculating and retrieving metrics""" # This test requires sessions to exist first # For now, just test that the 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/db/async_mysql/test_db.py
libs/agno/tests/integration/db/async_mysql/test_db.py
"""Integration tests for the setup and main methods of the AsyncMySQLDb class""" from datetime import datetime, timezone from unittest.mock import AsyncMock, patch import pytest from sqlalchemy import text from agno.db.mysql import AsyncMySQLDb @pytest.mark.asyncio async def test_init_with_db_url(): """Test in...
python
Apache-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/db/async_mysql/test_trace_upsert.py
libs/agno/tests/integration/db/async_mysql/test_trace_upsert.py
""" Test script to reproduce the UniqueViolation race condition in upsert_trace. This script demonstrates the race condition that occurs when multiple concurrent calls to upsert_trace() attempt to insert the same trace_id. The race condition window: 1. Task A: SELECT - finds no existing trace 2. Task B: SELECT - find...
python
Apache-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/db/async_mysql/conftest.py
libs/agno/tests/integration/db/async_mysql/conftest.py
from unittest.mock import Mock import pytest import pytest_asyncio from sqlalchemy import text from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine from agno.db.mysql import AsyncMySQLDb @pytest.fixture def mock_async_engine(): """Create a mock async SQLAlchemy engine""" engine = Mock(spec=As...
python
Apache-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/db/async_mysql/test_memory.py
libs/agno/tests/integration/db/async_mysql/test_memory.py
"""Integration tests for AsyncMySQLDb memory methods""" import pytest from agno.db.schemas.memory import UserMemory @pytest.mark.asyncio async def test_upsert_and_get_user_memory(async_mysql_db_real): """Test upserting and retrieving a user memory""" memory = UserMemory( memory_id="test-memory-1", ...
python
Apache-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/db/async_mysql/__init__.py
libs/agno/tests/integration/db/async_mysql/__init__.py
# Integration tests for AsyncMySQLDb
python
Apache-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/db/async_postgres/test_session.py
libs/agno/tests/integration/db/async_postgres/test_session.py
"""Integration tests for the Session related methods of the AsyncPostgresDb class""" import time import pytest import pytest_asyncio from agno.db.base import SessionType from agno.db.postgres import AsyncPostgresDb from agno.run.agent import RunOutput from agno.run.base import RunStatus from agno.run.team import Tea...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/db/async_postgres/test_evals.py
libs/agno/tests/integration/db/async_postgres/test_evals.py
"""Integration tests for the Eval related methods of the AsyncPostgresDb class""" import time from typing import List import pytest import pytest_asyncio from agno.db.postgres import AsyncPostgresDb from agno.db.schemas.evals import EvalFilterType, EvalRunRecord, EvalType @pytest_asyncio.fixture(autouse=True) asyn...
python
Apache-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/db/async_postgres/test_knowledge.py
libs/agno/tests/integration/db/async_postgres/test_knowledge.py
"""Integration tests for the Knowledge related methods of the AsyncPostgresDb class""" import time from typing import List import pytest import pytest_asyncio from agno.db.postgres import AsyncPostgresDb from agno.db.schemas.knowledge import KnowledgeRow @pytest_asyncio.fixture(autouse=True) async def cleanup_know...
python
Apache-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/db/async_postgres/test_metrics.py
libs/agno/tests/integration/db/async_postgres/test_metrics.py
"""Integration tests for the Metrics related methods of the AsyncPostgresDb class""" import time from datetime import date import pytest_asyncio from agno.db.postgres import AsyncPostgresDb from agno.run.agent import RunOutput from agno.run.base import RunStatus from agno.session.agent import AgentSession @pytest_...
python
Apache-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/db/async_postgres/test_db.py
libs/agno/tests/integration/db/async_postgres/test_db.py
"""Integration tests for the setup and main methods of the AsyncPostgresDb class""" from datetime import datetime, timezone from unittest.mock import AsyncMock, patch import pytest from sqlalchemy import text from agno.db.postgres import AsyncPostgresDb @pytest.mark.asyncio async def test_init_with_db_url(): "...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/db/async_postgres/test_trace_upsert.py
libs/agno/tests/integration/db/async_postgres/test_trace_upsert.py
""" Test script to reproduce the UniqueViolation race condition in upsert_trace. This script demonstrates the race condition that occurs when multiple concurrent calls to upsert_trace() attempt to insert the same trace_id. The race condition window: 1. Task A: SELECT - finds no existing trace 2. Task B: SELECT - find...
python
Apache-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/db/async_postgres/conftest.py
libs/agno/tests/integration/db/async_postgres/conftest.py
from unittest.mock import Mock import pytest import pytest_asyncio from sqlalchemy import text from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine from agno.db.postgres import AsyncPostgresDb @pytest.fixture def mock_async_engine(): """Create a mock async SQLAlchemy engine""" engine = Mock(s...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/db/async_postgres/test_memory.py
libs/agno/tests/integration/db/async_postgres/test_memory.py
"""Integration tests for the Memory related methods of the AsyncPostgresDb class""" import time from typing import List import pytest import pytest_asyncio from agno.db.postgres import AsyncPostgresDb from agno.db.schemas.memory import UserMemory @pytest_asyncio.fixture(autouse=True) async def cleanup_memories(asy...
python
Apache-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/db/async_postgres/__init__.py
libs/agno/tests/integration/db/async_postgres/__init__.py
# Integration tests for AsyncPostgresDb
python
Apache-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/db/async_mongo/test_db.py
libs/agno/tests/integration/db/async_mongo/test_db.py
"""Integration tests for the setup and main methods of the AsyncMongoDb class Required to have a running MongoDB instance to run these tests. These tests assume: - Username=mongoadmin - Password=secret """ from datetime import datetime, timezone import pytest try: from agno.db.mongo import AsyncMongoDb except ...
python
Apache-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/db/async_mongo/conftest.py
libs/agno/tests/integration/db/async_mongo/conftest.py
"""Fixtures for AsyncMongoDb integration tests""" from unittest.mock import Mock import pytest import pytest_asyncio from agno.db.mongo import AsyncMongoDb # Try to import Motor try: from motor.motor_asyncio import AsyncIOMotorClient MOTOR_AVAILABLE = True except ImportError: MOTOR_AVAILABLE = 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/db/async_mongo/__init__.py
libs/agno/tests/integration/db/async_mongo/__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/knowledge/test_pptx_knowledge.py
libs/agno/tests/integration/knowledge/test_pptx_knowledge.py
from pathlib import Path import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.vectordb.chroma import ChromaDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" vector_db = ChromaDb(collection="vectors", path="tmp/chromadb", 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/knowledge/test_text_knowledge.py
libs/agno/tests/integration/knowledge/test_text_knowledge.py
import os from pathlib import Path import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.vectordb.lancedb import LanceDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" table_name = f"text_test_{os.urandom(4).hex()}" vec...
python
Apache-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/knowledge/test_firecrawl_knowledge.py
libs/agno/tests/integration/knowledge/test_firecrawl_knowledge.py
import os import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.knowledge.reader.firecrawl_reader import FirecrawlReader from agno.vectordb.lancedb import LanceDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" table_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/knowledge/test_arxiv_knowledge.py
libs/agno/tests/integration/knowledge/test_arxiv_knowledge.py
import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.knowledge.reader.arxiv_reader import ArxivReader from agno.vectordb.chroma import ChromaDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" vector_db = ChromaDb(collection=...
python
Apache-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/knowledge/test_website_knowledge.py
libs/agno/tests/integration/knowledge/test_website_knowledge.py
import os import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.knowledge.reader.website_reader import WebsiteReader from agno.vectordb.lancedb import LanceDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" table_name = f"we...
python
Apache-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/knowledge/test_youtube_knowledge.py
libs/agno/tests/integration/knowledge/test_youtube_knowledge.py
import os import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.vectordb.lancedb import LanceDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" table_name = f"youtube_test_{os.urandom(4).hex()}" vector_db = LanceDb(table...
python
Apache-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/knowledge/test_csv_knowledge.py
libs/agno/tests/integration/knowledge/test_csv_knowledge.py
import asyncio import io import tempfile import uuid from pathlib import Path import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.knowledge.reader.csv_reader import CSVReader from agno.vectordb.chroma import ChromaDb from agno.vectordb.lancedb import LanceDb # Sample C...
python
Apache-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/knowledge/test_pdf_knowledge.py
libs/agno/tests/integration/knowledge/test_pdf_knowledge.py
import os from pathlib import Path import pytest from agno.agent import Agent from agno.db.sqlite.sqlite import SqliteDb from agno.knowledge.knowledge import Knowledge from agno.vectordb.chroma import ChromaDb from agno.vectordb.lancedb.lance_db import LanceDb @pytest.fixture def setup_vector_db(): """Setup a 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/knowledge/test_async_knowledge_retriever.py
libs/agno/tests/integration/knowledge/test_async_knowledge_retriever.py
""" Test for issue #5490: Async knowledge_retriever not properly awaited when add_knowledge_to_context is enabled. This test verifies that async knowledge retrievers are properly awaited when using add_knowledge_to_context=True with async execution paths. """ import asyncio from typing import Optional import pytest ...
python
Apache-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/knowledge/test_docx_knowledge.py
libs/agno/tests/integration/knowledge/test_docx_knowledge.py
from pathlib import Path import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.vectordb.chroma import ChromaDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" vector_db = ChromaDb(collection="vectors", path="tmp/chromadb", 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/knowledge/test_md_knowledge.py
libs/agno/tests/integration/knowledge/test_md_knowledge.py
import os from pathlib import Path import pytest from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.knowledge.reader.markdown_reader import MarkdownReader from agno.vectordb.lancedb import LanceDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testin...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/knowledge/__init__.py
libs/agno/tests/integration/knowledge/__init__.py
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false
agno-agi/agno
https://github.com/agno-agi/agno/blob/26b9daa0fb760c3ad8384e1ba9218b1bce854535/libs/agno/tests/integration/knowledge/test_json_knowledge.py
libs/agno/tests/integration/knowledge/test_json_knowledge.py
from pathlib import Path import pytest from agno.agent import Agent from agno.db.json.json_db import JsonDb from agno.knowledge.knowledge import Knowledge from agno.vectordb.chroma import ChromaDb @pytest.fixture def setup_vector_db(): """Setup a temporary vector DB for testing.""" vector_db = ChromaDb(coll...
python
Apache-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/knowledge/filters/test_agentic_filtering.py
libs/agno/tests/integration/knowledge/filters/test_agentic_filtering.py
import tempfile from pathlib import Path import pytest from pydantic import BaseModel from agno.agent import Agent from agno.knowledge.knowledge import Knowledge from agno.knowledge.reader.csv_reader import CSVReader from agno.models.anthropic.claude import Claude from agno.models.google.gemini import Gemini 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/models/test_retries.py
libs/agno/tests/integration/models/test_retries.py
"""Integration tests for model retry functionality.""" from unittest.mock import patch import pytest from agno.agent import Agent from agno.exceptions import ModelProviderError from agno.models.openai import OpenAIChat from agno.run.base import RunStatus def test_model_retry(): """Test that model retries on fa...
python
Apache-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/__init__.py
libs/agno/tests/integration/models/__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/openai/__init__.py
libs/agno/tests/integration/models/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/openai/chat/test_tool_use.py
libs/agno/tests/integration/models/openai/chat/test_tool_use.py
from typing import Optional import pytest from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.openai import OpenAIChat from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools def test_tool_use(): 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/openai/chat/test_structured_response.py
libs/agno/tests/integration/models/openai/chat/test_structured_response.py
import enum from typing import Dict, List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.openai.chat import OpenAIChat 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/openai/chat/__init__.py
libs/agno/tests/integration/models/openai/chat/__init__.py
"""Integration tests for OpenAI Responses API."""
python
Apache-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/openai/chat/test_reasoning_streaming.py
libs/agno/tests/integration/models/openai/chat/test_reasoning_streaming.py
"""Integration tests for OpenAI reasoning streaming functionality. This test verifies that reasoning content streams correctly (not all at once) for OpenAI o-series models when used as a reasoning_model. Note: OpenAI o-series models (o1, o3, o4) perform internal reasoning but do not expose the reasoning content via 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/openai/chat/test_multimodal.py
libs/agno/tests/integration/models/openai/chat/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.openai.chat import OpenAIChat from agno.tools.duckduckgo import DuckDuckGoTools def _get_audio_input() -> Union[bytes, Any]: """Fetch an example audio file and return it as base6...
python
Apache-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/openai/chat/test_basic.py
libs/agno/tests/integration/models/openai/chat/test_basic.py
from typing import Optional import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput # noqa from agno.db.sqlite import SqliteDb from agno.models.openai import OpenAIChat from agno.run.base import RunStatus @pytest.fixture(scope="module") def openai_model(): """Fixture that pr...
python
Apache-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/openai/responses/test_tool_use.py
libs/agno/tests/integration/models/openai/responses/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.openai import OpenAIResponses from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools def test_tool_use(): """Test basic tool usage with the 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/openai/responses/test_structured_response.py
libs/agno/tests/integration/models/openai/responses/test_structured_response.py
import enum from typing import Dict, List, Literal import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput # noqa from agno.models.openai import OpenAIResponses from agno.tools.duckduckgo import DuckDuckGoTools class MovieScript(BaseModel): setting: str = Field(..., descript...
python
Apache-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/openai/responses/__init__.py
libs/agno/tests/integration/models/openai/responses/__init__.py
"""Integration tests for OpenAI Responses API."""
python
Apache-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/openai/responses/test_multimodal.py
libs/agno/tests/integration/models/openai/responses/test_multimodal.py
from agno.agent.agent import Agent from agno.media import File, Image from agno.models.openai.responses import OpenAIResponses from agno.tools.duckduckgo import DuckDuckGoTools def test_image_input(image_path): """Test image input with the responses API.""" agent = Agent( model=OpenAIResponses(id="gpt...
python
Apache-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/openai/responses/test_basic.py
libs/agno/tests/integration/models/openai/responses/test_basic.py
from typing import Optional import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput # noqa from agno.db.sqlite import SqliteDb from agno.models.openai import OpenAIResponses from agno.run.base import RunStatus @pytest.fixture(scope="module") def openai_responses_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/models/nvidia/test_tool_use.py
libs/agno/tests/integration/models/nvidia/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent, RunOutput # noqa from agno.models.nvidia import Nvidia 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=Nv...
python
Apache-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/nvidia/test_structured_response.py
libs/agno/tests/integration/models/nvidia/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.nvidia import Nvidia class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: str = Field( ..., descri...
python
Apache-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/nvidia/__init__.py
libs/agno/tests/integration/models/nvidia/__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/nvidia/test_basic.py
libs/agno/tests/integration/models/nvidia/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.nvidia import Nvidia 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/cohere/test_tool_use.py
libs/agno/tests/integration/models/cohere/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent, RunOutput # noqa from agno.models.cohere import Cohere 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=Co...
python
Apache-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/cohere/__init__.py
libs/agno/tests/integration/models/cohere/__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/cohere/test_multimodal.py
libs/agno/tests/integration/models/cohere/test_multimodal.py
from pathlib import Path import pytest from agno.agent.agent import Agent from agno.media import Image from agno.models.cohere.chat import Cohere from agno.tools.duckduckgo import DuckDuckGoTools def test_image_input(): agent = Agent( model=Cohere(id="c4ai-aya-vision-8b"), add_history_to_context...
python
Apache-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/cohere/test_basic.py
libs/agno/tests/integration/models/cohere/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.cohere import Cohere 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/lmstudio/test_tool_use.py
libs/agno/tests/integration/models/lmstudio/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent # noqa from agno.models.lmstudio import LMStudio 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=LMStudio(...
python
Apache-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/lmstudio/test_structured_response.py
libs/agno/tests/integration/models/lmstudio/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.lmstudio import LMStudio 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/lmstudio/__init__.py
libs/agno/tests/integration/models/lmstudio/__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/lmstudio/test_basic.py
libs/agno/tests/integration/models/lmstudio/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.lmstudio import LMStudio 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/langdb/test_tool_use.py
libs/agno/tests/integration/models/langdb/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent, RunOutput # noqa from agno.models.langdb import LangDB 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=La...
python
Apache-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/langdb/test_structured_response.py
libs/agno/tests/integration/models/langdb/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.langdb import LangDB class MovieScript(BaseModel): setting: str = Field(..., description="Provide a nice setting for a blockbuster movie.") ending: str = Field( ..., descri...
python
Apache-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/langdb/__init__.py
libs/agno/tests/integration/models/langdb/__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/langdb/test_basic.py
libs/agno/tests/integration/models/langdb/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.langdb import LangDB 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/huggingface/test_tool_use.py
libs/agno/tests/integration/models/huggingface/test_tool_use.py
import pytest from agno.agent import Agent, ToolCallCompletedEvent, ToolCallStartedEvent from agno.models.huggingface import HuggingFace from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools 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/huggingface/__init__.py
libs/agno/tests/integration/models/huggingface/__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/huggingface/test_basic.py
libs/agno/tests/integration/models/huggingface/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.exceptions import ModelProviderError from agno.models.huggingface import HuggingFace def _assert_metrics(response: RunOutput): assert response.metrics is not None ...
python
Apache-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/openrouter/test_tool_use.py
libs/agno/tests/integration/models/openrouter/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent from agno.models.openrouter import OpenRouter 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=OpenRouter(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/openrouter/test_structured_response.py
libs/agno/tests/integration/models/openrouter/test_structured_response.py
import enum from typing import List from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.openrouter import OpenRouter 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/openrouter/__init__.py
libs/agno/tests/integration/models/openrouter/__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/openrouter/test_basic.py
libs/agno/tests/integration/models/openrouter/test_basic.py
import pytest from pydantic import BaseModel, Field from agno.agent import Agent, RunOutput from agno.db.in_memory import InMemoryDb from agno.db.sqlite.sqlite import SqliteDb from agno.models.openrouter import OpenRouter def _assert_metrics(response: RunOutput): assert response.metrics is not None input_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/aws/__init__.py
libs/agno/tests/integration/models/aws/__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/claude/test_tool_use.py
libs/agno/tests/integration/models/aws/claude/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent # noqa from agno.models.aws 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="anthr...
python
Apache-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/claude/__init__.py
libs/agno/tests/integration/models/aws/claude/__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/claude/test_multimodal.py
libs/agno/tests/integration/models/aws/claude/test_multimodal.py
from agno.agent.agent import Agent from agno.media import Image from agno.models.aws.claude import Claude def test_image_input(): agent = Agent(model=Claude(id="anthropic.claude-3-5-sonnet-20240620-v1:0"), markdown=True, telemetry=False) response = agent.run( "Tell me about this image.", imag...
python
Apache-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/claude/test_basic.py
libs/agno/tests/integration/models/aws/claude/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.aws import Claude 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/aws/bedrock/test_tool_use.py
libs/agno/tests/integration/models/aws/bedrock/test_tool_use.py
from typing import Optional import pytest from agno.agent import Agent # noqa from agno.models.aws import AwsBedrock from agno.tools.duckduckgo import DuckDuckGoTools from agno.tools.exa import ExaTools from agno.tools.yfinance import YFinanceTools from agno.utils.log import log_info def test_tool_use(): agent...
python
Apache-2.0
26b9daa0fb760c3ad8384e1ba9218b1bce854535
2026-01-04T14:41:49.609528Z
false