ai/agent-chat/agent-to-agent-approval-details.component.ts

Description

Shows the prompt of an agent-2-agent call awaiting approval, instead of its raw input, so the user can judge what the called agent is asked to do.

Example

Metadata

Relationships

Used by

No results matching.

Depends on

@let promptLabel = 'Prompt`sent by an AI agent to another AI agent`' | translate;
@let answerLabel = 'Previous answer`of an AI agent, sent along with a prompt`' | translate;

@for (message of messages(); track $index) {
  <pre
    class="ai-tool-call__prompt fit-w small text-pre-wrap text-break-word"
    [attr.data-label]="message.role === 'user' ? promptLabel : answerLabel"
    data-cy="agent-to-agent-message"
    >{{ message.content }}</pre
  >
} @empty {
  <!-- An input without messages is shown as it is -->
  <pre
    class="fit-w small text-pre-wrap text-break-word"
    [attr.data-label]="'Tool input' | translate"
    >{{ tool().input | json }}</pre
  >
}

results matching ""

    No results matching ""