Files
inquiry_robot/inquiry-agent/agent/handlers/close_deal.py
T

31 lines
590 B
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.
"""
意图:成交 / 未成交(骨架)。
正式:调主账闭环 API,带幂等键;图成功 ≠ 主账成功。
"""
from __future__ import annotations
import logging
logger = logging.getLogger(__name__)
def handle_close_deal(
*,
sender_id: str,
inquiry_no: str,
outcome: str,
) -> None:
"""
outcome:won | lost 等;骨架不写主账。
"""
if not sender_id or not inquiry_no:
return
logger.info(
"handler.close_deal stub sender=%s inquiry=%s outcome=%s",
sender_id,
inquiry_no,
outcome,
)