@threadplane/chatFunctionv0.3.4

buildA2uiActionMessage

Builds a v0.9 A2uiActionMessage from handler params and the current surface. The action.context is the resolved plain object the renderer produced from the component's action.event.context. Sets action.label when the source component is a Button with a Text child whose text is a non-empty bare literal.

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

Declaration · overload 1

export declare function buildA2uiActionMessage(params: Record<string, unknown>, surface: A2uiSurface): A2uiActionMessage;

Parameters

params · required
Record<string, unknown>
surface · required
A2uiSurface

Returns

A2uiActionMessage