落地并存测服全端:智能体 Graph/路由、后台切 8180、主账与部署脚本齐备,便于线上重发与验收。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""
|
||||
RouteDecision 值对象。
|
||||
|
||||
本文件只放冻结路由结论;解析逻辑见 ordered_actions.py;副作用在 handlers。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RouteDecision:
|
||||
"""
|
||||
唯一路由结论(一条入站对应一个)。
|
||||
|
||||
intent:如 ordinary_text_inquiry / attachment_inquiry / reject_no_sender
|
||||
thread_id:继续本单时填工单号;新开可空由 Handler 生成。
|
||||
"""
|
||||
|
||||
intent: str
|
||||
thread_id: str = ""
|
||||
confidence: float = 0.0
|
||||
raw: dict[str, Any] = field(default_factory=dict)
|
||||
Reference in New Issue
Block a user