feat: Agent 运行时、对话 API、作业助手与引擎修复及前端执行超时
- agent_runtime 模块与 agent_chat API,前端 AgentChat 视图与路由对接 - workflow_engine: code 节点命名空间与 json 引用修复 - llm_service: 工具调用 extra_body(如 DeepSeek) - create_homework_manager_agent / _3 脚本与测试脚本扩展 - frontend: WORKFLOW_EXECUTION_HTTP_TIMEOUT_MS、AgentChatPreview/MainLayout 等 - 文档:架构说明与自主 Agent 改造完成情况 Made-with: Cursor
This commit is contained in:
32
backend/app/agent_runtime/__init__.py
Normal file
32
backend/app/agent_runtime/__init__.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""
|
||||
Agent Runtime — 自主 AI Agent 核心运行时。
|
||||
|
||||
提供 ReAct 循环驱动的自主 Agent,支持:
|
||||
- 工具调用(复用已有 ToolRegistry)
|
||||
- 分层记忆(工作记忆 + 长期记忆)
|
||||
- 多模型(OpenAI / DeepSeek)
|
||||
- 可嵌入工作流节点或独立运行
|
||||
"""
|
||||
from app.agent_runtime.core import AgentRuntime
|
||||
from app.agent_runtime.schemas import (
|
||||
AgentConfig,
|
||||
AgentResult,
|
||||
AgentLLMConfig,
|
||||
AgentToolConfig,
|
||||
AgentMemoryConfig,
|
||||
)
|
||||
from app.agent_runtime.context import AgentContext
|
||||
from app.agent_runtime.memory import AgentMemory
|
||||
from app.agent_runtime.tool_manager import AgentToolManager
|
||||
|
||||
__all__ = [
|
||||
"AgentRuntime",
|
||||
"AgentConfig",
|
||||
"AgentResult",
|
||||
"AgentLLMConfig",
|
||||
"AgentToolConfig",
|
||||
"AgentMemoryConfig",
|
||||
"AgentContext",
|
||||
"AgentMemory",
|
||||
"AgentToolManager",
|
||||
]
|
||||
Reference in New Issue
Block a user