| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- """
- Reson Agent - 模块化、可扩展的 Agent 框架
- 核心导出:
- - AgentRunner: Agent 执行引擎
- - AgentConfig: Agent 配置
- - Trace, Message, Goal: 执行追踪
- - Experience, Skill: 记忆模型
- - tool: 工具装饰器
- - TraceStore, MemoryStore: 存储接口
- """
- # 核心引擎
- from agent.core.runner import AgentRunner, AgentConfig, CallResult
- from agent.core.presets import AgentPreset, AGENT_PRESETS, get_preset
- # 执行追踪
- from agent.trace.models import Trace, Message, Step, StepType, StepStatus
- from agent.trace.goal_models import Goal, GoalTree, GoalStatus
- from agent.trace.protocols import TraceStore
- from agent.trace.store import FileSystemTraceStore
- # 记忆系统
- from agent.memory.models import Experience, Skill
- from agent.memory.protocols import MemoryStore, StateStore
- from agent.memory.stores import MemoryMemoryStore, MemoryStateStore
- # 工具系统
- from agent.tools import tool, ToolRegistry, get_tool_registry
- from agent.tools.models import ToolResult, ToolContext
- __version__ = "0.3.0"
- __all__ = [
- # Core
- "AgentRunner",
- "AgentConfig",
- "CallResult",
- "AgentPreset",
- "AGENT_PRESETS",
- "get_preset",
- # Trace
- "Trace",
- "Message",
- "Step",
- "StepType",
- "StepStatus",
- "Goal",
- "GoalTree",
- "GoalStatus",
- "TraceStore",
- "FileSystemTraceStore",
- # Memory
- "Experience",
- "Skill",
- "MemoryStore",
- "StateStore",
- "MemoryMemoryStore",
- "MemoryStateStore",
- # Tools
- "tool",
- "ToolRegistry",
- "get_tool_registry",
- "ToolResult",
- "ToolContext",
- ]
|