context_managers/__init__.py

Upsonic · src/upsonic/agent/context_managers/__init__.py · python · MIT
ai, tag:knn-classified

Provides lazy-loaded context manager classes for Upsonic agents.

# Source: https://github.com/Upsonic/Upsonic | License: MIT | Copyright 2024 Upsonic Teknoloji A.Ş
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations
from typing import TYPE_CHECKING, Any

if TYPE_CHECKING:
    from .call_manager import CallManager
    from .task_manager import TaskManager
    from .reliability_manager import ReliabilityManager
    from .llm_manager import LLMManager
    from .system_prompt_manager import SystemPromptManager
    from .context_manager import ContextManager
    from .memory_manager import MemoryManager
    from .context_management_middleware import ContextManagementMiddleware

def _get_context_manager_classes():
    """Lazy import of context manager classes."""
    from .call_manager import CallManager
    from

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key