@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
25 lines (24 loc) • 627 B
TypeScript
export interface IIntentResponse {
query: string;
topScoringIntent: ISingleIntent;
entities: IIntentEntity[];
}
export interface IIntentEntity {
entity: string;
type: string;
startIndex: number;
endIndex: number;
score: number;
}
export interface ISingleIntent {
intent: string;
score: number;
}
export declare class IntentResponse implements IIntentResponse {
private privIntentResponse;
private constructor();
static fromJSON(json: string): IntentResponse;
readonly query: string;
readonly topScoringIntent: ISingleIntent;
readonly entities: IIntentEntity[];
}