ai/ai-chat/ai-chat-suggestion.component.ts

Description

A suggestion chip that can be displayed in the chat interface. When clicked, it automatically populates and sends a predefined prompt.

Example

Metadata

Relationships

Depends on

@if (!useAiButtons()) {
  <button
    class="btn btn-default btn-sm"
    [title]="prompt() | translate"
    (click)="suggest()"
    [disabled]="disabled()"
  >
    <i [c8yIcon]="icon()"></i>
    {{ label() | translate }}
  </button>
} @else {
  <button
    class="btn btn-sm btn-ai"
    [title]="prompt() | translate"
    (click)="suggest()"
    [disabled]="disabled()"
  >
    <span>{{ label() | translate }}</span>
  </button>
}

results matching ""

    No results matching ""