> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Type Alias: RendererToAgentMessage

> **RendererToAgentMessage** = `object` & \{ `action`: [`UserActionPayload`](/next/api/genui/a2ui/interfaces/UserActionPayload.md); } | \{ `callAgentFunction`: \{ `callFunction`: [`ProtocolFunctionCall`](/next/api/genui/a2ui/interfaces/ProtocolFunctionCall.md); `functionCallId`: `string`; `surfaceId`: `string`; }; } | \{ `rendererFunctionResponse`: [`FunctionResponse`](/next/api/genui/a2ui/type-aliases/FunctionResponse.md); } | \{ `error`: \{ `code`: `string`; `functionCallId?`: `string`; `message`: `string`; `path?`: `string`; `surfaceId?`: `string`; }; }

Renderer-to-agent v1.0 wire envelope. Transport metadata is separate.

## Type Declaration

### version

> **version**: `"1.0"`
