__init__.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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
  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. "AgentPreset",
  33. "AGENT_PRESETS",
  34. "get_preset",
  35. # Trace
  36. "Trace",
  37. "Message",
  38. "Step",
  39. "StepType",
  40. "StepStatus",
  41. "Goal",
  42. "GoalTree",
  43. "GoalStatus",
  44. "TraceStore",
  45. "FileSystemTraceStore",
  46. # Memory
  47. "Experience",
  48. "Skill",
  49. "MemoryStore",
  50. "StateStore",
  51. "MemoryMemoryStore",
  52. "MemoryStateStore",
  53. # Tools
  54. "tool",
  55. "ToolRegistry",
  56. "get_tool_registry",
  57. "ToolResult",
  58. "ToolContext",
  59. ]