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· requiredRecord<string, unknown>surface· requiredA2uiSurface
Returns
A2uiActionMessage