@progress/kendo-angular-conversational-ui
Version:
Kendo UI for Angular Conversational UI components
42 lines (41 loc) • 1.31 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* An interface for the AIPrompt outputs rendered in the Output View.
*/
export interface PromptOutput {
/**
* The unique identifier of the prompt output.
*/
id: number | string;
/**
* The text content of the prompt output.
*/
output: string;
/**
* The prompt that initiated the output generation.
*/
prompt: string;
/**
* An optional custom title for the prompt section.
*/
title?: string;
/**
* Specifies if the prompt generation was initiated via the retry button.
*/
isRetry?: boolean;
/**
* Optionally specifies a command id, if the prompt generation was triggered via a command.
*/
commandId?: string | number;
/**
* Optionally specifies the rating for the prompt output.
*/
rating?: PromptOutputRating;
}
/**
* Represents the rating of the prompt output.
*/
export type PromptOutputRating = "positive" | "negative";