Files
inquiry_robot/inquiry-agent/agent/graph/pauses.py
T

30 lines
1.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
Graph 停靠点名称(interrupt_before)。
本文件职责:集中声明 pause_* 节点名,与 prompt/14「停点中断」对齐。
调用时机:builder.compile(interrupt_before=INTERRUPT_BEFORE)。
禁止:在停点名上写业务 if/else;业务唤醒校验走 waitVersion(runtime/wake)。
"""
from __future__ import annotations
# 节点名 = builder 里 add_node 的名字;interrupt_before 表示「跑该节点前停下等人/等文件」
PAUSE_PARSE_CLARIFY = "pause_parse_clarify"
PAUSE_CREATE_ORDER = "pause_create_order"
PAUSE_QUERY_QUOTE = "pause_query_quote"
PAUSE_COLLABORATE = "pause_collaborate"
PAUSE_GENERATE_QUOTE = "pause_generate_quote"
PAUSE_ADOPT_ADJUST = "pause_adopt_adjust"
PAUSE_CLOSE_DEAL = "pause_close_deal"
# 骨架:全部标为可中断;后续可按业务收窄列表
INTERRUPT_BEFORE: tuple[str, ...] = (
PAUSE_PARSE_CLARIFY,
PAUSE_CREATE_ORDER,
PAUSE_QUERY_QUOTE,
PAUSE_COLLABORATE,
PAUSE_GENERATE_QUOTE,
PAUSE_ADOPT_ADJUST,
PAUSE_CLOSE_DEAL,
)