UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

30 lines 1.25 kB
import { EntityAssignment } from './entityAssignment'; /** * Compare two entity assignments to determine their relative priority. * * @remarks * Compare by event: assignEntity, chooseProperty, chooseEntity * Then by operations in order from schema (usually within assignEntity). * Then by unexpected before expected. * Then by oldest turn first. * Then by minimum position in utterance. */ export declare class EntityAssignmentComparer { private operationPreference; private static eventPreference; /** * Initializes a new instance of the [EntityAssignmentComparer](xref:botbuilder-dialogs-adaptive.EntityAssignmentComparer) class. * * @param operationPreference Preference on operations. */ constructor(operationPreference: string[]); /** * Compares [EntityAssignment](xref:botbuilder-dialogs-adaptive.EntityAssignment) x against y to determine its relative priority. * * @param x First entity assigment to compare. * @param y Second entity assigment to compare. * @returns Numerical value representing x's relative priority. */ compare(x: Partial<EntityAssignment>, y: Partial<EntityAssignment>): number; } //# sourceMappingURL=entityAssignmentComparer.d.ts.map