@progress/kendo-angular-conversational-ui 25.0.0-develop.1 → 25.0.0-develop.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +3077 -406
- package/index.d.ts +1073 -93
- package/package-metadata.mjs +2 -2
- package/package.json +16 -14
package/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ import { FileRestrictions, SelectEvent, FileInfo, FileSelectComponent } from '@p
|
|
|
18
18
|
import { LicenseMessage } from '@progress/kendo-licensing';
|
|
19
19
|
import { ControlValueAccessor } from '@angular/forms';
|
|
20
20
|
import { PopupSettings, PopupService, PopupRef } from '@progress/kendo-angular-popup';
|
|
21
|
+
import { BadgeThemeColor } from '@progress/kendo-angular-indicators';
|
|
22
|
+
import { PopoverAnchorDirective } from '@progress/kendo-angular-tooltip';
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* Specifies the button type of a quick action ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/chat/message)).
|
|
@@ -1251,8 +1253,12 @@ declare class Messages$3 extends ComponentMessages {
|
|
|
1251
1253
|
* Sets the aria-label for the **Speech to Text** button.
|
|
1252
1254
|
*/
|
|
1253
1255
|
speechToTextButton: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Sets the aria-label for the **Toolbar** element.
|
|
1258
|
+
*/
|
|
1259
|
+
toolbarLabel: string;
|
|
1254
1260
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages$3, never>;
|
|
1255
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages$3, never, never, { "promptView": { "alias": "promptView"; "required": false; }; "outputView": { "alias": "outputView"; "required": false; }; "generateOutput": { "alias": "generateOutput"; "required": false; }; "promptPlaceholder": { "alias": "promptPlaceholder"; "required": false; }; "copyOutput": { "alias": "copyOutput"; "required": false; }; "retryGeneration": { "alias": "retryGeneration"; "required": false; }; "outputTitle": { "alias": "outputTitle"; "required": false; }; "outputRetryTitle": { "alias": "outputRetryTitle"; "required": false; }; "promptSuggestions": { "alias": "promptSuggestions"; "required": false; }; "speechToTextButton": { "alias": "speechToTextButton"; "required": false; }; }, {}, never, never, true, never>;
|
|
1261
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages$3, never, never, { "promptView": { "alias": "promptView"; "required": false; }; "outputView": { "alias": "outputView"; "required": false; }; "generateOutput": { "alias": "generateOutput"; "required": false; }; "promptPlaceholder": { "alias": "promptPlaceholder"; "required": false; }; "copyOutput": { "alias": "copyOutput"; "required": false; }; "retryGeneration": { "alias": "retryGeneration"; "required": false; }; "outputTitle": { "alias": "outputTitle"; "required": false; }; "outputRetryTitle": { "alias": "outputRetryTitle"; "required": false; }; "promptSuggestions": { "alias": "promptSuggestions"; "required": false; }; "speechToTextButton": { "alias": "speechToTextButton"; "required": false; }; "toolbarLabel": { "alias": "toolbarLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
1256
1262
|
}
|
|
1257
1263
|
|
|
1258
1264
|
/**
|
|
@@ -3279,8 +3285,16 @@ declare class Messages$2 extends ComponentMessages {
|
|
|
3279
3285
|
* Sets the title of the button that unpins a pinned message.
|
|
3280
3286
|
*/
|
|
3281
3287
|
unpinMessageTitle: string;
|
|
3288
|
+
/**
|
|
3289
|
+
* Sets the aria-label for the button that resends a failed message.
|
|
3290
|
+
*/
|
|
3291
|
+
resendButtonTitle: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* Sets the aria-label for the attached files list.
|
|
3294
|
+
*/
|
|
3295
|
+
attachedFilesLabel: string;
|
|
3282
3296
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages$2, never>;
|
|
3283
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages$2, "kendoConversationalUIMessages", never, { "deletedMessageSenderText": { "alias": "deletedMessageSenderText"; "required": false; }; "deletedMessageReceiverText": { "alias": "deletedMessageReceiverText"; "required": false; }; "messageFailedText": { "alias": "messageFailedText"; "required": false; }; "downloadAllFilesText": { "alias": "downloadAllFilesText"; "required": false; }; "messagePlaceholder": { "alias": "messagePlaceholder"; "required": false; }; "messageBoxTitle": { "alias": "messageBoxTitle"; "required": false; }; "actionButtonTitle": { "alias": "actionButtonTitle"; "required": false; }; "messageListLabel": { "alias": "messageListLabel"; "required": false; }; "messageBoxInputLabel": { "alias": "messageBoxInputLabel"; "required": false; }; "messageAttachmentLeftArrow": { "alias": "messageAttachmentLeftArrow"; "required": false; }; "messageAttachmentRightArrow": { "alias": "messageAttachmentRightArrow"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "removeReplyTitle": { "alias": "removeReplyTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "expandTitle": { "alias": "expandTitle"; "required": false; }; "collapseTitle": { "alias": "collapseTitle"; "required": false; }; "fileActionsTitle": { "alias": "fileActionsTitle"; "required": false; }; "nextSuggestionsButtonTitle": { "alias": "nextSuggestionsButtonTitle"; "required": false; }; "previousSuggestionsButtonTitle": { "alias": "previousSuggestionsButtonTitle"; "required": false; }; "unpinMessageTitle": { "alias": "unpinMessageTitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
3297
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages$2, "kendoConversationalUIMessages", never, { "deletedMessageSenderText": { "alias": "deletedMessageSenderText"; "required": false; }; "deletedMessageReceiverText": { "alias": "deletedMessageReceiverText"; "required": false; }; "messageFailedText": { "alias": "messageFailedText"; "required": false; }; "downloadAllFilesText": { "alias": "downloadAllFilesText"; "required": false; }; "messagePlaceholder": { "alias": "messagePlaceholder"; "required": false; }; "messageBoxTitle": { "alias": "messageBoxTitle"; "required": false; }; "actionButtonTitle": { "alias": "actionButtonTitle"; "required": false; }; "messageListLabel": { "alias": "messageListLabel"; "required": false; }; "messageBoxInputLabel": { "alias": "messageBoxInputLabel"; "required": false; }; "messageAttachmentLeftArrow": { "alias": "messageAttachmentLeftArrow"; "required": false; }; "messageAttachmentRightArrow": { "alias": "messageAttachmentRightArrow"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "removeReplyTitle": { "alias": "removeReplyTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "expandTitle": { "alias": "expandTitle"; "required": false; }; "collapseTitle": { "alias": "collapseTitle"; "required": false; }; "fileActionsTitle": { "alias": "fileActionsTitle"; "required": false; }; "nextSuggestionsButtonTitle": { "alias": "nextSuggestionsButtonTitle"; "required": false; }; "previousSuggestionsButtonTitle": { "alias": "previousSuggestionsButtonTitle"; "required": false; }; "unpinMessageTitle": { "alias": "unpinMessageTitle"; "required": false; }; "resendButtonTitle": { "alias": "resendButtonTitle"; "required": false; }; "attachedFilesLabel": { "alias": "attachedFilesLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
3284
3298
|
}
|
|
3285
3299
|
|
|
3286
3300
|
/**
|
|
@@ -3626,6 +3640,9 @@ declare class InlineAIPromptContentComponent implements OnDestroy, AfterViewInit
|
|
|
3626
3640
|
contextMenu: ContextMenuComponent;
|
|
3627
3641
|
calculateMeasurement: (value: string | number) => string;
|
|
3628
3642
|
commandMenuIcon: SVGIcon;
|
|
3643
|
+
get textareaAriaAttributes(): {
|
|
3644
|
+
[key: string]: string;
|
|
3645
|
+
} | null;
|
|
3629
3646
|
sendIcon: SVGIcon;
|
|
3630
3647
|
stopGenerationIcon: SVGIcon;
|
|
3631
3648
|
isListening: boolean;
|
|
@@ -3894,11 +3911,15 @@ declare class Messages extends ComponentMessages {
|
|
|
3894
3911
|
*/
|
|
3895
3912
|
removeFileTitle: string;
|
|
3896
3913
|
/**
|
|
3897
|
-
*
|
|
3914
|
+
* Sets the aria-label for the internal input/textarea element.
|
|
3898
3915
|
*/
|
|
3899
3916
|
messageBoxTitle: string;
|
|
3917
|
+
/**
|
|
3918
|
+
* Sets the aria-label for the attached files list.
|
|
3919
|
+
*/
|
|
3920
|
+
attachedFilesLabel: string;
|
|
3900
3921
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
3901
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "actionButtonTitle": { "alias": "actionButtonTitle"; "required": false; }; "stopGeneratingTitle": { "alias": "stopGeneratingTitle"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "messageBoxTitle": { "alias": "messageBoxTitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
3922
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "fileSelectButtonTitle": { "alias": "fileSelectButtonTitle"; "required": false; }; "actionButtonTitle": { "alias": "actionButtonTitle"; "required": false; }; "stopGeneratingTitle": { "alias": "stopGeneratingTitle"; "required": false; }; "speechToTextButtonTitle": { "alias": "speechToTextButtonTitle"; "required": false; }; "removeFileTitle": { "alias": "removeFileTitle"; "required": false; }; "messageBoxTitle": { "alias": "messageBoxTitle"; "required": false; }; "attachedFilesLabel": { "alias": "attachedFilesLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
3902
3923
|
}
|
|
3903
3924
|
|
|
3904
3925
|
/**
|
|
@@ -4167,136 +4188,1077 @@ declare class PromptBoxFileSelectButtonComponent extends PromptBoxBaseTool {
|
|
|
4167
4188
|
}
|
|
4168
4189
|
|
|
4169
4190
|
/**
|
|
4170
|
-
* Represents the
|
|
4191
|
+
* Represents the template for the Reasoning body. Replaces the `content` input when supplied.
|
|
4171
4192
|
*
|
|
4172
4193
|
* @example
|
|
4173
|
-
* ```
|
|
4174
|
-
*
|
|
4175
|
-
*
|
|
4176
|
-
*
|
|
4177
|
-
*
|
|
4178
|
-
*
|
|
4179
|
-
* @NgModule({
|
|
4180
|
-
* declarations: [AppComponent],
|
|
4181
|
-
* imports: [BrowserModule, ConversationalUIModule],
|
|
4182
|
-
* bootstrap: [AppComponent]
|
|
4183
|
-
* })
|
|
4184
|
-
* export class AppModule {}
|
|
4194
|
+
* ```html
|
|
4195
|
+
* <kendo-reasoning>
|
|
4196
|
+
* <ng-template kendoReasoningContentTemplate>
|
|
4197
|
+
* <p>Custom reasoning content.</p>
|
|
4198
|
+
* </ng-template>
|
|
4199
|
+
* </kendo-reasoning>
|
|
4185
4200
|
* ```
|
|
4186
4201
|
*/
|
|
4187
|
-
declare class
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
static
|
|
4202
|
+
declare class ReasoningContentTemplateDirective {
|
|
4203
|
+
templateRef: TemplateRef<any>;
|
|
4204
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4205
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReasoningContentTemplateDirective, never>;
|
|
4206
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReasoningContentTemplateDirective, "[kendoReasoningContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
4191
4207
|
}
|
|
4192
4208
|
|
|
4193
4209
|
/**
|
|
4194
|
-
* Represents the [
|
|
4210
|
+
* Represents the [Kendo UI Reasoning component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/reasoning).
|
|
4211
|
+
* Displays a model's reasoning trace as a single disclosure block, separately from the final answer.
|
|
4195
4212
|
*
|
|
4196
4213
|
* @example
|
|
4197
|
-
* ```
|
|
4198
|
-
*
|
|
4199
|
-
*
|
|
4200
|
-
*
|
|
4201
|
-
*
|
|
4202
|
-
*
|
|
4203
|
-
* @NgModule({
|
|
4204
|
-
* imports: [BrowserModule, InlineAIPromptModule],
|
|
4205
|
-
* declarations: [AppComponent],
|
|
4206
|
-
* bootstrap: [AppComponent]
|
|
4207
|
-
* })
|
|
4208
|
-
* export class AppModule {}
|
|
4214
|
+
* ```html
|
|
4215
|
+
* <kendo-reasoning
|
|
4216
|
+
* [expandable]="true"
|
|
4217
|
+
* content="Analyzing the request and forming a plan of action."
|
|
4218
|
+
* ></kendo-reasoning>
|
|
4209
4219
|
* ```
|
|
4210
4220
|
*/
|
|
4211
|
-
declare class
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4221
|
+
declare class ReasoningComponent implements OnDestroy {
|
|
4222
|
+
private localization;
|
|
4223
|
+
/**
|
|
4224
|
+
* Renders the supplied template instead of the `content` input.
|
|
4225
|
+
*
|
|
4226
|
+
* @hidden
|
|
4227
|
+
*/
|
|
4228
|
+
contentTemplate: ReasoningContentTemplateDirective;
|
|
4229
|
+
/**
|
|
4230
|
+
* Sets the main label shown in the expandable header.
|
|
4231
|
+
*
|
|
4232
|
+
* @default 'Reasoning'
|
|
4233
|
+
*/
|
|
4234
|
+
set label(value: string);
|
|
4235
|
+
get label(): string;
|
|
4236
|
+
/**
|
|
4237
|
+
* Sets the secondary descriptive text shown next to the label.
|
|
4238
|
+
*/
|
|
4239
|
+
set secondaryLabel(value: string);
|
|
4240
|
+
get secondaryLabel(): string;
|
|
4241
|
+
/**
|
|
4242
|
+
* Sets the text content displayed in the reasoning body.
|
|
4243
|
+
*/
|
|
4244
|
+
set content(value: string);
|
|
4245
|
+
get content(): string;
|
|
4246
|
+
/**
|
|
4247
|
+
* Sets the name of a font icon shown in the expandable header.
|
|
4248
|
+
*
|
|
4249
|
+
* @default 'sparkles'
|
|
4250
|
+
*/
|
|
4251
|
+
set icon(value: string);
|
|
4252
|
+
get icon(): string;
|
|
4253
|
+
/**
|
|
4254
|
+
* Sets the SVG icon shown in the expandable header.
|
|
4255
|
+
*
|
|
4256
|
+
* @default sparklesIcon
|
|
4257
|
+
*/
|
|
4258
|
+
set svgIcon(value: SVGIcon);
|
|
4259
|
+
get svgIcon(): SVGIcon;
|
|
4260
|
+
/**
|
|
4261
|
+
* Sets whether the reasoning block has completed its thinking phase.
|
|
4262
|
+
*
|
|
4263
|
+
* @default false
|
|
4264
|
+
*/
|
|
4265
|
+
set completed(value: boolean);
|
|
4266
|
+
get completed(): boolean;
|
|
4267
|
+
/**
|
|
4268
|
+
* Sets whether the expandable header supports expanding and collapsing the reasoning body.
|
|
4269
|
+
*
|
|
4270
|
+
* @default false
|
|
4271
|
+
*/
|
|
4272
|
+
set expandable(value: boolean);
|
|
4273
|
+
get expandable(): boolean;
|
|
4274
|
+
/**
|
|
4275
|
+
* Sets whether the reasoning body is visible. Ignored when `expandable` is `false`.
|
|
4276
|
+
*
|
|
4277
|
+
* @default false
|
|
4278
|
+
*/
|
|
4279
|
+
set expanded(value: boolean);
|
|
4280
|
+
get expanded(): boolean;
|
|
4281
|
+
/**
|
|
4282
|
+
* Fires when the user expands or collapses the reasoning body through the expandable header.
|
|
4283
|
+
*/
|
|
4284
|
+
expandedChange: EventEmitter<boolean>;
|
|
4285
|
+
get direction(): string;
|
|
4286
|
+
set direction(value: string);
|
|
4287
|
+
private _label;
|
|
4288
|
+
private _secondaryLabel;
|
|
4289
|
+
private _content;
|
|
4290
|
+
private _icon;
|
|
4291
|
+
private _svgIcon;
|
|
4292
|
+
private _completed;
|
|
4293
|
+
private _expandable;
|
|
4294
|
+
private _expanded;
|
|
4295
|
+
private _direction;
|
|
4296
|
+
private subscription;
|
|
4297
|
+
constructor(localization: LocalizationService);
|
|
4298
|
+
ngOnDestroy(): void;
|
|
4299
|
+
/**
|
|
4300
|
+
* @hidden
|
|
4301
|
+
*/
|
|
4302
|
+
handleExpandedChange(expanded: boolean): void;
|
|
4303
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReasoningComponent, never>;
|
|
4304
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReasoningComponent, "kendo-reasoning", ["kendoReasoning"], { "label": { "alias": "label"; "required": false; }; "secondaryLabel": { "alias": "secondaryLabel"; "required": false; }; "content": { "alias": "content"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "completed": { "alias": "completed"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["contentTemplate"], never, true, never>;
|
|
4215
4305
|
}
|
|
4216
4306
|
|
|
4217
4307
|
/**
|
|
4218
|
-
*
|
|
4308
|
+
* Describes a single row rendered inside a `ChainOfThought` component's body.
|
|
4309
|
+
*/
|
|
4310
|
+
interface Thought {
|
|
4311
|
+
/**
|
|
4312
|
+
* Sets a unique identifier for the thought row.
|
|
4313
|
+
*/
|
|
4314
|
+
id: string | number;
|
|
4315
|
+
/**
|
|
4316
|
+
* Sets the main label for the thought step, such as `Read` or `Edited`.
|
|
4317
|
+
*/
|
|
4318
|
+
label?: string;
|
|
4319
|
+
/**
|
|
4320
|
+
* Sets supporting context, such as a file name, command, or line range.
|
|
4321
|
+
*/
|
|
4322
|
+
secondaryLabel?: string;
|
|
4323
|
+
/**
|
|
4324
|
+
* Sets the body of the thought—the detailed explanation or result associated with the step.
|
|
4325
|
+
*/
|
|
4326
|
+
content?: string;
|
|
4327
|
+
/**
|
|
4328
|
+
* Sets the SVG icon that identifies the thought operation or category.
|
|
4329
|
+
*/
|
|
4330
|
+
svgIcon?: SVGIcon;
|
|
4331
|
+
/**
|
|
4332
|
+
* Sets the name of a font icon that identifies the thought operation or category.
|
|
4333
|
+
*/
|
|
4334
|
+
icon?: string;
|
|
4335
|
+
/**
|
|
4336
|
+
* Sets whether the thought row has completed.
|
|
4337
|
+
*/
|
|
4338
|
+
completed: boolean;
|
|
4339
|
+
/**
|
|
4340
|
+
* Sets the number of lines added by the thought, when the step represents an edit.
|
|
4341
|
+
*/
|
|
4342
|
+
linesAdded?: number;
|
|
4343
|
+
/**
|
|
4344
|
+
* Sets the number of lines removed by the thought, when the step represents an edit.
|
|
4345
|
+
*/
|
|
4346
|
+
linesRemoved?: number;
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
/**
|
|
4350
|
+
* Represents the template that replaces each thought row in the `ChainOfThought` component.
|
|
4351
|
+
* The current `Thought` item is available as the `$implicit` template value.
|
|
4219
4352
|
*
|
|
4220
4353
|
* @example
|
|
4221
|
-
* ```
|
|
4222
|
-
*
|
|
4223
|
-
*
|
|
4224
|
-
*
|
|
4225
|
-
*
|
|
4226
|
-
*
|
|
4227
|
-
* this.promptService.open({
|
|
4228
|
-
* popupSettings: { anchor: this.anchor },
|
|
4229
|
-
* placeholder: 'Enter your prompt...'
|
|
4230
|
-
* });
|
|
4231
|
-
* }
|
|
4232
|
-
* }
|
|
4354
|
+
* ```html
|
|
4355
|
+
* <kendo-chainofthought [thoughts]="thoughts">
|
|
4356
|
+
* <ng-template kendoThoughtTemplate let-thought>
|
|
4357
|
+
* <div>{{ thought.label }}</div>
|
|
4358
|
+
* </ng-template>
|
|
4359
|
+
* </kendo-chainofthought>
|
|
4233
4360
|
* ```
|
|
4361
|
+
*/
|
|
4362
|
+
declare class ThoughtTemplateDirective {
|
|
4363
|
+
templateRef: TemplateRef<any>;
|
|
4364
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4365
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThoughtTemplateDirective, never>;
|
|
4366
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThoughtTemplateDirective, "[kendoThoughtTemplate]", never, {}, {}, never, never, true, never>;
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
/**
|
|
4370
|
+
* Represents the [Kendo UI ChainOfThought component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/chain-of-thought).
|
|
4371
|
+
* Groups an ordered sequence of thought rows under a single collapsible summary.
|
|
4372
|
+
*
|
|
4373
|
+
* @example
|
|
4234
4374
|
* ```html
|
|
4235
|
-
* <
|
|
4375
|
+
* <kendo-chainofthought [thoughts]="thoughts" [expandable]="true"></kendo-chainofthought>
|
|
4236
4376
|
* ```
|
|
4237
4377
|
*/
|
|
4238
|
-
declare class
|
|
4239
|
-
private
|
|
4378
|
+
declare class ChainOfThoughtComponent implements OnDestroy {
|
|
4379
|
+
private localization;
|
|
4240
4380
|
/**
|
|
4381
|
+
* Replaces the rendering of each thought row. The current `Thought` item is available as the `$implicit` template value.
|
|
4382
|
+
*
|
|
4241
4383
|
* @hidden
|
|
4242
4384
|
*/
|
|
4243
|
-
|
|
4385
|
+
thoughtTemplate: ThoughtTemplateDirective;
|
|
4244
4386
|
/**
|
|
4245
|
-
*
|
|
4387
|
+
* Sets the ordered thought rows rendered inside the body.
|
|
4246
4388
|
*
|
|
4247
|
-
* @
|
|
4248
|
-
* @returns {PopupRef} A reference to the popup.
|
|
4389
|
+
* @default []
|
|
4249
4390
|
*/
|
|
4250
|
-
|
|
4391
|
+
set thoughts(value: Thought[]);
|
|
4392
|
+
get thoughts(): Thought[];
|
|
4251
4393
|
/**
|
|
4252
|
-
*
|
|
4394
|
+
* Sets the main label shown in the expandable header.
|
|
4253
4395
|
*/
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4396
|
+
set label(value: string);
|
|
4397
|
+
get label(): string;
|
|
4398
|
+
/**
|
|
4399
|
+
* Sets the secondary descriptive text shown next to the label.
|
|
4400
|
+
*/
|
|
4401
|
+
set secondaryLabel(value: string);
|
|
4402
|
+
get secondaryLabel(): string;
|
|
4403
|
+
/**
|
|
4404
|
+
* Sets the name of a font icon shown in the expandable header.
|
|
4405
|
+
*
|
|
4406
|
+
* @default 'sparkles'
|
|
4407
|
+
*/
|
|
4408
|
+
set icon(value: string);
|
|
4409
|
+
get icon(): string;
|
|
4410
|
+
/**
|
|
4411
|
+
* Sets the SVG icon shown in the expandable header.
|
|
4412
|
+
*
|
|
4413
|
+
* @default sparklesIcon
|
|
4414
|
+
*/
|
|
4415
|
+
set svgIcon(value: SVGIcon);
|
|
4416
|
+
get svgIcon(): SVGIcon;
|
|
4417
|
+
/**
|
|
4418
|
+
* Sets the total lines added across the chain, shown in the header.
|
|
4419
|
+
*/
|
|
4420
|
+
set linesAdded(value: number);
|
|
4421
|
+
get linesAdded(): number;
|
|
4422
|
+
/**
|
|
4423
|
+
* Sets the total lines removed across the chain, shown in the header.
|
|
4424
|
+
*/
|
|
4425
|
+
set linesRemoved(value: number);
|
|
4426
|
+
get linesRemoved(): number;
|
|
4427
|
+
/**
|
|
4428
|
+
* Sets whether the chain has completed.
|
|
4429
|
+
*
|
|
4430
|
+
* @default false
|
|
4431
|
+
*/
|
|
4432
|
+
set completed(value: boolean);
|
|
4433
|
+
get completed(): boolean;
|
|
4434
|
+
/**
|
|
4435
|
+
* Sets whether the expandable header supports expanding and collapsing the thought rows.
|
|
4436
|
+
* Forced to `false` whenever `thoughts` is empty, regardless of the value supplied.
|
|
4437
|
+
*
|
|
4438
|
+
* @default false
|
|
4439
|
+
*/
|
|
4440
|
+
set expandable(value: boolean);
|
|
4441
|
+
get expandable(): boolean;
|
|
4442
|
+
/**
|
|
4443
|
+
* Sets whether the thought rows are visible. Ignored when `expandable` is `false`.
|
|
4444
|
+
*
|
|
4445
|
+
* @default false
|
|
4446
|
+
*/
|
|
4447
|
+
set expanded(value: boolean);
|
|
4448
|
+
get expanded(): boolean;
|
|
4449
|
+
/**
|
|
4450
|
+
* Fires when the user expands or collapses the ChainOfThought through the expandable header.
|
|
4451
|
+
*/
|
|
4452
|
+
expandedChange: EventEmitter<boolean>;
|
|
4453
|
+
get direction(): string;
|
|
4454
|
+
set direction(value: string);
|
|
4455
|
+
private _thoughts;
|
|
4456
|
+
private _label;
|
|
4457
|
+
private _secondaryLabel;
|
|
4458
|
+
private _icon;
|
|
4459
|
+
private _svgIcon;
|
|
4460
|
+
private _linesAdded;
|
|
4461
|
+
private _linesRemoved;
|
|
4462
|
+
private _completed;
|
|
4463
|
+
private _expandable;
|
|
4464
|
+
private _expanded;
|
|
4465
|
+
private _direction;
|
|
4466
|
+
private _isExpandable;
|
|
4467
|
+
private subscription;
|
|
4468
|
+
constructor(localization: LocalizationService);
|
|
4469
|
+
/**
|
|
4470
|
+
* @hidden
|
|
4471
|
+
*/
|
|
4472
|
+
get isExpandable(): boolean;
|
|
4473
|
+
ngOnDestroy(): void;
|
|
4474
|
+
/**
|
|
4475
|
+
* @hidden
|
|
4476
|
+
*/
|
|
4477
|
+
handleExpandedChange(expanded: boolean): void;
|
|
4478
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChainOfThoughtComponent, never>;
|
|
4479
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChainOfThoughtComponent, "kendo-chainofthought", ["kendoChainOfThought"], { "thoughts": { "alias": "thoughts"; "required": false; }; "label": { "alias": "label"; "required": false; }; "secondaryLabel": { "alias": "secondaryLabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "linesAdded": { "alias": "linesAdded"; "required": false; }; "linesRemoved": { "alias": "linesRemoved"; "required": false; }; "completed": { "alias": "completed"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["thoughtTemplate"], never, true, never>;
|
|
4257
4480
|
}
|
|
4258
4481
|
|
|
4259
4482
|
/**
|
|
4260
|
-
*
|
|
4483
|
+
* Represents the current state of a ToolCall.
|
|
4484
|
+
*/
|
|
4485
|
+
type ToolCallState = 'active' | 'completed' | 'awaitingApproval' | 'error';
|
|
4486
|
+
|
|
4487
|
+
/**
|
|
4488
|
+
* Represents the action selected by the user for a ToolCall that is awaiting approval.
|
|
4489
|
+
*/
|
|
4490
|
+
type ToolCallAction = 'approve' | 'reject';
|
|
4491
|
+
|
|
4492
|
+
/**
|
|
4493
|
+
* Represents the event arguments of the `action` event of the ToolCall component.
|
|
4494
|
+
*/
|
|
4495
|
+
interface ToolCallActionEvent {
|
|
4496
|
+
/**
|
|
4497
|
+
* Specifies the approval action selected by the user when `state` is "awaitingApproval".
|
|
4498
|
+
*/
|
|
4499
|
+
action: ToolCallAction;
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4502
|
+
/**
|
|
4503
|
+
* Represents the template that replaces the default formatted-JSON `parameters` block in the ToolCall component.
|
|
4261
4504
|
*
|
|
4262
4505
|
* @example
|
|
4263
|
-
* ```
|
|
4264
|
-
*
|
|
4265
|
-
*
|
|
4266
|
-
*
|
|
4267
|
-
*
|
|
4268
|
-
*
|
|
4269
|
-
* imports: [KENDO_AIPROMPT],
|
|
4270
|
-
* selector: 'my-app',
|
|
4271
|
-
* template: `<kendo-aiprompt></kendo-aiprompt>`
|
|
4272
|
-
* })
|
|
4273
|
-
* export class AppComponent {}
|
|
4506
|
+
* ```html
|
|
4507
|
+
* <kendo-toolcall [parameters]="params">
|
|
4508
|
+
* <ng-template kendoToolCallParametersTemplate>
|
|
4509
|
+
* <p>Custom parameters content.</p>
|
|
4510
|
+
* </ng-template>
|
|
4511
|
+
* </kendo-toolcall>
|
|
4274
4512
|
* ```
|
|
4275
4513
|
*/
|
|
4276
|
-
declare
|
|
4514
|
+
declare class ToolCallParametersTemplateDirective {
|
|
4515
|
+
templateRef: TemplateRef<any>;
|
|
4516
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4517
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolCallParametersTemplateDirective, never>;
|
|
4518
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolCallParametersTemplateDirective, "[kendoToolCallParametersTemplate]", never, {}, {}, never, never, true, never>;
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4277
4521
|
/**
|
|
4278
|
-
*
|
|
4522
|
+
* Represents the template that replaces the default approval block and Approve/Reject actions in the ToolCall component when `state` is "awaitingApproval".
|
|
4279
4523
|
*
|
|
4280
4524
|
* @example
|
|
4281
|
-
* ```
|
|
4282
|
-
*
|
|
4283
|
-
*
|
|
4525
|
+
* ```html
|
|
4526
|
+
* <kendo-toolcall state="awaitingApproval" (action)="onAction($event)">
|
|
4527
|
+
* <ng-template kendoToolCallApprovalTemplate>
|
|
4528
|
+
* <p>Custom approval content.</p>
|
|
4529
|
+
* </ng-template>
|
|
4530
|
+
* </kendo-toolcall>
|
|
4531
|
+
* ```
|
|
4532
|
+
*/
|
|
4533
|
+
declare class ToolCallApprovalTemplateDirective {
|
|
4534
|
+
templateRef: TemplateRef<any>;
|
|
4535
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4536
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolCallApprovalTemplateDirective, never>;
|
|
4537
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolCallApprovalTemplateDirective, "[kendoToolCallApprovalTemplate]", never, {}, {}, never, never, true, never>;
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
/**
|
|
4541
|
+
* Represents the template that replaces the default formatted-JSON `result` block in the ToolCall component when `state` is "completed".
|
|
4284
4542
|
*
|
|
4285
|
-
* @
|
|
4286
|
-
*
|
|
4287
|
-
*
|
|
4288
|
-
*
|
|
4289
|
-
*
|
|
4290
|
-
*
|
|
4291
|
-
*
|
|
4543
|
+
* @example
|
|
4544
|
+
* ```html
|
|
4545
|
+
* <kendo-toolcall [result]="result">
|
|
4546
|
+
* <ng-template kendoToolCallResultTemplate>
|
|
4547
|
+
* <p>Custom result content.</p>
|
|
4548
|
+
* </ng-template>
|
|
4549
|
+
* </kendo-toolcall>
|
|
4292
4550
|
* ```
|
|
4293
4551
|
*/
|
|
4294
|
-
declare
|
|
4552
|
+
declare class ToolCallResultTemplateDirective {
|
|
4553
|
+
templateRef: TemplateRef<any>;
|
|
4554
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4555
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolCallResultTemplateDirective, never>;
|
|
4556
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolCallResultTemplateDirective, "[kendoToolCallResultTemplate]", never, {}, {}, never, never, true, never>;
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4295
4559
|
/**
|
|
4296
|
-
*
|
|
4560
|
+
* Represents the template that replaces the default `errorText` block in the ToolCall component when `state` is "error".
|
|
4297
4561
|
*
|
|
4298
4562
|
* @example
|
|
4299
|
-
* ```
|
|
4563
|
+
* ```html
|
|
4564
|
+
* <kendo-toolcall state="error" errorText="Request timed out.">
|
|
4565
|
+
* <ng-template kendoToolCallErrorTemplate>
|
|
4566
|
+
* <p>Custom error content.</p>
|
|
4567
|
+
* </ng-template>
|
|
4568
|
+
* </kendo-toolcall>
|
|
4569
|
+
* ```
|
|
4570
|
+
*/
|
|
4571
|
+
declare class ToolCallErrorTemplateDirective {
|
|
4572
|
+
templateRef: TemplateRef<any>;
|
|
4573
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4574
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolCallErrorTemplateDirective, never>;
|
|
4575
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolCallErrorTemplateDirective, "[kendoToolCallErrorTemplate]", never, {}, {}, never, never, true, never>;
|
|
4576
|
+
}
|
|
4577
|
+
|
|
4578
|
+
/**
|
|
4579
|
+
* Represents the [Kendo UI ToolCall component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/tool-call).
|
|
4580
|
+
* Displays a single tool or function invocation as a disclosure block, including its parameters, approval actions, result, or error.
|
|
4581
|
+
*
|
|
4582
|
+
* @example
|
|
4583
|
+
* ```html
|
|
4584
|
+
* <kendo-toolcall
|
|
4585
|
+
* label="get_weather"
|
|
4586
|
+
* state="completed"
|
|
4587
|
+
* [expandable]="true"
|
|
4588
|
+
* [parameters]="{ city: 'Sofia' }"
|
|
4589
|
+
* [result]="{ tempC: 24 }"
|
|
4590
|
+
* ></kendo-toolcall>
|
|
4591
|
+
* ```
|
|
4592
|
+
*/
|
|
4593
|
+
declare class ToolCallComponent implements OnDestroy {
|
|
4594
|
+
private localization;
|
|
4595
|
+
/**
|
|
4596
|
+
* Replaces the default formatted-JSON `parameters` block.
|
|
4597
|
+
*
|
|
4598
|
+
* @hidden
|
|
4599
|
+
*/
|
|
4600
|
+
paramsTemplate: ToolCallParametersTemplateDirective;
|
|
4601
|
+
/**
|
|
4602
|
+
* Replaces the default Approve/Reject approval block shown when `state` is `awaitingApproval`.
|
|
4603
|
+
*
|
|
4604
|
+
* @hidden
|
|
4605
|
+
*/
|
|
4606
|
+
approvalTemplate: ToolCallApprovalTemplateDirective;
|
|
4607
|
+
/**
|
|
4608
|
+
* Replaces the default formatted-JSON `result` block.
|
|
4609
|
+
*
|
|
4610
|
+
* @hidden
|
|
4611
|
+
*/
|
|
4612
|
+
resultTemplate: ToolCallResultTemplateDirective;
|
|
4613
|
+
/**
|
|
4614
|
+
* Replaces the default `errorText` block shown when `state` is `error`.
|
|
4615
|
+
*
|
|
4616
|
+
* @hidden
|
|
4617
|
+
*/
|
|
4618
|
+
errorTemplate: ToolCallErrorTemplateDirective;
|
|
4619
|
+
/**
|
|
4620
|
+
* Sets the raw tool input data, rendered as formatted JSON by default.
|
|
4621
|
+
*/
|
|
4622
|
+
set parameters(value: any);
|
|
4623
|
+
get parameters(): any;
|
|
4624
|
+
/**
|
|
4625
|
+
* Sets the raw tool result data, rendered as formatted JSON by default when `state` is "completed".
|
|
4626
|
+
*/
|
|
4627
|
+
set result(value: any);
|
|
4628
|
+
get result(): any;
|
|
4629
|
+
/**
|
|
4630
|
+
* Sets the error message displayed when `state` is "error".
|
|
4631
|
+
*/
|
|
4632
|
+
set errorText(value: string);
|
|
4633
|
+
get errorText(): string;
|
|
4634
|
+
/**
|
|
4635
|
+
* Sets the tool or function name shown in the expandable header.
|
|
4636
|
+
*/
|
|
4637
|
+
set label(value: string);
|
|
4638
|
+
get label(): string;
|
|
4639
|
+
/**
|
|
4640
|
+
* Sets the file, command, or target context shown next to the tool or function name.
|
|
4641
|
+
*/
|
|
4642
|
+
set secondaryLabel(value: string);
|
|
4643
|
+
get secondaryLabel(): string;
|
|
4644
|
+
/**
|
|
4645
|
+
* Sets the text shown above the default approval actions when `state` is "awaitingApproval".
|
|
4646
|
+
*/
|
|
4647
|
+
set approvalText(value: string);
|
|
4648
|
+
get approvalText(): string;
|
|
4649
|
+
/**
|
|
4650
|
+
* Sets the name of a font icon shown in the expandable header.
|
|
4651
|
+
*
|
|
4652
|
+
* @default 'wrench'
|
|
4653
|
+
*/
|
|
4654
|
+
set icon(value: string);
|
|
4655
|
+
get icon(): string;
|
|
4656
|
+
/**
|
|
4657
|
+
* Sets the SVG icon shown in the expandable header.
|
|
4658
|
+
*
|
|
4659
|
+
* @default wrenchIcon
|
|
4660
|
+
*/
|
|
4661
|
+
set svgIcon(value: SVGIcon);
|
|
4662
|
+
get svgIcon(): SVGIcon;
|
|
4663
|
+
protected get statusText(): string;
|
|
4664
|
+
/**
|
|
4665
|
+
* Sets the name of a font icon shown in the status badge. When not set, the icon is derived from `state`.
|
|
4666
|
+
*/
|
|
4667
|
+
set statusFontIcon(value: string);
|
|
4668
|
+
get statusFontIcon(): string;
|
|
4669
|
+
/**
|
|
4670
|
+
* Sets the SVG icon shown in the status badge. When not set, the component derives the icon from `state`.
|
|
4671
|
+
*/
|
|
4672
|
+
set statusSVGIcon(value: SVGIcon);
|
|
4673
|
+
get statusSVGIcon(): SVGIcon;
|
|
4674
|
+
/**
|
|
4675
|
+
*
|
|
4676
|
+
* Gets the badge color derived from the tool call state.
|
|
4677
|
+
*/
|
|
4678
|
+
protected get badgeThemeColor(): BadgeThemeColor;
|
|
4679
|
+
/**
|
|
4680
|
+
* Sets the current state of the tool call.
|
|
4681
|
+
*
|
|
4682
|
+
* @default 'active'
|
|
4683
|
+
*/
|
|
4684
|
+
set state(value: ToolCallState);
|
|
4685
|
+
get state(): ToolCallState;
|
|
4686
|
+
/**
|
|
4687
|
+
* Sets whether the expandable header supports expanding and collapsing the tool call details.
|
|
4688
|
+
*
|
|
4689
|
+
* @default false
|
|
4690
|
+
*/
|
|
4691
|
+
set expandable(value: boolean);
|
|
4692
|
+
get expandable(): boolean;
|
|
4693
|
+
/**
|
|
4694
|
+
* Sets whether the tool call details are visible. Ignored when `expandable` is `false`.
|
|
4695
|
+
*
|
|
4696
|
+
* @default false
|
|
4697
|
+
*/
|
|
4698
|
+
set expanded(value: boolean);
|
|
4699
|
+
get expanded(): boolean;
|
|
4700
|
+
/**
|
|
4701
|
+
* Fires when the user expands or collapses the tool call details through the expandable header.
|
|
4702
|
+
*/
|
|
4703
|
+
expandedChange: EventEmitter<boolean>;
|
|
4704
|
+
/**
|
|
4705
|
+
* Fires when the user selects the Approve or Reject action while `state` is "awaitingApproval".
|
|
4706
|
+
*/
|
|
4707
|
+
action: EventEmitter<ToolCallActionEvent>;
|
|
4708
|
+
get direction(): string;
|
|
4709
|
+
set direction(value: string);
|
|
4710
|
+
private _parameters;
|
|
4711
|
+
private _result;
|
|
4712
|
+
private _errorText;
|
|
4713
|
+
private _label;
|
|
4714
|
+
private _secondaryLabel;
|
|
4715
|
+
private _approvalText;
|
|
4716
|
+
private _icon;
|
|
4717
|
+
private _svgIcon;
|
|
4718
|
+
private _statusIconName;
|
|
4719
|
+
private _statusIconNameSet;
|
|
4720
|
+
private _statusIcon;
|
|
4721
|
+
private _statusIconSet;
|
|
4722
|
+
private _state;
|
|
4723
|
+
private _expandable;
|
|
4724
|
+
private _expanded;
|
|
4725
|
+
private _direction;
|
|
4726
|
+
private subscription;
|
|
4727
|
+
constructor(localization: LocalizationService);
|
|
4728
|
+
/**
|
|
4729
|
+
* @hidden
|
|
4730
|
+
*/
|
|
4731
|
+
get agentStepCompleted(): boolean;
|
|
4732
|
+
ngOnDestroy(): void;
|
|
4733
|
+
/**
|
|
4734
|
+
* @hidden
|
|
4735
|
+
*/
|
|
4736
|
+
handleExpandedChange(expanded: boolean): void;
|
|
4737
|
+
/**
|
|
4738
|
+
* @hidden
|
|
4739
|
+
*/
|
|
4740
|
+
handleAction(action: ToolCallAction): void;
|
|
4741
|
+
/**
|
|
4742
|
+
* @hidden
|
|
4743
|
+
*/
|
|
4744
|
+
messageFor(key: string): string;
|
|
4745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolCallComponent, never>;
|
|
4746
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolCallComponent, "kendo-toolcall", ["kendoToolCall"], { "parameters": { "alias": "parameters"; "required": false; }; "result": { "alias": "result"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "label": { "alias": "label"; "required": false; }; "secondaryLabel": { "alias": "secondaryLabel"; "required": false; }; "approvalText": { "alias": "approvalText"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "statusFontIcon": { "alias": "statusFontIcon"; "required": false; }; "statusSVGIcon": { "alias": "statusSVGIcon"; "required": false; }; "state": { "alias": "state"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; "action": "action"; }, ["paramsTemplate", "approvalTemplate", "resultTemplate", "errorTemplate"], never, true, never>;
|
|
4747
|
+
}
|
|
4748
|
+
|
|
4749
|
+
/**
|
|
4750
|
+
* Describes a source referenced by a Citation component.
|
|
4751
|
+
*/
|
|
4752
|
+
interface CitationSource {
|
|
4753
|
+
/**
|
|
4754
|
+
* Sets the title displayed for the source.
|
|
4755
|
+
*/
|
|
4756
|
+
title?: string;
|
|
4757
|
+
/**
|
|
4758
|
+
* Sets the short description shown for the source in the Citation popover.
|
|
4759
|
+
*/
|
|
4760
|
+
description?: string;
|
|
4761
|
+
/**
|
|
4762
|
+
* Sets the URL used for the source link.
|
|
4763
|
+
*/
|
|
4764
|
+
url?: string;
|
|
4765
|
+
}
|
|
4766
|
+
|
|
4767
|
+
/**
|
|
4768
|
+
* Represents the event arguments of the `open` event of the Citation component.
|
|
4769
|
+
*/
|
|
4770
|
+
interface CitationOpenEvent {
|
|
4771
|
+
/**
|
|
4772
|
+
* Contains the citation sources displayed in the popover.
|
|
4773
|
+
*/
|
|
4774
|
+
sources: CitationSource[];
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
/**
|
|
4778
|
+
* Represents the template that replaces the default content for each source in the Citation popover.
|
|
4779
|
+
* The current `CitationSource` item is available as the `$implicit` template value.
|
|
4780
|
+
*
|
|
4781
|
+
* @example
|
|
4782
|
+
* ```html
|
|
4783
|
+
* <kendo-citation [sources]="sources">
|
|
4784
|
+
* <ng-template kendoCitationBodyTemplate let-source>
|
|
4785
|
+
* <h6>{{ source.title }}</h6>
|
|
4786
|
+
* </ng-template>
|
|
4787
|
+
* </kendo-citation>
|
|
4788
|
+
* ```
|
|
4789
|
+
*/
|
|
4790
|
+
declare class CitationBodyTemplateDirective {
|
|
4791
|
+
templateRef: TemplateRef<any>;
|
|
4792
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4793
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CitationBodyTemplateDirective, never>;
|
|
4794
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CitationBodyTemplateDirective, "[kendoCitationBodyTemplate]", never, {}, {}, never, never, true, never>;
|
|
4795
|
+
}
|
|
4796
|
+
|
|
4797
|
+
/**
|
|
4798
|
+
* Represents the [Kendo UI Citation component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/citation).
|
|
4799
|
+
* Displays an inline chip for a cited resource and a paginated hover/focus popover with its source details.
|
|
4800
|
+
*
|
|
4801
|
+
* @example
|
|
4802
|
+
* ```html
|
|
4803
|
+
* <kendo-citation
|
|
4804
|
+
* [sources]="[{ title: 'Kendo UI', description: 'Component docs', url: 'https://www.telerik.com/kendo-angular-ui' }]"
|
|
4805
|
+
* ></kendo-citation>
|
|
4806
|
+
* ```
|
|
4807
|
+
*/
|
|
4808
|
+
declare class CitationComponent implements OnDestroy {
|
|
4809
|
+
private localization;
|
|
4810
|
+
private renderer;
|
|
4811
|
+
/**
|
|
4812
|
+
* Replaces the default resource popover body content for each source. The template context is set to the current `CitationSource`.
|
|
4813
|
+
*
|
|
4814
|
+
* @hidden
|
|
4815
|
+
*/
|
|
4816
|
+
popoverBodyTemplate: CitationBodyTemplateDirective;
|
|
4817
|
+
/**
|
|
4818
|
+
* Sets the sources associated with the citation, in display order.
|
|
4819
|
+
*
|
|
4820
|
+
* @default []
|
|
4821
|
+
*/
|
|
4822
|
+
set sources(value: CitationSource[]);
|
|
4823
|
+
get sources(): CitationSource[];
|
|
4824
|
+
/**
|
|
4825
|
+
* Sets the label shown in the citation chip. When not set, the label defaults to the hostname
|
|
4826
|
+
* of the first source's URL, optionally followed by the count of additional sources.
|
|
4827
|
+
*/
|
|
4828
|
+
set label(value: string);
|
|
4829
|
+
get label(): string;
|
|
4830
|
+
/**
|
|
4831
|
+
* Sets the name of a font icon rendered inside the citation chip.
|
|
4832
|
+
*
|
|
4833
|
+
* @default 'globe'
|
|
4834
|
+
*/
|
|
4835
|
+
set icon(value: string);
|
|
4836
|
+
get icon(): string;
|
|
4837
|
+
/**
|
|
4838
|
+
* Sets the SVG icon shown in the citation chip.
|
|
4839
|
+
*
|
|
4840
|
+
* @default globeIcon
|
|
4841
|
+
*/
|
|
4842
|
+
set svgIcon(value: SVGIcon);
|
|
4843
|
+
get svgIcon(): SVGIcon;
|
|
4844
|
+
/**
|
|
4845
|
+
* Sets the font icon shown before each source URL in the default popover view.
|
|
4846
|
+
*
|
|
4847
|
+
* @default 'globe'
|
|
4848
|
+
*/
|
|
4849
|
+
set sourceIcon(value: string);
|
|
4850
|
+
get sourceIcon(): string;
|
|
4851
|
+
/**
|
|
4852
|
+
* Sets the SVG icon shown before each source URL in the default popover view.
|
|
4853
|
+
*
|
|
4854
|
+
* @default globeIcon
|
|
4855
|
+
*/
|
|
4856
|
+
set sourceSVGIcon(value: SVGIcon);
|
|
4857
|
+
get sourceSVGIcon(): SVGIcon;
|
|
4858
|
+
/**
|
|
4859
|
+
* Sets whether the chip displays the count of additional sources.
|
|
4860
|
+
*
|
|
4861
|
+
* @default true
|
|
4862
|
+
*/
|
|
4863
|
+
set showAdditionalCount(value: boolean);
|
|
4864
|
+
get showAdditionalCount(): boolean;
|
|
4865
|
+
/**
|
|
4866
|
+
* Sets the interaction that displays the citation popover.
|
|
4867
|
+
*
|
|
4868
|
+
* @default 'hover'
|
|
4869
|
+
*/
|
|
4870
|
+
set showOn(value: 'hover' | 'click');
|
|
4871
|
+
get showOn(): 'hover' | 'click';
|
|
4872
|
+
/**
|
|
4873
|
+
* Fires when the citation popover is about to open after the user hovers over or clicks the citation.
|
|
4874
|
+
*/
|
|
4875
|
+
open: EventEmitter<CitationOpenEvent>;
|
|
4876
|
+
get direction(): string;
|
|
4877
|
+
set direction(value: string);
|
|
4878
|
+
/**
|
|
4879
|
+
* @hidden
|
|
4880
|
+
*/
|
|
4881
|
+
get popoverVisible(): boolean;
|
|
4882
|
+
/**
|
|
4883
|
+
* @hidden
|
|
4884
|
+
*
|
|
4885
|
+
* 1-based index of the source currently shown in the resource popover.
|
|
4886
|
+
*/
|
|
4887
|
+
get currentPage(): number;
|
|
4888
|
+
protected previousIcon: SVGIcon;
|
|
4889
|
+
protected nextIcon: SVGIcon;
|
|
4890
|
+
private _sources;
|
|
4891
|
+
private _label;
|
|
4892
|
+
private _labelSet;
|
|
4893
|
+
private _icon;
|
|
4894
|
+
private _svgIcon;
|
|
4895
|
+
private _sourceIcon;
|
|
4896
|
+
private _sourceSVGIcon;
|
|
4897
|
+
private _showAdditionalCount;
|
|
4898
|
+
private _showOn;
|
|
4899
|
+
private _popoverVisible;
|
|
4900
|
+
private _currentPage;
|
|
4901
|
+
private _direction;
|
|
4902
|
+
private _defaultLabel;
|
|
4903
|
+
private _popoverElement;
|
|
4904
|
+
private subscription;
|
|
4905
|
+
private popoverViewPositionEffect;
|
|
4906
|
+
constructor(localization: LocalizationService, renderer: Renderer2);
|
|
4907
|
+
ngOnDestroy(): void;
|
|
4908
|
+
/**
|
|
4909
|
+
* @hidden
|
|
4910
|
+
*/
|
|
4911
|
+
handlePopoverShow(): void;
|
|
4912
|
+
/**
|
|
4913
|
+
* @hidden
|
|
4914
|
+
*/
|
|
4915
|
+
handlePopoverShown(anchor: PopoverAnchorDirective): void;
|
|
4916
|
+
/**
|
|
4917
|
+
* @hidden
|
|
4918
|
+
*/
|
|
4919
|
+
handlePopoverHidden(anchor: PopoverAnchorDirective): void;
|
|
4920
|
+
/**
|
|
4921
|
+
* @hidden
|
|
4922
|
+
*/
|
|
4923
|
+
previous(): void;
|
|
4924
|
+
/**
|
|
4925
|
+
* @hidden
|
|
4926
|
+
*/
|
|
4927
|
+
next(): void;
|
|
4928
|
+
/**
|
|
4929
|
+
* @hidden
|
|
4930
|
+
*/
|
|
4931
|
+
messageFor(key: string): string;
|
|
4932
|
+
private getDefaultLabel;
|
|
4933
|
+
private getSourceHostname;
|
|
4934
|
+
private getPopoverElement;
|
|
4935
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CitationComponent, never>;
|
|
4936
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CitationComponent, "kendo-citation", ["kendoCitation"], { "sources": { "alias": "sources"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "sourceIcon": { "alias": "sourceIcon"; "required": false; }; "sourceSVGIcon": { "alias": "sourceSVGIcon"; "required": false; }; "showAdditionalCount": { "alias": "showAdditionalCount"; "required": false; }; "showOn": { "alias": "showOn"; "required": false; }; }, { "open": "open"; }, ["popoverBodyTemplate"], never, true, never>;
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
/**
|
|
4940
|
+
* Represents the current state of a Checkpoint.
|
|
4941
|
+
*/
|
|
4942
|
+
type CheckpointState = 'startOver' | 'restore' | 'redo';
|
|
4943
|
+
|
|
4944
|
+
/**
|
|
4945
|
+
* Represents the event arguments of the `action` event of the Checkpoint component.
|
|
4946
|
+
*/
|
|
4947
|
+
interface CheckpointActionEvent {
|
|
4948
|
+
/**
|
|
4949
|
+
* Specifies the Checkpoint action that triggered the event.
|
|
4950
|
+
*/
|
|
4951
|
+
action: CheckpointState;
|
|
4952
|
+
}
|
|
4953
|
+
|
|
4954
|
+
/**
|
|
4955
|
+
* Represents the template for the content displayed between the Checkpoint's two separator lines.
|
|
4956
|
+
* Replaces the default action or restored-state content.
|
|
4957
|
+
*
|
|
4958
|
+
* @example
|
|
4959
|
+
* ```html
|
|
4960
|
+
* <kendo-checkpoint [state]="state" displayMode="always">
|
|
4961
|
+
* <ng-template kendoCheckpointTemplate>
|
|
4962
|
+
* <button kendoButton fillMode="flat" size="xsmall">Custom action</button>
|
|
4963
|
+
* </ng-template>
|
|
4964
|
+
* </kendo-checkpoint>
|
|
4965
|
+
* ```
|
|
4966
|
+
*/
|
|
4967
|
+
declare class CheckpointTemplateDirective {
|
|
4968
|
+
templateRef: TemplateRef<any>;
|
|
4969
|
+
constructor(templateRef: TemplateRef<any>);
|
|
4970
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckpointTemplateDirective, never>;
|
|
4971
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckpointTemplateDirective, "[kendoCheckpointTemplate]", never, {}, {}, never, never, true, never>;
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4974
|
+
/**
|
|
4975
|
+
* Represents the [Kendo UI Checkpoint component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/checkpoint).
|
|
4976
|
+
* Displays a decorative separator between conversation turns with a restore or redo action.
|
|
4977
|
+
*
|
|
4978
|
+
* @example
|
|
4979
|
+
* ```html
|
|
4980
|
+
* <kendo-checkpoint state="restore" (action)="onCheckpointAction($event)"></kendo-checkpoint>
|
|
4981
|
+
* ```
|
|
4982
|
+
*/
|
|
4983
|
+
declare class CheckpointComponent implements OnDestroy {
|
|
4984
|
+
private localization;
|
|
4985
|
+
/**
|
|
4986
|
+
* Renders the supplied template between the two separator lines instead of the default state-specific content.
|
|
4987
|
+
*
|
|
4988
|
+
* @hidden
|
|
4989
|
+
*/
|
|
4990
|
+
template: CheckpointTemplateDirective;
|
|
4991
|
+
/**
|
|
4992
|
+
* Sets the current state of the Checkpoint.
|
|
4993
|
+
*/
|
|
4994
|
+
set state(value: CheckpointState);
|
|
4995
|
+
get state(): CheckpointState;
|
|
4996
|
+
/**
|
|
4997
|
+
* Sets whether the Checkpoint is always visible or visible only when the user hovers over it.
|
|
4998
|
+
*
|
|
4999
|
+
* @default 'hover'
|
|
5000
|
+
*/
|
|
5001
|
+
set displayMode(value: 'hover' | 'always');
|
|
5002
|
+
get displayMode(): 'hover' | 'always';
|
|
5003
|
+
/**
|
|
5004
|
+
* Fires when the user clicks the Checkpoint. The event arguments contain the current `state`.
|
|
5005
|
+
*/
|
|
5006
|
+
action: EventEmitter<CheckpointActionEvent>;
|
|
5007
|
+
hostClass: boolean;
|
|
5008
|
+
get checkpointVisibleClass(): boolean;
|
|
5009
|
+
get direction(): string;
|
|
5010
|
+
set direction(value: string);
|
|
5011
|
+
private _state;
|
|
5012
|
+
private _displayMode;
|
|
5013
|
+
private _direction;
|
|
5014
|
+
private subscription;
|
|
5015
|
+
constructor(localization: LocalizationService);
|
|
5016
|
+
ngOnDestroy(): void;
|
|
5017
|
+
/**
|
|
5018
|
+
* @hidden
|
|
5019
|
+
* Emits the `action` event with the current `state` on click.
|
|
5020
|
+
*/
|
|
5021
|
+
emitAction(): void;
|
|
5022
|
+
/**
|
|
5023
|
+
* @hidden
|
|
5024
|
+
*/
|
|
5025
|
+
messageFor(key: string): string;
|
|
5026
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckpointComponent, never>;
|
|
5027
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckpointComponent, "kendo-checkpoint", ["kendoCheckpoint"], { "state": { "alias": "state"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; }, { "action": "action"; }, ["template"], never, true, never>;
|
|
5028
|
+
}
|
|
5029
|
+
|
|
5030
|
+
/**
|
|
5031
|
+
* @hidden
|
|
5032
|
+
*/
|
|
5033
|
+
declare class LlmKitMessages extends ComponentMessages {
|
|
5034
|
+
/**
|
|
5035
|
+
* Sets the aria-label for a disclosure head when it has no visible label/secondaryLabel and is currently collapsed.
|
|
5036
|
+
*/
|
|
5037
|
+
expandLabel: string;
|
|
5038
|
+
/**
|
|
5039
|
+
* Sets the aria-label for a disclosure head when it has no visible label/secondaryLabel and is currently expanded.
|
|
5040
|
+
*/
|
|
5041
|
+
collapseLabel: string;
|
|
5042
|
+
/**
|
|
5043
|
+
* Sets the text for the ToolCall's default Approve action.
|
|
5044
|
+
*/
|
|
5045
|
+
approveAction: string;
|
|
5046
|
+
/**
|
|
5047
|
+
* Sets the text for the ToolCall's default Reject action.
|
|
5048
|
+
*/
|
|
5049
|
+
rejectAction: string;
|
|
5050
|
+
/**
|
|
5051
|
+
* Sets the text for the Checkpoint's default action in the startOver state.
|
|
5052
|
+
*/
|
|
5053
|
+
startOverAction: string;
|
|
5054
|
+
/**
|
|
5055
|
+
* Sets the text for the Checkpoint's default action in the restore state.
|
|
5056
|
+
*/
|
|
5057
|
+
restoreAction: string;
|
|
5058
|
+
/**
|
|
5059
|
+
* Sets the text for the Checkpoint's default action in the redo state.
|
|
5060
|
+
*/
|
|
5061
|
+
redoAction: string;
|
|
5062
|
+
/**
|
|
5063
|
+
* Sets the text for the Checkpoint's default stamp shown in the redo state.
|
|
5064
|
+
*/
|
|
5065
|
+
checkpointRestoredText: string;
|
|
5066
|
+
/**
|
|
5067
|
+
* Sets the aria-label for the Citation popover's Previous-source action.
|
|
5068
|
+
*/
|
|
5069
|
+
previousSourceAction: string;
|
|
5070
|
+
/**
|
|
5071
|
+
* Sets the aria-label for the Citation popover's Next-source action.
|
|
5072
|
+
*/
|
|
5073
|
+
nextSourceAction: string;
|
|
5074
|
+
/**
|
|
5075
|
+
* Sets the label shown above the ToolCall's default formatted-JSON `parameters` block.
|
|
5076
|
+
*/
|
|
5077
|
+
parametersLabel: string;
|
|
5078
|
+
/**
|
|
5079
|
+
* Sets the label shown above the ToolCall's default formatted-JSON `result` block.
|
|
5080
|
+
*/
|
|
5081
|
+
resultLabel: string;
|
|
5082
|
+
/**
|
|
5083
|
+
* Sets the default ToolCall badge text for the awaiting approval state.
|
|
5084
|
+
*/
|
|
5085
|
+
awaitingApprovalStatus: string;
|
|
5086
|
+
/**
|
|
5087
|
+
* Sets the default ToolCall badge text for the completed state.
|
|
5088
|
+
*/
|
|
5089
|
+
completedStatus: string;
|
|
5090
|
+
/**
|
|
5091
|
+
* Sets the default ToolCall badge text for the error state.
|
|
5092
|
+
*/
|
|
5093
|
+
errorStatus: string;
|
|
5094
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LlmKitMessages, never>;
|
|
5095
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LlmKitMessages, never, never, { "expandLabel": { "alias": "expandLabel"; "required": false; }; "collapseLabel": { "alias": "collapseLabel"; "required": false; }; "approveAction": { "alias": "approveAction"; "required": false; }; "rejectAction": { "alias": "rejectAction"; "required": false; }; "startOverAction": { "alias": "startOverAction"; "required": false; }; "restoreAction": { "alias": "restoreAction"; "required": false; }; "redoAction": { "alias": "redoAction"; "required": false; }; "checkpointRestoredText": { "alias": "checkpointRestoredText"; "required": false; }; "previousSourceAction": { "alias": "previousSourceAction"; "required": false; }; "nextSourceAction": { "alias": "nextSourceAction"; "required": false; }; "parametersLabel": { "alias": "parametersLabel"; "required": false; }; "resultLabel": { "alias": "resultLabel"; "required": false; }; "awaitingApprovalStatus": { "alias": "awaitingApprovalStatus"; "required": false; }; "completedStatus": { "alias": "completedStatus"; "required": false; }; "errorStatus": { "alias": "errorStatus"; "required": false; }; }, {}, never, never, true, never>;
|
|
5096
|
+
}
|
|
5097
|
+
|
|
5098
|
+
/**
|
|
5099
|
+
* Represents the custom messages component shared by the LLM Kit primitives (`Reasoning`, `ChainOfThought`,
|
|
5100
|
+
* `ToolCall`, `Citation`, and `Checkpoint`).
|
|
5101
|
+
*
|
|
5102
|
+
* Use this component to override the default messages for the LLM Kit primitives
|
|
5103
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/globalization#custom-messages)).
|
|
5104
|
+
*
|
|
5105
|
+
* @example
|
|
5106
|
+
* ```html
|
|
5107
|
+
* <kendo-llmkit-messages
|
|
5108
|
+
* approveAction="Allow"
|
|
5109
|
+
* rejectAction="Deny">
|
|
5110
|
+
* </kendo-llmkit-messages>
|
|
5111
|
+
* ```
|
|
5112
|
+
*/
|
|
5113
|
+
declare class LlmKitCustomMessagesComponent extends LlmKitMessages {
|
|
5114
|
+
protected service: LocalizationService;
|
|
5115
|
+
constructor(service: LocalizationService);
|
|
5116
|
+
protected get override(): boolean;
|
|
5117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LlmKitCustomMessagesComponent, never>;
|
|
5118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LlmKitCustomMessagesComponent, "kendo-llmkit-messages", never, {}, {}, never, never, true, never>;
|
|
5119
|
+
}
|
|
5120
|
+
|
|
5121
|
+
/**
|
|
5122
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the Conversational UI components.
|
|
5123
|
+
*
|
|
5124
|
+
* @example
|
|
5125
|
+
* ```ts
|
|
5126
|
+
* import { NgModule } from '@angular/core';
|
|
5127
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
5128
|
+
* import { ConversationalUIModule } from '@progress/kendo-angular-conversational-ui';
|
|
5129
|
+
* import { AppComponent } from './app.component';
|
|
5130
|
+
*
|
|
5131
|
+
* @NgModule({
|
|
5132
|
+
* declarations: [AppComponent],
|
|
5133
|
+
* imports: [BrowserModule, ConversationalUIModule],
|
|
5134
|
+
* bootstrap: [AppComponent]
|
|
5135
|
+
* })
|
|
5136
|
+
* export class AppModule {}
|
|
5137
|
+
* ```
|
|
5138
|
+
*/
|
|
5139
|
+
declare class ConversationalUIModule {
|
|
5140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationalUIModule, never>;
|
|
5141
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationalUIModule, never, [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatMessageBoxStartAffixTemplateDirective, typeof ChatMessageBoxEndAffixTemplateDirective, typeof ChatMessageBoxTopAffixTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent, typeof PromptBoxComponent, typeof PromptBoxCustomMessagesComponent, typeof PromptBoxStartAffixComponent, typeof PromptBoxEndAffixComponent, typeof PromptBoxTopAffixComponent, typeof PromptBoxSpeechToTextButtonComponent, typeof PromptBoxActionButtonComponent, typeof PromptBoxFileSelectButtonComponent, typeof PromptBoxHeaderTemplateDirective, typeof ReasoningComponent, typeof ChainOfThoughtComponent, typeof ToolCallComponent, typeof CitationComponent, typeof CheckpointComponent, typeof LlmKitCustomMessagesComponent, typeof ReasoningContentTemplateDirective, typeof ThoughtTemplateDirective, typeof ToolCallParametersTemplateDirective, typeof ToolCallApprovalTemplateDirective, typeof ToolCallResultTemplateDirective, typeof ToolCallErrorTemplateDirective, typeof CitationBodyTemplateDirective, typeof CheckpointTemplateDirective], [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatMessageBoxStartAffixTemplateDirective, typeof ChatMessageBoxEndAffixTemplateDirective, typeof ChatMessageBoxTopAffixTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent, typeof PromptBoxComponent, typeof PromptBoxCustomMessagesComponent, typeof PromptBoxStartAffixComponent, typeof PromptBoxEndAffixComponent, typeof PromptBoxTopAffixComponent, typeof PromptBoxSpeechToTextButtonComponent, typeof PromptBoxActionButtonComponent, typeof PromptBoxFileSelectButtonComponent, typeof PromptBoxHeaderTemplateDirective, typeof ReasoningComponent, typeof ChainOfThoughtComponent, typeof ToolCallComponent, typeof CitationComponent, typeof CheckpointComponent, typeof LlmKitCustomMessagesComponent, typeof ReasoningContentTemplateDirective, typeof ThoughtTemplateDirective, typeof ToolCallParametersTemplateDirective, typeof ToolCallApprovalTemplateDirective, typeof ToolCallResultTemplateDirective, typeof ToolCallErrorTemplateDirective, typeof CitationBodyTemplateDirective, typeof CheckpointTemplateDirective]>;
|
|
5142
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ConversationalUIModule>;
|
|
5143
|
+
}
|
|
5144
|
+
|
|
5145
|
+
/**
|
|
5146
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the InlineAIPrompt component.
|
|
5147
|
+
*
|
|
5148
|
+
* @example
|
|
5149
|
+
* ```ts
|
|
5150
|
+
* import { NgModule } from '@angular/core';
|
|
5151
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
5152
|
+
* import { InlineAIPromptModule } from '@progress/kendo-angular-conversational-ui';
|
|
5153
|
+
* import { AppComponent } from './app.component';
|
|
5154
|
+
*
|
|
5155
|
+
* @NgModule({
|
|
5156
|
+
* imports: [BrowserModule, InlineAIPromptModule],
|
|
5157
|
+
* declarations: [AppComponent],
|
|
5158
|
+
* bootstrap: [AppComponent]
|
|
5159
|
+
* })
|
|
5160
|
+
* export class AppModule {}
|
|
5161
|
+
* ```
|
|
5162
|
+
*/
|
|
5163
|
+
declare class InlineAIPromptModule {
|
|
5164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptModule, never>;
|
|
5165
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InlineAIPromptModule, never, [typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent], [typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent]>;
|
|
5166
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<InlineAIPromptModule>;
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
/**
|
|
5170
|
+
* Provides a service for opening and configuring the Inline AI Prompt component dynamically.
|
|
5171
|
+
*
|
|
5172
|
+
* @example
|
|
5173
|
+
* ```ts
|
|
5174
|
+
* export class DemoComponent {
|
|
5175
|
+
* @ViewChild('anchor', { read: ElementRef }) anchor: ElementRef;
|
|
5176
|
+
* constructor(private promptService: InlineAIPromptService) {}
|
|
5177
|
+
*
|
|
5178
|
+
* open(): void {
|
|
5179
|
+
* this.promptService.open({
|
|
5180
|
+
* popupSettings: { anchor: this.anchor },
|
|
5181
|
+
* placeholder: 'Enter your prompt...'
|
|
5182
|
+
* });
|
|
5183
|
+
* }
|
|
5184
|
+
* }
|
|
5185
|
+
* ```
|
|
5186
|
+
* ```html
|
|
5187
|
+
* <button #anchor (click)="open()">Ask AI</button>
|
|
5188
|
+
* ```
|
|
5189
|
+
*/
|
|
5190
|
+
declare class InlineAIPromptService {
|
|
5191
|
+
private popupService;
|
|
5192
|
+
/**
|
|
5193
|
+
* @hidden
|
|
5194
|
+
*/
|
|
5195
|
+
constructor(popupService: PopupService);
|
|
5196
|
+
/**
|
|
5197
|
+
* Opens an Inline AI Prompt component in a popup. The popup appears near the specified anchor element or at the provided offset coordinates.
|
|
5198
|
+
*
|
|
5199
|
+
* @param {InlineAIPromptSettings} options The options for the InlineAIPromptComponent.
|
|
5200
|
+
* @returns {PopupRef} A reference to the popup.
|
|
5201
|
+
*/
|
|
5202
|
+
open(options: InlineAIPromptSettings): PopupRef;
|
|
5203
|
+
/**
|
|
5204
|
+
* Projects the input options onto the component instance.
|
|
5205
|
+
*/
|
|
5206
|
+
private projectComponentInputs;
|
|
5207
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InlineAIPromptService, never>;
|
|
5208
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InlineAIPromptService>;
|
|
5209
|
+
}
|
|
5210
|
+
|
|
5211
|
+
/**
|
|
5212
|
+
* @hidden
|
|
5213
|
+
*/
|
|
5214
|
+
declare class LocalizedMessagesDirective extends LlmKitMessages {
|
|
5215
|
+
protected service: LocalizationService;
|
|
5216
|
+
constructor(service: LocalizationService);
|
|
5217
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
|
|
5218
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoLlmKitLocalizedMessages]", never, {}, {}, never, never, true, never>;
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* Utility array that contains all AIPrompt related components and directives.
|
|
5223
|
+
*
|
|
5224
|
+
* @example
|
|
5225
|
+
* ```ts
|
|
5226
|
+
* import { Component } from '@angular/core';
|
|
5227
|
+
* import { KENDO_AIPROMPT } from '@progress/kendo-angular-conversational-ui';
|
|
5228
|
+
*
|
|
5229
|
+
* @Component({
|
|
5230
|
+
* standalone: true,
|
|
5231
|
+
* imports: [KENDO_AIPROMPT],
|
|
5232
|
+
* selector: 'my-app',
|
|
5233
|
+
* template: `<kendo-aiprompt></kendo-aiprompt>`
|
|
5234
|
+
* })
|
|
5235
|
+
* export class AppComponent {}
|
|
5236
|
+
* ```
|
|
5237
|
+
*/
|
|
5238
|
+
declare const KENDO_AIPROMPT: readonly [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective];
|
|
5239
|
+
/**
|
|
5240
|
+
* Utility array that contains all Chat related components and directives.
|
|
5241
|
+
*
|
|
5242
|
+
* @example
|
|
5243
|
+
* ```ts
|
|
5244
|
+
* import { Component } from '@angular/core';
|
|
5245
|
+
* import { KENDO_CHAT } from '@progress/kendo-angular-conversational-ui';
|
|
5246
|
+
*
|
|
5247
|
+
* @Component({
|
|
5248
|
+
* standalone: true,
|
|
5249
|
+
* imports: [KENDO_CHAT],
|
|
5250
|
+
* selector: 'my-app',
|
|
5251
|
+
* template: `<kendo-chat></kendo-chat>`
|
|
5252
|
+
* })
|
|
5253
|
+
* export class AppComponent {}
|
|
5254
|
+
* ```
|
|
5255
|
+
*/
|
|
5256
|
+
declare const KENDO_CHAT: readonly [typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatMessageBoxStartAffixTemplateDirective, typeof ChatMessageBoxEndAffixTemplateDirective, typeof ChatMessageBoxTopAffixTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective];
|
|
5257
|
+
/**
|
|
5258
|
+
* Utility array that contains all InlineAIPrompt related components and directives.
|
|
5259
|
+
*
|
|
5260
|
+
* @example
|
|
5261
|
+
* ```ts
|
|
4300
5262
|
* import { Component } from '@angular/core';
|
|
4301
5263
|
* import { KENDO_INLINEAIPROMPT } from '@progress/kendo-angular-conversational-ui';
|
|
4302
5264
|
*
|
|
@@ -4328,6 +5290,24 @@ declare const KENDO_INLINEAIPROMPT: readonly [typeof InlineAIPromptComponent, ty
|
|
|
4328
5290
|
* ```
|
|
4329
5291
|
*/
|
|
4330
5292
|
declare const KENDO_PROMPTBOX: readonly [typeof PromptBoxComponent, typeof PromptBoxCustomMessagesComponent, typeof PromptBoxStartAffixComponent, typeof PromptBoxEndAffixComponent, typeof PromptBoxTopAffixComponent, typeof PromptBoxSpeechToTextButtonComponent, typeof PromptBoxActionButtonComponent, typeof PromptBoxFileSelectButtonComponent, typeof PromptBoxHeaderTemplateDirective];
|
|
5293
|
+
/**
|
|
5294
|
+
* Utility array that contains all LLM Kit related components and directives.
|
|
5295
|
+
*
|
|
5296
|
+
* @example
|
|
5297
|
+
* ```ts
|
|
5298
|
+
* import { Component } from '@angular/core';
|
|
5299
|
+
* import { KENDO_LLM_KIT } from '@progress/kendo-angular-conversational-ui';
|
|
5300
|
+
*
|
|
5301
|
+
* @Component({
|
|
5302
|
+
* standalone: true,
|
|
5303
|
+
* imports: [KENDO_LLM_KIT],
|
|
5304
|
+
* selector: 'my-app',
|
|
5305
|
+
* template: `<kendo-reasoning content="Analyzing the request."></kendo-reasoning>`
|
|
5306
|
+
* })
|
|
5307
|
+
* export class AppComponent {}
|
|
5308
|
+
* ```
|
|
5309
|
+
*/
|
|
5310
|
+
declare const KENDO_LLM_KIT: readonly [typeof ReasoningComponent, typeof ChainOfThoughtComponent, typeof ToolCallComponent, typeof CitationComponent, typeof CheckpointComponent, typeof LlmKitCustomMessagesComponent, typeof ReasoningContentTemplateDirective, typeof ThoughtTemplateDirective, typeof ToolCallParametersTemplateDirective, typeof ToolCallApprovalTemplateDirective, typeof ToolCallResultTemplateDirective, typeof ToolCallErrorTemplateDirective, typeof CitationBodyTemplateDirective, typeof CheckpointTemplateDirective];
|
|
4331
5311
|
/**
|
|
4332
5312
|
* Utility array that contains all `@progress/kendo-angular-conversational-ui` related components and directives.
|
|
4333
5313
|
*
|
|
@@ -4348,7 +5328,7 @@ declare const KENDO_PROMPTBOX: readonly [typeof PromptBoxComponent, typeof Promp
|
|
|
4348
5328
|
* export class AppComponent {}
|
|
4349
5329
|
* ```
|
|
4350
5330
|
*/
|
|
4351
|
-
declare const KENDO_CONVERSATIONALUI: readonly [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatMessageBoxStartAffixTemplateDirective, typeof ChatMessageBoxEndAffixTemplateDirective, typeof ChatMessageBoxTopAffixTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent, typeof PromptBoxComponent, typeof PromptBoxCustomMessagesComponent, typeof PromptBoxStartAffixComponent, typeof PromptBoxEndAffixComponent, typeof PromptBoxTopAffixComponent, typeof PromptBoxSpeechToTextButtonComponent, typeof PromptBoxActionButtonComponent, typeof PromptBoxFileSelectButtonComponent, typeof PromptBoxHeaderTemplateDirective];
|
|
5331
|
+
declare const KENDO_CONVERSATIONALUI: readonly [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatMessageBoxStartAffixTemplateDirective, typeof ChatMessageBoxEndAffixTemplateDirective, typeof ChatMessageBoxTopAffixTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent, typeof PromptBoxComponent, typeof PromptBoxCustomMessagesComponent, typeof PromptBoxStartAffixComponent, typeof PromptBoxEndAffixComponent, typeof PromptBoxTopAffixComponent, typeof PromptBoxSpeechToTextButtonComponent, typeof PromptBoxActionButtonComponent, typeof PromptBoxFileSelectButtonComponent, typeof PromptBoxHeaderTemplateDirective, typeof ReasoningComponent, typeof ChainOfThoughtComponent, typeof ToolCallComponent, typeof CitationComponent, typeof CheckpointComponent, typeof LlmKitCustomMessagesComponent, typeof ReasoningContentTemplateDirective, typeof ThoughtTemplateDirective, typeof ToolCallParametersTemplateDirective, typeof ToolCallApprovalTemplateDirective, typeof ToolCallResultTemplateDirective, typeof ToolCallErrorTemplateDirective, typeof CitationBodyTemplateDirective, typeof CheckpointTemplateDirective];
|
|
4352
5332
|
|
|
4353
|
-
export { AIPromptComponent, AIPromptCustomMessagesComponent, AIPromptModule, AIPromptOutputBodyTemplateDirective, AIPromptOutputTemplateDirective, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, AuthorMessageTemplateDirective, ChatComponent, ChatHeaderTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatModule, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatTimestampTemplateDirective, ChatUserStatusTemplateDirective, CommandViewComponent, ConversationalUIModule, CustomMessagesComponent, CustomViewComponent, ExecuteActionEvent, HeroCardComponent, InlineAIPromptComponent, InlineAIPromptCustomMessagesComponent, InlineAIPromptModule, InlineAIPromptOutputTemplateDirective, InlineAIPromptService, InlineAIPromptSettings, KENDO_AIPROMPT, KENDO_CHAT, KENDO_CONVERSATIONALUI, KENDO_INLINEAIPROMPT, KENDO_PROMPTBOX, MessageContentTemplateDirective, MessageTemplateDirective, NoDataTemplateDirective, OutputViewComponent, PromptBoxActionButtonComponent, PromptBoxComponent, PromptBoxCustomMessagesComponent, PromptBoxEndAffixComponent, PromptBoxFileSelectButtonComponent, PromptBoxHeaderTemplateDirective, PromptBoxSpeechToTextButtonComponent, PromptBoxStartAffixComponent, PromptBoxTopAffixComponent, PromptViewComponent, ReceiverMessageContentTemplateDirective, ReceiverMessageTemplateDirective, SendMessageEvent };
|
|
4354
|
-
export type { AIPromptSettings, Action, ActionButtonEvent, ActionButtonSettings, ActionType, Attachment, AttachmentLayout, ChatFile, ChatLoadMoreEvent, ChatReferencedMessageClickEvent, ChatSuggestion, CommandExecuteEvent, ConversationalUIModelFields, FileAction, FileActionEvent, FileDownloadEvent, FileSelectButtonSettings, FilesLayoutMode, InlineAIPromptCommand, InlineAIPromptMessages, InlineAIPromptOutput, InlineAIPromptOutputAction, InlineAIPromptOutputActionClickEvent, InlineAIPromptPopupSettings, InlineAIPromptRequestEvent, Message, MessageAction, MessageActionEvent, MessageBoxSettings, MessageBoxType, MessageSettings, MessageStatus, MessageWidthMode, OutputRatingChangeEvent, PromptBoxMode, PromptCommand, PromptOutput, PromptOutputRating, PromptRequestEvent, QuickActionsLayoutMode, ResendMessageEvent, ScrollMode, SendButtonSettings, SuggestionsLayoutMode, TimestampVisibilityMode, User };
|
|
5333
|
+
export { AIPromptComponent, AIPromptCustomMessagesComponent, AIPromptModule, AIPromptOutputBodyTemplateDirective, AIPromptOutputTemplateDirective, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, AuthorMessageTemplateDirective, ChainOfThoughtComponent, ChatComponent, ChatHeaderTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatModule, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatTimestampTemplateDirective, ChatUserStatusTemplateDirective, CheckpointComponent, CheckpointTemplateDirective, CitationBodyTemplateDirective, CitationComponent, CommandViewComponent, ConversationalUIModule, CustomMessagesComponent, CustomViewComponent, ExecuteActionEvent, HeroCardComponent, InlineAIPromptComponent, InlineAIPromptCustomMessagesComponent, InlineAIPromptModule, InlineAIPromptOutputTemplateDirective, InlineAIPromptService, InlineAIPromptSettings, KENDO_AIPROMPT, KENDO_CHAT, KENDO_CONVERSATIONALUI, KENDO_INLINEAIPROMPT, KENDO_LLM_KIT, KENDO_PROMPTBOX, LlmKitCustomMessagesComponent, LlmKitMessages, LocalizedMessagesDirective, MessageContentTemplateDirective, MessageTemplateDirective, NoDataTemplateDirective, OutputViewComponent, PromptBoxActionButtonComponent, PromptBoxComponent, PromptBoxCustomMessagesComponent, PromptBoxEndAffixComponent, PromptBoxFileSelectButtonComponent, PromptBoxHeaderTemplateDirective, PromptBoxSpeechToTextButtonComponent, PromptBoxStartAffixComponent, PromptBoxTopAffixComponent, PromptViewComponent, ReasoningComponent, ReasoningContentTemplateDirective, ReceiverMessageContentTemplateDirective, ReceiverMessageTemplateDirective, SendMessageEvent, ThoughtTemplateDirective, ToolCallApprovalTemplateDirective, ToolCallComponent, ToolCallErrorTemplateDirective, ToolCallParametersTemplateDirective, ToolCallResultTemplateDirective };
|
|
5334
|
+
export type { AIPromptSettings, Action, ActionButtonEvent, ActionButtonSettings, ActionType, Attachment, AttachmentLayout, ChatFile, ChatLoadMoreEvent, ChatReferencedMessageClickEvent, ChatSuggestion, CheckpointActionEvent, CheckpointState, CitationOpenEvent, CitationSource, CommandExecuteEvent, ConversationalUIModelFields, FileAction, FileActionEvent, FileDownloadEvent, FileSelectButtonSettings, FilesLayoutMode, InlineAIPromptCommand, InlineAIPromptMessages, InlineAIPromptOutput, InlineAIPromptOutputAction, InlineAIPromptOutputActionClickEvent, InlineAIPromptPopupSettings, InlineAIPromptRequestEvent, Message, MessageAction, MessageActionEvent, MessageBoxSettings, MessageBoxType, MessageSettings, MessageStatus, MessageWidthMode, OutputRatingChangeEvent, PromptBoxMode, PromptCommand, PromptOutput, PromptOutputRating, PromptRequestEvent, QuickActionsLayoutMode, ResendMessageEvent, ScrollMode, SendButtonSettings, SuggestionsLayoutMode, Thought, TimestampVisibilityMode, ToolCallAction, ToolCallActionEvent, ToolCallState, User };
|