ChatToolCallTemplateDirective

Registers a per-tool-name template inside <chat-tool-calls>. The primitive collects all directive instances via contentChildren() and dispatches incoming calls by their name field. A literal "*" name registers a wildcard catch-all that handles any tool name without a specific template registered.

Usage:

<chat-tool-calls [agent]="agent" [message]="msg"> <ng-template chatToolCallTemplate="search_web" let-call let-status="status"> <my-search-result-card [query]="call.args.query" [status]="status"/> </ng-template> <ng-template chatToolCallTemplate="*" let-call> <chat-tool-call-card [toolCall]="call"/> </ng-template> </chat-tool-calls>

import { ChatToolCallTemplateDirective } from '@threadplane/chat';

Declaration

export declare class ChatToolCallTemplateDirective  {
  readonly name: import("@angular/core").InputSignal<string>;
  readonly templateRef: TemplateRef<any>;
}

Angular template API

Selector: [chatToolCallTemplate]

Inputs

chatToolCallTemplate · required
string Property: name

Members

name

The tool name this template handles, or "*" for the wildcard catch-all.

readonly name: import("@angular/core").InputSignal<string>;

templateRef

readonly templateRef: TemplateRef<any>;