clwoz-models
Version:
Models for ConversationLearner
107 lines (106 loc) • 3.6 kB
TypeScript
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
export declare enum ReplayErrorType {
ActionUndefined = "ActionUndefined",
ActionStub = "ActionStub",
EntityUndefined = "EntityUndefined",
APIBadCard = "APIBadCard",
APIMalformed = "APIMalformed",
APIPlaceholder = "APIPlaceholder",
APIUndefined = "APIUndefined",
APIException = "APIException",
EntityEmpty = "EntityEmpty",
EntityUnexpectedMultivalue = "EntityUnexpectedMultivalue",
ActionUnavailable = "ActionUnavailable",
ActionAfterWait = "ActionAfterWait",
TwoUserInputs = "TwoUserInputs",
InputAfterNonWait = "InputAfterNonWait",
Exception = "Exception",
EntityDiscrepancy = "EntityDiscrepancy",
SetEntityException = "SetEntityException",
DispatchException = "DispatchException",
ChangeModelException = "ChangeModelException",
TranscriptValidationError = "TranscriptValidationError"
}
export declare enum ReplayErrorLevel {
WARNING = "WARNING",
ERROR = "ERROR",
BLOCKING = "BLOCKING"
}
export declare class ReplayError {
type: ReplayErrorType;
errorLevel: ReplayErrorLevel;
constructor(type: ReplayErrorType, errorLevel: ReplayErrorLevel);
}
export declare class ReplayErrorActionUndefined extends ReplayError {
lastUserInput: string;
constructor(lastUserInput: string);
}
export declare class ReplayErrorActionStub extends ReplayError {
lastUserInput: string;
constructor(lastUserInput: string);
}
export declare class ReplayErrorEntityUndefined extends ReplayError {
value: string;
constructor(value: string);
}
export declare class ReplayErrorAPIBadCard extends ReplayError {
constructor();
}
export declare class ReplayErrorAPIMalformed extends ReplayError {
constructor();
}
export declare class ReplayErrorAPIPlaceholder extends ReplayError {
constructor();
}
export declare class ReplayErrorAPIUndefined extends ReplayError {
value: string;
constructor(value: string);
}
export declare class ReplayErrorAPIException extends ReplayError {
constructor();
}
export declare class ReplayErrorEntityEmpty extends ReplayError {
values: string[];
constructor(values: string[]);
}
export declare class EntityUnexpectedMultivalue extends ReplayError {
entityName: string;
constructor(entityName: string);
}
export declare class ReplayErrorActionUnavailable extends ReplayError {
lastUserInput: string;
constructor(lastUserInput: string);
}
export declare class ReplayErrorEntityDiscrepancy extends ReplayError {
lastUserInput: string;
originalEntities: string[];
newEntities: string[];
constructor(lastUserInput: string, originalEntities: string[], newEntities: string[]);
}
export declare class ReplayErrorActionAfterWait extends ReplayError {
constructor();
}
export declare class ReplayErrorTwoUserInputs extends ReplayError {
constructor();
}
export declare class ReplayErrorInputAfterNonWait extends ReplayError {
constructor();
}
export declare class ReplayErrorException extends ReplayError {
constructor();
}
export declare class ReplayErrorTranscriptValidation extends ReplayError {
constructor();
}
export declare class ReplaySetEntityException extends ReplayError {
constructor();
}
export declare class ReplayDispatchException extends ReplayError {
constructor();
}
export declare class ReplayChangeModelException extends ReplayError {
constructor();
}