chore/ 删除无用文件

This commit is contained in:
Kevin
2026-03-19 14:36:14 +08:00
parent 2f60858c9c
commit c6e07ce5ca
135 changed files with 2111 additions and 4510 deletions

View File

@@ -1,6 +1,7 @@
"""
共享状态 Schema对话 Agent 与后台 Agent 共用)
"""
from __future__ import annotations
from typing import Dict, List, Optional
@@ -10,12 +11,14 @@ from pydantic import BaseModel, Field
class SlotData(BaseModel):
"""Slot 数据结构"""
snippet: Optional[str] = None
segment_ids: List[str] = Field(default_factory=list)
class MemoirStateSchema(BaseModel):
"""回忆录状态"""
stage_order: List[str]
current_stage: str
covered_stages: List[str]
@@ -38,9 +41,7 @@ class MemoirStateSchema(BaseModel):
"""获取指定阶段已填充的槽位及其内容"""
stage_slots = self.slots.get(stage, {})
return {
key: value.snippet
for key, value in stage_slots.items()
if value.snippet
key: value.snippet for key, value in stage_slots.items() if value.snippet
}
def all_stages_coverage(self) -> Dict[str, Dict]: