Files
inquiry_robot/inquiry-agent/agent/graph/nodes/create_order.py
T

25 lines
640 B
Python

"""
节点:建单准备(骨架)。
正式职责将是:调用主账建单 API;六态成功只认主账返回,图成功不能冒充。
本文件不写 MySQL、不直连 TMS。
"""
from __future__ import annotations
import logging
from typing import Any
from agent.graph.state import InquiryGraphState
logger = logging.getLogger(__name__)
def node_create_order(state: InquiryGraphState) -> dict[str, Any]:
"""骨架:仅标记 phase=create_order。"""
logger.info(
"graph.node create_order thread_id=%s(骨架无建单)",
state.get("thread_id") or "",
)
return {"phase": "create_order"}