确定运输方式前的多句询价带到所选方式并按该方式抽字段;成交已定后放舱不再推跟进,未成交原因不再被当成新询价。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -275,10 +275,15 @@ def _merge_spoken_collab(text: str, facts: dict[str, str]) -> dict[str, str]:
|
||||
|
||||
不覆盖已有询价键。不拿去补问、不挡查价。
|
||||
"""
|
||||
from agent.schema.field_validate import harvest_oral_collab, normalize_facts
|
||||
from agent.schema.field_validate import (
|
||||
harvest_oral_collab,
|
||||
harvest_spoken_trade_term,
|
||||
normalize_facts,
|
||||
)
|
||||
|
||||
merged = dict(facts or {})
|
||||
extra = dict(harvest_oral_collab(text))
|
||||
extra.update(harvest_spoken_trade_term(text))
|
||||
extra.update(normalize_facts(harvest_collab_labels(text)))
|
||||
for key, val in extra.items():
|
||||
if val and not str(merged.get(key) or "").strip():
|
||||
|
||||
Reference in New Issue
Block a user