/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ScoreInput, ScoredAction, ScoreResponse } from './Score'; import { LabeledEntity } from './Entity'; import { AppDefinition } from './AppDefinition'; import { FilledEntity } from './FilledEntity'; export declare enum SenderType { User = 0, Bot = 1 } export interface TextVariation { text: string; labelEntities: LabeledEntity[]; } export interface TrainExtractorStep { textVariations: TextVariation[]; } export interface LogicResult { logicValue: string | undefined; changedFilledEntities: FilledEntity[]; } export interface LogicAPIError { APIError: string; } export interface TrainScorerStep { input: ScoreInput; labelAction: string | undefined; logicResult: LogicResult | undefined; scoredAction: ScoredAction | undefined; uiScoreResponse?: ScoreResponse; } export interface TrainRound { extractorStep: TrainExtractorStep; scorerSteps: TrainScorerStep[]; } export declare enum Validity { VALID = "valid", INVALID = "invalid", UNKNOWN = "unknown", WARNING = "warning" } export interface TrainDialogInput { sourceLogDialogId: string; rounds: TrainRound[]; definitions?: AppDefinition | null; validity?: Validity; } export interface TrainDialog extends TrainDialogInput { createdDateTime: string; lastModifiedDateTime: string; trainDialogId: string; version: number; packageCreationId: number; packageDeletionId: number; initialFilledEntities: FilledEntity[]; tags: string[]; description: string; } export interface TrainResponse { packageId: number; trainingStatus: string; trainDialogId: string; } export interface TrainDialogList { trainDialogs: TrainDialog[]; definitions?: AppDefinition; } export interface TrainDialogIdList { trainDialogIds: string[]; } export interface CreateTeachParams { contextDialog: TrainRound[]; sourceLogDialogId?: string; initialFilledEntities: FilledEntity[]; }