createA2uiActionMessage
Unpublished development API. This package is under development and is not available as a published release.
Builds the action message for one component's action.event, resolving
every context value against the surface's current data model as
resolveA2uiValue does. Returns null when the component is missing or has
no event action. For a component stamped from a child template, basePath
is its list item's path, and the message names the template component.
Nothing is sent; the caller transports it.
import { createA2uiActionMessage } from '@threadplane/content/a2ui';Declaration · overload 1
export declare function createA2uiActionMessage(surface: A2uiSurfaceSnapshot, sourceComponentId: string, timestamp?: string, basePath?: string): A2uiActionMessage | null;Parameters
surface· requiredA2uiSurfaceSnapshotsourceComponentId· requiredstringtimestamp· optionalstringbasePath· optionalstring
Returns
A2uiActionMessage | null