sample_id
stringlengths
21
196
text
stringlengths
105
936k
metadata
dict
category
stringclasses
6 values
agno-agi/agno:libs/agno/agno/knowledge/reader/youtube_reader.py
import asyncio from typing import List, Optional from agno.knowledge.chunking.recursive import RecursiveChunking from agno.knowledge.chunking.strategy import ChunkingStrategy, ChunkingStrategyType from agno.knowledge.document.base import Document from agno.knowledge.reader.base import Reader from agno.knowledge.types ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/knowledge/reader/youtube_reader.py", "license": "Apache License 2.0", "lines": 65, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/knowledge/remote_content/remote_content.py
from dataclasses import dataclass from typing import Optional, Union from agno.cloud.aws.s3.bucket import S3Bucket from agno.cloud.aws.s3.object import S3Object @dataclass class S3Content: def __init__( self, bucket_name: Optional[str] = None, bucket: Optional[S3Bucket] = None, ke...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/knowledge/remote_content/remote_content.py", "license": "Apache License 2.0", "lines": 148, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/knowledge/reranker/base.py
from typing import List from pydantic import BaseModel, ConfigDict from agno.knowledge.document import Document class Reranker(BaseModel): """Base class for rerankers""" model_config = ConfigDict(arbitrary_types_allowed=True, populate_by_name=True) def rerank(self, query: str, documents: List[Document...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/knowledge/reranker/base.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/knowledge/reranker/cohere.py
from typing import Any, Dict, List, Optional from agno.knowledge.document import Document from agno.knowledge.reranker.base import Reranker from agno.utils.log import logger try: from cohere import Client as CohereClient except ImportError: raise ImportError("cohere not installed, please run pip install coher...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/knowledge/reranker/cohere.py", "license": "Apache License 2.0", "lines": 51, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/knowledge/reranker/sentence_transformer.py
from typing import Any, Dict, List, Optional from agno.knowledge.document import Document from agno.knowledge.reranker.base import Reranker from agno.utils.log import logger try: from sentence_transformers import CrossEncoder except ImportError: raise ImportError("`sentence-transformers` not installed, please...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/knowledge/reranker/sentence_transformer.py", "license": "Apache License 2.0", "lines": 45, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/knowledge/types.py
from enum import Enum from typing import Any from pydantic import BaseModel class ContentType(str, Enum): """Enum for content types supported by knowledge readers.""" # Generic types FILE = "file" URL = "url" TEXT = "text" TOPIC = "topic" YOUTUBE = "youtube" # Document file extensio...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/knowledge/types.py", "license": "Apache License 2.0", "lines": 29, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/knowledge/utils.py
from typing import Any, Dict, List, Optional from agno.knowledge.reader.base import Reader from agno.knowledge.reader.reader_factory import ReaderFactory from agno.knowledge.types import ContentType from agno.utils.log import log_debug RESERVED_AGNO_KEY = "_agno" def merge_user_metadata( existing: Optional[Dict...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/knowledge/utils.py", "license": "Apache License 2.0", "lines": 249, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/models/metrics.py
"""Backward-compatible re-exports from agno.metrics. All metric classes now live in agno.metrics. This shim keeps ``from agno.models.metrics import Metrics`` working everywhere. """ from agno.metrics import ( # noqa: F401 BaseMetrics, MessageMetrics, Metrics, ModelMetrics, ModelType, RunMetr...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/models/metrics.py", "license": "Apache License 2.0", "lines": 31, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/models/utils.py
from typing import Optional, Union from agno.models.base import Model def _get_model_class(model_id: str, model_provider: str) -> Model: if model_provider == "aimlapi": from agno.models.aimlapi import AIMLAPI return AIMLAPI(id=model_id) elif model_provider == "anthropic": from agno....
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/models/utils.py", "license": "Apache License 2.0", "lines": 172, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/app.py
from contextlib import asynccontextmanager from functools import partial from os import getenv from typing import Any, Dict, List, Literal, Optional, Union from uuid import uuid4 from fastapi import APIRouter, FastAPI, HTTPException from fastapi.exceptions import RequestValidationError from fastapi.responses import JS...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/app.py", "license": "Apache License 2.0", "lines": 1148, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/auth.py
import asyncio import hmac from os import getenv from typing import Any, List, Optional, Set from fastapi import Depends, HTTPException, Request from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from agno.os.scopes import get_accessible_resource_ids, has_required_scopes from agno.os.settings impor...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/auth.py", "license": "Apache License 2.0", "lines": 301, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
agno-agi/agno:libs/agno/agno/os/config.py
"""Schemas related to the AgentOS configuration""" from typing import Generic, List, Optional, TypeVar from pydantic import BaseModel, field_validator class AuthorizationConfig(BaseModel): """Configuration for the JWT middleware""" verification_keys: Optional[List[str]] = None jwks_file: Optional[str] ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/config.py", "license": "Apache License 2.0", "lines": 86, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/interfaces/agui/agui.py
"""Main class for the AG-UI app, used to expose an Agno Agent or Team in an AG-UI compatible format.""" from typing import List, Optional, Union from fastapi.routing import APIRouter from agno.agent import Agent from agno.agent.remote import RemoteAgent from agno.os.interfaces.agui.router import attach_routes from a...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/agui/agui.py", "license": "Apache License 2.0", "lines": 37, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/os/interfaces/agui/router.py
"""Async router handling exposing an Agno Agent or Team in an AG-UI compatible format.""" import logging import uuid from typing import AsyncIterator, Optional, Union try: from ag_ui.core import ( BaseEvent, EventType, RunAgentInput, RunErrorEvent, RunStartedEvent, ) ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/agui/router.py", "license": "Apache License 2.0", "lines": 126, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/interfaces/agui/utils.py
"""Logic used by the AG-UI router.""" import json import uuid from collections.abc import Iterator from dataclasses import asdict, dataclass, is_dataclass from typing import Any, AsyncIterator, Dict, List, Optional, Set, Tuple, Union from ag_ui.core import ( BaseEvent, CustomEvent, EventType, RunFinis...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/agui/utils.py", "license": "Apache License 2.0", "lines": 476, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/interfaces/base.py
from abc import ABC, abstractmethod from typing import List, Optional, Union from fastapi import APIRouter from agno.agent import Agent, RemoteAgent from agno.team import RemoteTeam, Team from agno.workflow import RemoteWorkflow, Workflow class BaseInterface(ABC): type: str version: str = "1.0" agent: O...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/base.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/os/interfaces/slack/router.py
from __future__ import annotations from ssl import SSLContext from typing import Any, Dict, List, Literal, Optional, Union from fastapi import APIRouter, BackgroundTasks, HTTPException, Request from pydantic import BaseModel, Field from agno.agent import Agent, RemoteAgent from agno.os.interfaces.slack.events import...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/slack/router.py", "license": "Apache License 2.0", "lines": 336, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/interfaces/slack/slack.py
from ssl import SSLContext from typing import Dict, List, Optional, Union from fastapi.routing import APIRouter from agno.agent import Agent, RemoteAgent from agno.os.interfaces.base import BaseInterface from agno.os.interfaces.slack.router import attach_routes from agno.team import RemoteTeam, Team from agno.workflo...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/slack/slack.py", "license": "Apache License 2.0", "lines": 67, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/os/interfaces/whatsapp/router.py
import base64 from os import getenv from typing import Optional, Union from fastapi import APIRouter, BackgroundTasks, HTTPException, Request from fastapi.responses import PlainTextResponse from agno.agent.agent import Agent from agno.agent.remote import RemoteAgent from agno.media import Audio, File, Image, Video fr...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/whatsapp/router.py", "license": "Apache License 2.0", "lines": 204, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/interfaces/whatsapp/whatsapp.py
from typing import List, Optional, Union from fastapi.routing import APIRouter from agno.agent import Agent, RemoteAgent from agno.os.interfaces.base import BaseInterface from agno.os.interfaces.whatsapp.router import attach_routes from agno.team import RemoteTeam, Team from agno.workflow import RemoteWorkflow, Workf...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/interfaces/whatsapp/whatsapp.py", "license": "Apache License 2.0", "lines": 29, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/os/mcp.py
"""Router for MCP interface providing Model Context Protocol endpoints.""" import logging from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union, cast from uuid import uuid4 from fastmcp import FastMCP from fastmcp.server.http import ( StarletteWithLifespan, ) from agno.db.base import AsyncBaseDb, Ba...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/mcp.py", "license": "Apache License 2.0", "lines": 764, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/router.py
import json from typing import TYPE_CHECKING, List, cast from fastapi import ( APIRouter, Depends, HTTPException, WebSocket, ) from agno.exceptions import RemoteServerUnavailableError from agno.os.auth import get_authentication_dependency, validate_websocket_token from agno.os.managers import websocke...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/router.py", "license": "Apache License 2.0", "lines": 281, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/evals/evals.py
import logging from copy import deepcopy from typing import List, Optional, Union, cast from fastapi import APIRouter, Depends, HTTPException, Query, Request from agno.agent import Agent, RemoteAgent from agno.db.base import AsyncBaseDb, BaseDb from agno.db.schemas.evals import EvalFilterType, EvalType from agno.mode...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/evals/evals.py", "license": "Apache License 2.0", "lines": 488, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/evals/schemas.py
from dataclasses import asdict from datetime import datetime from typing import Any, Dict, List, Literal, Optional from pydantic import BaseModel, Field from agno.db.schemas.evals import EvalType from agno.eval import AccuracyResult, AgentAsJudgeResult, PerformanceResult, ReliabilityResult from agno.eval.accuracy imp...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/evals/schemas.py", "license": "Apache License 2.0", "lines": 154, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/evals/utils.py
from typing import Optional, Union from fastapi import HTTPException from agno.agent import Agent, RemoteAgent from agno.db.base import AsyncBaseDb, BaseDb from agno.eval.accuracy import AccuracyEval from agno.eval.agent_as_judge import AgentAsJudgeEval from agno.eval.performance import PerformanceEval from agno.eval...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/evals/utils.py", "license": "Apache License 2.0", "lines": 193, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/knowledge/knowledge.py
import json import logging import math from typing import Any, Dict, List, Optional, Union from fastapi import APIRouter, BackgroundTasks, Depends, File, Form, HTTPException, Path, Query, Request, UploadFile from agno.db.base import AsyncBaseDb from agno.knowledge.content import Content, FileData from agno.knowledge....
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/knowledge/knowledge.py", "license": "Apache License 2.0", "lines": 1333, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/knowledge/schemas.py
from datetime import datetime, timezone from enum import Enum from typing import Any, Dict, List, Optional from pydantic import BaseModel, Field from agno.os.schema import PaginationInfo class ContentStatus(str, Enum): """Enumeration of possible content processing statuses.""" PROCESSING = "processing" ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/knowledge/schemas.py", "license": "Apache License 2.0", "lines": 179, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/memory/memory.py
import logging import math from typing import List, Optional, Union, cast from uuid import uuid4 from fastapi import Depends, HTTPException, Path, Query, Request from fastapi.routing import APIRouter from agno.db.base import AsyncBaseDb, BaseDb from agno.db.schemas import UserMemory from agno.models.utils import get_...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/memory/memory.py", "license": "Apache License 2.0", "lines": 732, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/memory/schemas.py
import json from datetime import datetime from typing import Any, Dict, List, Optional from pydantic import BaseModel, Field from agno.os.utils import to_utc_datetime class DeleteMemoriesRequest(BaseModel): memory_ids: List[str] = Field(..., description="List of memory IDs to delete", min_length=1) user_id:...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/memory/schemas.py", "license": "Apache License 2.0", "lines": 78, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/metrics/metrics.py
import logging from datetime import date from typing import List, Optional, Union, cast from fastapi import Depends, HTTPException, Query, Request from fastapi.routing import APIRouter from agno.db.base import AsyncBaseDb, BaseDb from agno.os.auth import get_auth_token_from_request, get_authentication_dependency from...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/metrics/metrics.py", "license": "Apache License 2.0", "lines": 188, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/routers/metrics/schemas.py
from datetime import datetime, timezone from typing import Any, Dict, List, Optional from pydantic import BaseModel, Field from agno.os.utils import to_utc_datetime class DayAggregatedMetrics(BaseModel): """Aggregated metrics for a given day""" id: str = Field(..., description="Unique identifier for the me...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/metrics/schemas.py", "license": "Apache License 2.0", "lines": 41, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/os/routers/session/session.py
import logging import time from typing import Any, List, Optional, Union, cast from uuid import uuid4 from fastapi import APIRouter, Body, Depends, HTTPException, Path, Query, Request from agno.db.base import AsyncBaseDb, BaseDb, SessionType from agno.os.auth import get_auth_token_from_request, get_authentication_dep...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/routers/session/session.py", "license": "Apache License 2.0", "lines": 1065, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/schema.py
from datetime import datetime, timezone from enum import Enum from typing import Any, Dict, Generic, List, Optional, TypeVar, Union from pydantic import BaseModel, ConfigDict, Field from agno.agent import Agent from agno.agent.remote import RemoteAgent from agno.db.base import SessionType from agno.os.config import (...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/schema.py", "license": "Apache License 2.0", "lines": 601, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/os/settings.py
from __future__ import annotations from typing import List, Optional from pydantic import Field, field_validator from pydantic_settings import BaseSettings class AgnoAPISettings(BaseSettings): """App settings for API-based apps that can be set using environment variables. Reference: https://pydantic-docs.h...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/settings.py", "license": "Apache License 2.0", "lines": 33, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/os/utils.py
import json from datetime import datetime, timezone from typing import Any, Callable, Dict, List, Optional, Set, Type, Union from fastapi import FastAPI, HTTPException, Request, UploadFile from fastapi.routing import APIRoute, APIRouter from pydantic import BaseModel, create_model from starlette.middleware.cors import...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/os/utils.py", "license": "Apache License 2.0", "lines": 896, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/run/agent.py
from dataclasses import asdict, dataclass, field from enum import Enum from time import time from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Union from pydantic import BaseModel from agno.media import Audio, File, Image, Video from agno.models.message import Citations, Message from agno.models....
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/run/agent.py", "license": "Apache License 2.0", "lines": 711, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/run/cancel.py
"""Run cancellation management.""" from typing import Dict from agno.run.cancellation_management.base import BaseRunCancellationManager from agno.run.cancellation_management.in_memory_cancellation_manager import InMemoryRunCancellationManager from agno.utils.log import logger # Global cancellation manager instance _...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/run/cancel.py", "license": "Apache License 2.0", "lines": 60, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/session/agent.py
from __future__ import annotations from dataclasses import asdict, dataclass from typing import Any, Dict, List, Mapping, Optional, Union from agno.models.message import Message from agno.run.agent import RunOutput from agno.run.base import RunStatus from agno.run.team import TeamRunOutput from agno.session.summary i...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/session/agent.py", "license": "Apache License 2.0", "lines": 210, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/session/summary.py
from dataclasses import dataclass from datetime import datetime from textwrap import dedent from typing import TYPE_CHECKING, Any, Dict, List, Optional, Type, Union from pydantic import BaseModel, Field from agno.models.base import Model from agno.models.utils import get_model from agno.run.agent import Message from ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/session/summary.py", "license": "Apache License 2.0", "lines": 222, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/session/team.py
from __future__ import annotations from dataclasses import asdict, dataclass from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from pydantic import BaseModel from agno.models.message import Message from agno.run.agent import RunOutput, RunStatus from agno.run.team import TeamRunOutput from agno.ses...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/session/team.py", "license": "Apache License 2.0", "lines": 275, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/session/workflow.py
from __future__ import annotations import time from dataclasses import dataclass from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from pydantic import BaseModel from agno.models.message import Message from agno.run.agent import RunOutput from agno.run.base import RunStatus from agno.run.team impor...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/session/workflow.py", "license": "Apache License 2.0", "lines": 410, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/tools/clickup.py
import json import re from os import getenv from typing import Any, Dict, List, Optional from agno.tools import Toolkit from agno.utils.log import log_debug, logger try: import requests except ImportError: raise ImportError("`requests` not installed. Please install using `pip install requests`") class Click...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/tools/clickup.py", "license": "Apache License 2.0", "lines": 196, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/utils/knowledge.py
from typing import Any, Dict, List, Optional, Union from agno.filters import FilterExpr from agno.utils.log import log_info def get_agentic_or_user_search_filters( filters: Optional[Dict[str, Any]], effective_filters: Optional[Union[Dict[str, Any], List[FilterExpr]]] ) -> Dict[str, Any]: """Helper function t...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/utils/knowledge.py", "license": "Apache License 2.0", "lines": 28, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
agno-agi/agno:libs/agno/agno/utils/print_response/agent.py
import json from collections.abc import Set from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Union, cast, get_args from pydantic import BaseModel from rich.console import Group from rich.json import JSON from rich.live import Live from rich.markdown import Markdown from rich.status import Status ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/utils/print_response/agent.py", "license": "Apache License 2.0", "lines": 831, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/utils/print_response/team.py
import json from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Set, Union, get_args from pydantic import BaseModel from agno.filters import FilterExpr from agno.media import Audio, File, Image, Video from agno.models.message import Message from agno.models.response import ToolExecution from agno.r...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/utils/print_response/team.py", "license": "Apache License 2.0", "lines": 1663, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/utils/print_response/workflow.py
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union from pydantic import BaseModel from rich.console import Group from rich.live import Live from rich.markdown import Markdown from rich.status import Status from rich.text import Text from agno.media import Audio, File, Image, Video from agno.models.mes...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/utils/print_response/workflow.py", "license": "Apache License 2.0", "lines": 1410, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/utils/reasoning.py
from typing import TYPE_CHECKING, List, Optional, Tuple, Union from agno.metrics import MessageMetrics from agno.models.message import Message from agno.reasoning.step import ReasoningStep if TYPE_CHECKING: from agno.run.agent import RunOutput from agno.team.team import TeamRunOutput def extract_thinking_co...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/utils/reasoning.py", "license": "Apache License 2.0", "lines": 80, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/utils/streamlit.py
from datetime import datetime from typing import Any, Callable, Dict, List, Optional try: from agno.agent import Agent from agno.db.base import SessionType from agno.models.anthropic import Claude from agno.models.google import Gemini from agno.models.openai import OpenAIChat from agno.utils.lo...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/utils/streamlit.py", "license": "Apache License 2.0", "lines": 395, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/utils/team.py
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union from agno.agent import Agent from agno.media import Audio, File, Image, Video from agno.run.agent import RunOutput from agno.run.team import TeamRunOutput from agno.utils.log import log_debug from agno.utils.string import is_valid_uuid, url_safe_string...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/utils/team.py", "license": "Apache License 2.0", "lines": 157, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/vectordb/langchaindb/langchaindb.py
from typing import Any, Dict, List, Optional, Union from agno.filters import FilterExpr from agno.knowledge.document import Document from agno.utils.log import log_debug, log_warning, logger from agno.vectordb.base import VectorDb class LangChainVectorDb(VectorDb): def __init__( self, vectorstore...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/vectordb/langchaindb/langchaindb.py", "license": "Apache License 2.0", "lines": 128, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/vectordb/lightrag/lightrag.py
import asyncio from typing import Any, Dict, List, Optional, Union import httpx from agno.filters import FilterExpr from agno.knowledge.document import Document from agno.utils.log import log_debug, log_error, log_info, log_warning from agno.vectordb.base import VectorDb DEFAULT_SERVER_URL = "http://localhost:9621" ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/vectordb/lightrag/lightrag.py", "license": "Apache License 2.0", "lines": 321, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/vectordb/llamaindex/llamaindexdb.py
from typing import Any, Callable, Dict, List, Optional, Union from agno.filters import FilterExpr from agno.knowledge.document import Document from agno.utils.log import log_warning, logger from agno.vectordb.base import VectorDb try: from llama_index.core.retrievers import BaseRetriever from llama_index.core...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/vectordb/llamaindex/llamaindexdb.py", "license": "Apache License 2.0", "lines": 130, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/workflow/router.py
import inspect from dataclasses import dataclass, field from typing import Any, AsyncIterator, Awaitable, Callable, Dict, Iterator, List, Optional, Union from uuid import uuid4 from agno.registry import Registry from agno.run.agent import RunOutputEvent from agno.run.base import RunContext from agno.run.team import Te...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/workflow/router.py", "license": "Apache License 2.0", "lines": 946, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/workflow/steps.py
from dataclasses import dataclass from typing import Any, AsyncIterator, Awaitable, Callable, Dict, Iterator, List, Optional, Union from uuid import uuid4 from agno.registry import Registry from agno.run.agent import RunOutputEvent from agno.run.base import RunContext from agno.run.team import TeamRunOutputEvent from ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/workflow/steps.py", "license": "Apache License 2.0", "lines": 606, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/agno/workflow/types.py
from dataclasses import dataclass from enum import Enum from typing import Any, Dict, List, Optional, Tuple, Union from pydantic import BaseModel from agno.media import Audio, File, Image, Video from agno.models.metrics import RunMetrics from agno.session.workflow import WorkflowSession from agno.utils.media import (...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/agno/workflow/types.py", "license": "Apache License 2.0", "lines": 745, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
agno-agi/agno:libs/agno/tests/integration/agent/test_chat_history.py
import pytest from agno.agent.agent import Agent from agno.db.base import SessionType from agno.models.openai.chat import OpenAIChat @pytest.fixture def chat_agent(shared_db): """Create an agent with storage and memory for testing.""" return Agent( model=OpenAIChat(id="gpt-4o-mini"), db=share...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_chat_history.py", "license": "Apache License 2.0", "lines": 85, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/agent/test_custom_retriever.py
from agno.agent import Agent from agno.models.openai import OpenAIChat def test_agent_with_custom_knowledge_retriever(): def custom_knowledge_retriever(**kwargs): return ["Paris is the capital of France"] agent = Agent( model=OpenAIChat(id="gpt-4o"), knowledge_retriever=custom_knowled...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_custom_retriever.py", "license": "Apache License 2.0", "lines": 38, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/agent/test_input.py
from pydantic import BaseModel from agno.agent import Agent from agno.db.sqlite import SqliteDb from agno.media import Image from agno.models.message import Message from agno.models.openai import OpenAIChat from agno.session.summary import SessionSummaryManager def test_message_as_input(): agent = Agent( ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_input.py", "license": "Apache License 2.0", "lines": 164, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/agent/test_multimodal.py
from agno.agent.agent import Agent from agno.db.base import SessionType from agno.media import Image from agno.models.openai.chat import OpenAIChat def test_agent_image_input(shared_db, image_path): agent = Agent( model=OpenAIChat(id="gpt-4o-mini"), markdown=True, db=shared_db, ) ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_multimodal.py", "license": "Apache License 2.0", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/agent/test_print_response.py
from unittest.mock import MagicMock, Mock, patch import pytest from rich.console import Console from rich.text import Text from agno.agent import Agent from agno.models.openai import OpenAIChat def test_print_response_with_message_panel(): """Test that print_response creates a message panel when show_message=Tr...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_print_response.py", "license": "Apache License 2.0", "lines": 318, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/agent/test_session.py
import uuid from typing import Any, Dict, Optional import pytest from agno.agent.agent import Agent from agno.db.base import SessionType from agno.models.openai.chat import OpenAIChat from agno.run import RunContext from agno.run.agent import RunEvent def add_item(run_context: RunContext, item: str) -> str: """...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_session.py", "license": "Apache License 2.0", "lines": 610, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/agent/test_shared_model.py
from unittest.mock import patch import pytest from agno.agent import Agent from agno.models.openai.chat import OpenAIChat @pytest.fixture(scope="session") def shared_model(): return OpenAIChat(id="gpt-4o-mini") @pytest.fixture def web_agent(shared_model): """Create a web agent for testing.""" from agn...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_shared_model.py", "license": "Apache License 2.0", "lines": 50, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/agent/test_tool_call_limit.py
import pytest from agno.agent.agent import Agent from agno.models.openai import OpenAIChat from agno.run.agent import RunEvent from agno.tools.yfinance import YFinanceTools def test_tool_use_tool_call_limit(): agent = Agent( model=OpenAIChat(id="gpt-4o-mini"), tools=[YFinanceTools(cache_results=T...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/agent/test_tool_call_limit.py", "license": "Apache License 2.0", "lines": 70, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/db/postgres/test_db.py", "license": "Apache License 2.0", "lines": 119, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/db/postgres/test_evals.py", "license": "Apache License 2.0", "lines": 383, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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-...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/db/postgres/test_knowledge.py", "license": "Apache License 2.0", "lines": 337, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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 ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/db/postgres/test_memory.py", "license": "Apache License 2.0", "lines": 398, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/db/postgres/test_metrics.py", "license": "Apache License 2.0", "lines": 459, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/db/postgres/test_session.py", "license": "Apache License 2.0", "lines": 778, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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=...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_arxiv_knowledge.py", "license": "Apache License 2.0", "lines": 91, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_csv_knowledge.py", "license": "Apache License 2.0", "lines": 211, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_docx_knowledge.py", "license": "Apache License 2.0", "lines": 171, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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 = ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_firecrawl_knowledge.py", "license": "Apache License 2.0", "lines": 101, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_json_knowledge.py", "license": "Apache License 2.0", "lines": 190, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_md_knowledge.py", "license": "Apache License 2.0", "lines": 168, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_pdf_knowledge.py", "license": "Apache License 2.0", "lines": 565, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_text_knowledge.py", "license": "Apache License 2.0", "lines": 176, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_website_knowledge.py", "license": "Apache License 2.0", "lines": 92, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/knowledge/test_youtube_knowledge.py", "license": "Apache License 2.0", "lines": 120, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/managers/test_memory_manager.py
import os import tempfile from datetime import datetime import pytest from agno.db.sqlite import SqliteDb from agno.memory import MemoryManager, UserMemory from agno.memory.strategies.types import MemoryOptimizationStrategyType from agno.models.message import Message from agno.models.openai import OpenAIChat @pytes...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/managers/test_memory_manager.py", "license": "Apache License 2.0", "lines": 389, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/managers/test_session_summary_manager.py
import os import tempfile from datetime import datetime from unittest.mock import Mock, patch import pytest from agno.db.sqlite import SqliteDb from agno.models.openai import OpenAIChat from agno.run.agent import Message, RunOutput from agno.session.agent import AgentSession from agno.session.summary import SessionSu...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/managers/test_session_summary_manager.py", "license": "Apache License 2.0", "lines": 379, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/models/cerebras/cerebras_openai/test_basic.py", "license": "Apache License 2.0", "lines": 81, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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.websearch import WebSearchTools from agno.tools.yfinance import YFinanceTools def test_tool_use(): agent = Agent( model=CerebrasOpenAI(id="gpt-oss-120b"), tools=[YFinanceTools(cache_results=...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/models/cerebras/cerebras_openai/test_tool_use.py", "license": "Apache License 2.0", "lines": 80, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/teams/test_metrics.py
from typing import Iterator import pytest from agno.agent import Agent from agno.eval.agent_as_judge import AgentAsJudgeEval from agno.metrics import ModelMetrics, RunMetrics, SessionMetrics, ToolCallMetrics from agno.models.openai import OpenAIChat from agno.run.team import TeamRunOutput from agno.team.team import T...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/teams/test_metrics.py", "license": "Apache License 2.0", "lines": 477, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/teams/test_multimodal.py
from agno.agent.agent import Agent from agno.media import Image from agno.models.openai.chat import OpenAIChat from agno.team.team import Team def test_team_image_input(shared_db, image_path): image_analyst = Agent( name="Image Analyst", role="Analyze images and provide insights.", model=O...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/teams/test_multimodal.py", "license": "Apache License 2.0", "lines": 54, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/teams/test_parser_model.py
""" Test parser model functionality with teams """ from typing import List from pydantic import BaseModel, Field from agno.models.openai import OpenAIChat from agno.team import Team class ParkGuide(BaseModel): park_name: str = Field(..., description="The official name of the national park.") activities: Li...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/teams/test_parser_model.py", "license": "Apache License 2.0", "lines": 58, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/teams/test_session.py
import uuid from typing import Any, Dict, Optional import pytest from agno.agent.agent import Agent from agno.models.openai.chat import OpenAIChat from agno.run.team import TeamRunEvent from agno.team.team import Team def team_factory(shared_db, session_id: Optional[str] = None, session_state: Optional[Dict[str, An...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/teams/test_session.py", "license": "Apache License 2.0", "lines": 443, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno: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( ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/teams/test_storage_and_memory.py", "license": "Apache License 2.0", "lines": 215, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/teams/test_team_delegation.py
import asyncio from typing import List import pytest from pydantic import BaseModel from agno.agent import Agent from agno.models.openai import OpenAIChat from agno.team.team import Team ASYNC_TEST_TIMEOUT = 300 def test_team_delegation(): """Test basic functionality of a coordinator team.""" def get_clim...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/teams/test_team_delegation.py", "license": "Apache License 2.0", "lines": 287, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_access_multiple_previous_steps_outputs.py
"""Integration tests for accessing multiple previous step outputs in workflows.""" import pytest from agno.run.workflow import WorkflowCompletedEvent, WorkflowRunOutput from agno.workflow import Condition, Parallel, Step, Workflow from agno.workflow.steps import Steps from agno.workflow.types import StepInput, StepOu...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_access_multiple_previous_steps_outputs.py", "license": "Apache License 2.0", "lines": 240, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": ...
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_condition_steps.py
"""Integration tests for Condition functionality in workflows.""" import pytest from agno.run.base import RunStatus from agno.run.workflow import ( ConditionExecutionCompletedEvent, ConditionExecutionStartedEvent, StepCompletedEvent, StepStartedEvent, WorkflowCompletedEvent, WorkflowRunOutput,...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_condition_steps.py", "license": "Apache License 2.0", "lines": 727, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_loop_steps.py
"""Integration tests for Loop functionality in workflows.""" import pytest from agno.run.workflow import ( LoopExecutionCompletedEvent, LoopExecutionStartedEvent, StepCompletedEvent, StepStartedEvent, WorkflowCompletedEvent, WorkflowRunOutput, ) from agno.workflow import Loop, Parallel, Workfl...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_loop_steps.py", "license": "Apache License 2.0", "lines": 597, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_mixed_steps.py
"""Integration tests for complex combinations of workflow steps.""" import pytest from agno.run.workflow import WorkflowCompletedEvent, WorkflowRunOutput from agno.workflow import Condition, Loop, Parallel, Workflow from agno.workflow.router import Router from agno.workflow.types import StepInput, StepOutput def fi...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_mixed_steps.py", "license": "Apache License 2.0", "lines": 459, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_parallel_steps.py
"""Integration tests for Parallel steps functionality.""" from contextvars import ContextVar from secrets import token_hex from typing import List import pytest from pydantic import BaseModel from agno.agent import Agent from agno.models.openai import OpenAIChat from agno.run.workflow import ( StepCompletedEvent...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_parallel_steps.py", "license": "Apache License 2.0", "lines": 628, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_router_steps.py
"""Test Router functionality in workflows.""" import pytest from agno.run.workflow import ( RouterExecutionCompletedEvent, RouterExecutionStartedEvent, StepCompletedEvent, StepStartedEvent, WorkflowCompletedEvent, WorkflowRunOutput, ) from agno.workflow.cel import CEL_AVAILABLE from agno.workf...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_router_steps.py", "license": "Apache License 2.0", "lines": 1018, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_sequence_of_function_and_agent.py
"""Integration tests for Workflow v2 sequence of steps functionality""" import asyncio from typing import AsyncIterator, Iterator import pytest from agno.run.workflow import StepOutputEvent, WorkflowCompletedEvent, WorkflowRunOutput from agno.workflow import StepInput, StepOutput, Workflow def test_basic_sequence(...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_sequence_of_function_and_agent.py", "license": "Apache License 2.0", "lines": 78, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_sequence_of_steps.py
"""Integration tests for Workflow v2 sequence of steps functionality""" import asyncio from typing import AsyncIterator import pytest from agno.models.metrics import SessionMetrics from agno.run.workflow import WorkflowCompletedEvent, WorkflowRunOutput from agno.workflow import Step, StepInput, StepOutput, Workflow ...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_sequence_of_steps.py", "license": "Apache License 2.0", "lines": 316, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_session.py
import uuid from typing import Any, Dict, Optional import pytest from agno.agent.agent import Agent from agno.run import RunContext from agno.workflow import Step, StepInput, StepOutput, Workflow from agno.workflow.condition import Condition from agno.workflow.router import Router # Simple helper functions def res...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_session.py", "license": "Apache License 2.0", "lines": 532, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_steps.py
"""Integration tests for Steps functionality in workflows.""" import asyncio from typing import AsyncIterator import pytest from agno.run.workflow import ( StepCompletedEvent, StepsExecutionCompletedEvent, StepsExecutionStartedEvent, StepStartedEvent, WorkflowCompletedEvent, WorkflowRunOutput...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_steps.py", "license": "Apache License 2.0", "lines": 471, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
agno-agi/agno:libs/agno/tests/integration/workflows/test_structured_output_flow.py
"""Integration tests for structured output flow between workflow steps.""" from typing import List import pytest from pydantic import BaseModel, Field from agno.agent import Agent from agno.models.openai import OpenAIChat from agno.team import Team from agno.workflow import Step, Workflow from agno.workflow.types im...
{ "repo_id": "agno-agi/agno", "file_path": "libs/agno/tests/integration/workflows/test_structured_output_flow.py", "license": "Apache License 2.0", "lines": 497, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test