feat(v2): 实现SQLite对公租赁经验加工与卡片预审轨迹闭环
This commit is contained in:
@@ -15,6 +15,7 @@ from __future__ import annotations
|
||||
from contracts.prescreen import EventOutcome
|
||||
from contracts.trajectory import ReviewOutcome, TrajectoryStep
|
||||
from services import assistant_store as store
|
||||
from services.trajectory_details import step_details
|
||||
|
||||
KIND = "review_outcome"
|
||||
DEFAULT_PAGE = 50
|
||||
@@ -82,6 +83,7 @@ def replay(db, project_id: str, run_id: str, cursor: str | None = None,
|
||||
"run_id": run_id, "project_id": project_id, "status": run.get("status"),
|
||||
"snapshot_id": run.get("input_snapshot_id"),
|
||||
"steps": window,
|
||||
"details": {step["id"]: step_details(run).get(step["id"], {}) for step in window},
|
||||
"next_cursor": str(end) if end < len(steps) else None,
|
||||
"read_only": True,
|
||||
"note": "轨迹只记录可观察动作与版本;不包含模型内部推理过程",
|
||||
|
||||
Reference in New Issue
Block a user