Defined in: packages/ai/src/types.ts:1561
Custom event for extensibility.
@ag-ui/core provides: name, value TanStack AI adds: model?
Uses Pick (not extends) so the Zod passthrough index signature does not erase discriminant property access on KnownCustomEvent / TypedStreamChunk unions.
optional model?: string;Defined in: packages/ai/src/types.ts:1414
Model identifier for multi-model support
name: "code_mode:external_error";Defined in: packages/ai/src/types.ts:1562
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:1563
duration: number;error: string;function: string;CustomEvent.value