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

CodeModeExternalCallEvent.md

99 lines1.2 KB

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

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:1756

Extra information attached to this event.

Inherited from

CustomEvent.metadata


name

name: "code_mode:external_call";

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

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:1755

Inherited from

CustomEvent.type


value

value: object;

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

The payload. Any JSON value, and required.

args

args: unknown;

function

function: string;

timestamp

timestamp: number;

Overrides

CustomEvent.value