a2uiRenderer

The A2UI renderer for <chat [a2ui]>: with it, a message that carries A2UI content renders its surfaces. Without it, the chat UI shows that content as text and bundles none of the A2UI code.

import { a2uiRenderer } from '@threadplane/angular/a2ui';

Declaration · overload 1

export declare function a2uiRenderer(options?: A2uiRendererOptions): ChatA2uiRenderer;

Parameters

options · optional
A2uiRendererOptions

Returns

ChatA2uiRenderer

Examples

import { a2uiRenderer } from '@threadplane/angular/a2ui';

protected readonly a2ui = a2uiRenderer();
// <chat [agent]="agent" [a2ui]="a2ui" />