57 lines
1.7 KiB
Python
57 lines
1.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Agents package - EvoAgent architecture for trading system.
|
|
|
|
Exports:
|
|
- EvoAgent: Next-generation agent with workspace support
|
|
- ToolGuardMixin: Tool call approval/denial flow
|
|
- CommandHandler: System command handling
|
|
- AgentFactory: Dynamic agent creation and management
|
|
- WorkspaceManager: Legacy name for the persistent workspace registry
|
|
- WorkspaceRegistry: Explicit run-time-agnostic workspace registry
|
|
- RunWorkspaceManager: Run-scoped workspace asset manager
|
|
- AgentRegistry: Central agent registry
|
|
- Legacy compatibility: AnalystAgent, PMAgent, RiskAgent
|
|
"""
|
|
|
|
# New EvoAgent architecture (from agent_core.py)
|
|
from .agent_core import EvoAgent, ToolGuardMixin, CommandHandler
|
|
from .factory import AgentFactory, ModelConfig
|
|
from .workspace import WorkspaceManager, WorkspaceRegistry, WorkspaceConfig
|
|
from .workspace_manager import RunWorkspaceManager
|
|
from .registry import AgentRegistry, AgentInfo, get_registry, reset_registry
|
|
|
|
# Legacy agents (backward compatibility)
|
|
from .analyst import AnalystAgent
|
|
from .portfolio_manager import PMAgent
|
|
from .risk_manager import RiskAgent
|
|
|
|
# Compatibility layer
|
|
from .compat import LegacyAgentAdapter, adapt_agent, adapt_agents, is_legacy_agent
|
|
|
|
__all__ = [
|
|
# New architecture
|
|
"EvoAgent",
|
|
"ToolGuardMixin",
|
|
"CommandHandler",
|
|
"AgentFactory",
|
|
"ModelConfig",
|
|
"WorkspaceManager",
|
|
"WorkspaceRegistry",
|
|
"WorkspaceConfig",
|
|
"RunWorkspaceManager",
|
|
"AgentRegistry",
|
|
"AgentInfo",
|
|
"get_registry",
|
|
"reset_registry",
|
|
# Legacy compatibility
|
|
"AnalystAgent",
|
|
"PMAgent",
|
|
"RiskAgent",
|
|
# Compatibility layer
|
|
"LegacyAgentAdapter",
|
|
"adapt_agent",
|
|
"adapt_agents",
|
|
"is_legacy_agent",
|
|
]
|