Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

CodeModeExternalErrorEvent.md

99 lines1.6 KB

Defined in: packages/ai/src/types.ts:1555

Custom event for extensibility.

@ag-ui/core provides: name, value, subagentRunId?

Extends

Properties

metadata?

optional metadata?: Record<string, any>;

Defined in: packages/ai/src/types.ts:1416

Extra information attached to this event.

Inherited from

CustomEvent.metadata


name

name: "code_mode:external_error";

Defined in: packages/ai/src/types.ts:1556

What this custom event is. Required: without it a consumer cannot route the value.

Overrides

CustomEvent.name

type

type: "CUSTOM";

Defined in: packages/ai/src/types.ts:1415

Inherited from

CustomEvent.type


value

value: object;

Defined in: packages/ai/src/types.ts:1557

The payload. Any JSON value, and required.

duration

duration: number;

error

error: string;

function

function: string;

Overrides

CustomEvent.value