Open History to see the last commit
1---
2id: InterruptDefinition
3title: InterruptDefinition
4---
5
6Defined in: packages/ai/src/interrupt-definition.ts:202
7
8## Type Parameters
9
10### TId
11
12`TId` *extends* `string`
13
14### TPayloadSchema
15
16`TPayloadSchema` *extends* `PortableSchema` \| `undefined`
17
18### TResponseSchema
19
20`TResponseSchema` *extends* `PortableSchema` \| `undefined`
21
22### TPayload
23
24`TPayload` = `unknown`
25
26### TPayloadInput
27
28`TPayloadInput` = `TPayload`
29
30## Properties
31
32### id
33
34```ts
35readonly id: TId;
36```
37
38Defined in: packages/ai/src/interrupt-definition.ts:209
39
40***
41
42### interrupt
43
44```ts
45interrupt: <TInput>(input) => GenericInterruptRequestFor<InterruptDefinition<TId, TPayloadSchema, TResponseSchema, TPayload, TPayloadInput>, TPayloadSchema, TPayload>;
46```
47
48Defined in: packages/ai/src/interrupt-definition.ts:212
49
50#### Type Parameters
51
52##### TInput
53
54`TInput`
55
56#### Parameters
57
58##### input
59
60`TInput` & `ValidInterruptInput`\<`TInput`, `TPayloadSchema`, `TPayloadInput`\>
61
62#### Returns
63
64`GenericInterruptRequestFor`\<`InterruptDefinition`\<`TId`, `TPayloadSchema`, `TResponseSchema`, `TPayload`, `TPayloadInput`\>, `TPayloadSchema`, `TPayload`\>
65
66***
67
68### payloadSchema
69
70```ts
71readonly payloadSchema: TPayloadSchema;
72```
73
74Defined in: packages/ai/src/interrupt-definition.ts:210
75
76***
77
78### responseSchema
79
80```ts
81readonly responseSchema: TResponseSchema;
82```
83
84Defined in: packages/ai/src/interrupt-definition.ts:211