__init__.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. """
  2. Reson Agent - 模块化、可扩展的 Agent 框架
  3. 核心导出:
  4. - AgentRunner: Agent 执行引擎
  5. - AgentConfig: Agent 配置
  6. - Trace, Message, Goal: 执行追踪
  7. - Experience, Skill: 记忆模型
  8. - tool: 工具装饰器
  9. - TraceStore, MemoryStore: 存储接口
  10. """
  11. # 核心引擎
  12. from agent.core.runner import AgentRunner, AgentConfig, CallResult, RunConfig
  13. from agent.core.presets import AgentPreset, AGENT_PRESETS, get_preset
  14. # 执行追踪
  15. from agent.trace.models import Trace, Message, Step, StepType, StepStatus
  16. from agent.trace.goal_models import Goal, GoalTree, GoalStatus
  17. from agent.trace.protocols import TraceStore
  18. from agent.trace.store import FileSystemTraceStore
  19. # 记忆系统
  20. from agent.memory.models import Experience, Skill
  21. from agent.memory.protocols import MemoryStore, StateStore
  22. from agent.memory.stores import MemoryMemoryStore, MemoryStateStore
  23. # 工具系统
  24. from agent.tools import tool, ToolRegistry, get_tool_registry
  25. from agent.tools.models import ToolResult, ToolContext
  26. __version__ = "0.3.0"
  27. __all__ = [
  28. # Core
  29. "AgentRunner",
  30. "AgentConfig",
  31. "CallResult",
  32. "RunConfig",
  33. "AgentPreset",
  34. "AGENT_PRESETS",
  35. "get_preset",
  36. # Trace
  37. "Trace",
  38. "Message",
  39. "Step",
  40. "StepType",
  41. "StepStatus",
  42. "Goal",
  43. "GoalTree",
  44. "GoalStatus",
  45. "TraceStore",
  46. "FileSystemTraceStore",
  47. # Memory
  48. "Experience",
  49. "Skill",
  50. "MemoryStore",
  51. "StateStore",
  52. "MemoryMemoryStore",
  53. "MemoryStateStore",
  54. # Tools
  55. "tool",
  56. "ToolRegistry",
  57. "get_tool_registry",
  58. "ToolResult",
  59. "ToolContext",
  60. ]