feat:优化增量执行、工具调用容错与评测体系

This commit is contained in:
2026-10-11 04:40:25 -07:00
parent cd5a2b4d8f
commit dadd797391
22 changed files with 2198 additions and 578 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
"""异步执行与恢复大屏任务,当前使用单进程内存检查点"""
from contextlib import aclosing
from datetime import datetime, timezone
from datetime import UTC, datetime
from uuid import uuid4
from langgraph.types import Command
@@ -201,7 +201,7 @@ class AgentService:
prompt=state["request"]["prompt"],
outcome=result.status,
summary=self._summarize(result),
created_at=datetime.now(timezone.utc),
created_at=datetime.now(UTC),
)
)
except Exception:
@@ -210,7 +210,7 @@ class AgentService:
@staticmethod
def _result(state, thread_id):
waiting = bool(state.get("__interrupt__"))
# 只交付完成状态下的动作;actions 是 agent 最后一次成功提交、已通过模拟执行的整批动作
# 只交付完成状态下的动作;actions 是 agent 各次成功提交的动作按顺序拼接,在原始大屏上依次执行得到最终大屏
deliver = state["status"] == "completed"
return AgentResult(