角色业务范围收紧工单与模板;报价日期不当费用;未选舱不迁已报价;另开一票可清违禁 hold
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -138,6 +138,39 @@ class LandTextInquiryFlow(SeaTextInquiryFlow):
|
||||
sess.work_order_no or "-",
|
||||
)
|
||||
sess = None
|
||||
# #region agent log
|
||||
try:
|
||||
import json as _json
|
||||
import time as _time
|
||||
from pathlib import Path as _Path
|
||||
|
||||
with _Path(r"d:\own\友通达询价智能体(新)\debug-d331ea.log").open("a", encoding="utf-8") as _dbg:
|
||||
_dbg.write(
|
||||
_json.dumps(
|
||||
{
|
||||
"sessionId": "d331ea",
|
||||
"runId": "post-fix",
|
||||
"hypothesisId": "D",
|
||||
"location": "land_text_flow.py:on_text:sess_keep",
|
||||
"message": "land sess keep-or-clear",
|
||||
"data": {
|
||||
"phase_in": phase,
|
||||
"kept_sess": sess is not None,
|
||||
"in_front": phase in _LAND_FRONT,
|
||||
"sensitive_hold": (
|
||||
str(getattr(sess, "sensitive_hold", "") or "")[:120] if sess else ""
|
||||
),
|
||||
"text": (text or "")[:120],
|
||||
},
|
||||
"timestamp": int(_time.time() * 1000),
|
||||
},
|
||||
ensure_ascii=False,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
# #endregion
|
||||
|
||||
snap = extract_inquiry_snapshot(
|
||||
text,
|
||||
|
||||
Reference in New Issue
Block a user