28 lines
829 B
Python
28 lines
829 B
Python
"""
|
|
节点:解析 / 补问阶段(骨架)。
|
|
|
|
正式职责将是:触发字段合同检查与补问等待;本文件不抽字段、不调模型。
|
|
线程:仅在 Worker Graph 槽内执行,禁止占用企微回调线程。
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import logging
|
|
from typing import Any
|
|
|
|
from agent.graph.state import InquiryGraphState
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
def node_parse_clarify(state: InquiryGraphState) -> dict[str, Any]:
|
|
"""
|
|
骨架节点:标记 phase=parse_clarify,不产生业务副作用。
|
|
|
|
参数:当前 checkpoint 状态。
|
|
返回:状态增量(合并进 checkpoint)。
|
|
"""
|
|
thread_id = state.get("thread_id") or ""
|
|
logger.info("graph.node parse_clarify thread_id=%s(骨架无业务)", thread_id)
|
|
return {"phase": "parse_clarify"}
|