The arguments for creating the user friction evaluator.
Optionalchoices?: ClassificationChoicesMapOptionalinputMapping?: ObjectMapping<RecordType>The mapping of the input to evaluate to the shape that the evaluator expects
Optionalname?: stringOptionaloptimizationDirection?: OptimizationDirectionOptionalpromptTemplate?: PromptTemplateOptionaltelemetry?: TelemetryConfigAn evaluator function that takes a UserFrictionEvaluationRecord and returns a classification result indicating whether the latest user message expresses friction or no friction.
Creates a user friction evaluator function.
This function returns an evaluator that detects expressed user friction with an assistant's preceding behavior, such as corrections, retries, frustration, and challenges to unrequested or unexplained actions.