[控场AI]
概念resolveCustomer工具函数

resolveCustomer

文章教程中定义的Python工具函数,封装M|BOX模糊匹配逻辑,供AI Agent调用完成确定性客户身份解析,返回候选记录及字段级评分

时间轴 (近 90 天)

10月28日

resolveCustomer函数接受first name、last name、company、city四个参数,内部调用index.match返回前三个候选及其字段级评分,空字符串字段被排除在总分计算之外。

待验证50%
10月28日

教程使用OpenAI Agent SDK的function tool包装resolveCustomer,SDK自动从docstring生成JSON schema,每个参数成为string属性。

待验证50%
10月28日

Agent系统指令要求:始终调用resolveCustomer、绝不猜测customer ID、当最高分低于80或两个候选分差小于10分时暂停并追问更多细节,且模型temperature设为0。

待验证50%

全部知识事实 (3)

来源文章