[KongchangAI]
ConceptresolveCustomer工具函数

resolveCustomer

A Python utility function defined in the article tutorial that wraps the M|BOX fuzzy matching logic. It is intended for AI agents to invoke in order to perform deterministic customer identity resolution, returning candidate records and field-level scores.

Timeline (last 90 days)

Oct 28

The resolveCustomer function takes four parameters—first name, last name, company, city—internally calls index.match to return the top three candidates with their field-level scores, and empty-string fields are excluded from the total score calculation.

Unverified50%
Oct 28

The tutorial wraps resolveCustomer as a function tool of the OpenAI Agent SDK; the SDK automatically generates the JSON schema from the docstring, and each parameter becomes a string property.

Unverified50%
Oct 28

The Agent's system instructions require: always call resolveCustomer, never guess a customer ID, pause and ask for more detail when the top score is below 80 or two candidates are within 10 points of each other, and the model temperature is set to 0.

Unverified50%

All Facts (3)

Source Articles