chore/ 删除无用文件
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user