--- id: CodeModeExecutionStartedEvent title: CodeModeExecutionStartedEvent --- # Interface: CodeModeExecutionStartedEvent Defined in: [packages/ai/src/types.ts:1487](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1487) Custom event for extensibility. @ag-ui/core provides: `name`, `value` Uses `Pick` (not `extends`) so the Zod passthrough index signature does not erase discriminant property access on [KnownCustomEvent](../type-aliases/KnownCustomEvent.md) unions. ## Extends - [`CustomEvent`](CustomEvent.md) ## Properties ### metadata? ```ts optional metadata?: Record; ``` Defined in: [packages/ai/src/types.ts:1368](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1368) #### Inherited from [`CustomEvent`](CustomEvent.md).[`metadata`](CustomEvent.md#metadata) *** ### name ```ts name: "code_mode:execution_started"; ``` Defined in: [packages/ai/src/types.ts:1488](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1488) #### Overrides ```ts CustomEvent.name ``` *** ### type ```ts type: "CUSTOM"; ``` Defined in: [packages/ai/src/types.ts:1367](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1367) #### Inherited from [`CustomEvent`](CustomEvent.md).[`type`](CustomEvent.md#type) *** ### value ```ts value: object; ``` Defined in: [packages/ai/src/types.ts:1489](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1489) #### codeLength ```ts codeLength: number; ``` #### timestamp ```ts timestamp: number; ``` #### Overrides ```ts CustomEvent.value ```