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

ToolInputAvailableEvent.md

100 lines1.6 KB

1---
2id: ToolInputAvailableEvent
3title: ToolInputAvailableEvent
4---
5​
6Defined in: [packages/ai/src/types.ts:1488](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1488)
7​
8## Deprecated
9​
10Native interrupts use RUN_FINISHED interrupt outcomes. This
11compatibility event remains readable until 1.0.
12​
13## Extends
14​
15- [`CustomEvent`](CustomEvent.md)
16​
17## Properties
18​
19### ~~metadata?~~
20​
21```ts
22optional metadata?: Record<string, any>;
23```
24​
25Defined in: [packages/ai/src/types.ts:1416](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1416)
26​
27Extra information attached to this event.
28​
29#### Inherited from
30​
31[`CustomEvent`](CustomEvent.md).[`metadata`](CustomEvent.md#metadata)
32​
33***
34​
35### ~~name~~
36​
37```ts
38name: "tool-input-available";
39```
40​
41Defined in: [packages/ai/src/types.ts:1489](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1489)
42​
43What this custom event is. Required: without it a consumer cannot route
44the value.
45​
46#### Overrides
47​
48```ts
49CustomEvent.name
50```
51​
52***
53​
54### ~~type~~
55​
56```ts
57type: "CUSTOM";
58```
59​
60Defined in: [packages/ai/src/types.ts:1415](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1415)
61​
62#### Inherited from
63​
64[`CustomEvent`](CustomEvent.md).[`type`](CustomEvent.md#type)
65​
66***
67​
68### ~~value~~
69​
70```ts
71value: object;
72```
73​
74Defined in: [packages/ai/src/types.ts:1490](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1490)
75​
76The payload. Any JSON value, and required.
77​
78#### ~~input~~
79​
80```ts
81input: unknown;
82```
83​
84#### ~~toolCallId~~
85​
86```ts
87toolCallId: string;
88```
89​
90#### ~~toolName~~
91​
92```ts
93toolName: string;
94```
95​
96#### Overrides
97​
98```ts
99CustomEvent.value
100```