clwoz-models
Version:
Models for ConversationLearner
48 lines (47 loc) • 1.37 kB
TypeScript
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Memory } from './Memory';
import { ScoreResponse, ScoreInput } from './Score';
import { ReplayError } from './ReplayError';
import { UIScoreInput } from './UI';
import { ActionBase } from './Action';
import { ExtractResponse } from './Extract';
export declare enum DialogMode {
Extractor = "Extract",
Scorer = "Score",
Wait = "Wait",
EndSession = "EndSession"
}
export interface Teach {
teachId: string;
trainDialogId: string;
createdDatetime: string | undefined;
lastQueryDatetime: string | undefined;
packageId: number | undefined;
}
export interface TeachResponse {
packageId: number;
teachId: string;
trainDialogId: string;
}
export interface TeachList {
teaches: Teach[];
}
export interface TeachIdList {
teachIds: string[];
}
export interface TeachWithActivities {
teach: Teach | undefined;
activities: any[];
memories: Memory[];
prevMemories: Memory[];
dialogMode: DialogMode;
scoreResponse: ScoreResponse | undefined;
scoreInput: ScoreInput | undefined;
extractResponse: ExtractResponse | undefined;
uiScoreInput: UIScoreInput | undefined;
lastAction: ActionBase | null;
replayErrors: ReplayError[];
}