Defined in: packages/ai/src/types.ts:1505
Emitted when an MCP tool returns a ui:// resource (MCP Apps). Reconciled into a UIResourcePart on the assistant UIMessage. Never enters model input.
optional model?: string;Defined in: packages/ai/src/types.ts:1414
Model identifier for multi-model support
name: "ui-resource";Defined in: packages/ai/src/types.ts:1506
CustomEvent.nameoptional runId?: string;Defined in: packages/ai/src/types.ts:1422
optional threadId?: string;Defined in: packages/ai/src/types.ts:1421
Routing metadata the TanStack engine attaches when emitting CUSTOM events that need to be correlated with a specific thread/run. Stripped by strip-to-spec-middleware before going on the wire so the AG-UI consumer never sees them (when that middleware is enabled).
type: "CUSTOM";Defined in: packages/ai/src/types.ts:1412
value: object;Defined in: packages/ai/src/types.ts:1507
optional meta?: Record<string, unknown>;resource: object;optional blob?: string;mimeType: string;optional text?: string;uri: string;optional serverId?: string;toolCallId: string;toolName: string;CustomEvent.value