ai/agent-chat/agent-to-agent-approval-details.component.ts
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.
| changeDetection | ChangeDetectionStrategy.OnPush |
||||
| selector | c8y-agent-to-agent-approval-details |
||||
| imports |
C8yTranslatePipe
|
||||
| templateVariables |
|
||||
| templateUrl | ./agent-to-agent-approval-details.component.html |
No results matching.
C8yTranslatePipe
JsonPipe
@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
>
}