clwoz-models
Version:
Models for ConversationLearner
23 lines (22 loc) • 726 B
TypeScript
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Information about a callback action.
* logicArguments and renderArguments are only valid if the appropriate is_Provided field is true.
*/
export interface Callback {
name: string;
logicArguments: string[];
isLogicFunctionProvided: boolean;
renderArguments: string[];
isRenderFunctionProvided: boolean;
mockResults: CallbackResult[];
}
export declare type EntityValue = string | number | boolean | object;
export interface CallbackResult {
name: string;
entityValues: Record<string, EntityValue | EntityValue[] | null | undefined>;
returnValue: unknown;
}