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

interruptItemError.md

51 lines856 Bytes

1---
2id: interruptItemError
3title: interruptItemError
4---
5​
6```ts
7function interruptItemError(
8 input,
9 interruptId,
10 code,
11 message,
12 options?): InterruptSubmissionError;
13```
14​
15Defined in: [packages/ai/src/interrupt-resume.ts:140](https://github.com/TanStack/ai/blob/main/packages/ai/src/interrupt-resume.ts#L140)
16​
17## Parameters
18​
19### input
20​
21`Pick`\<[`ValidateInterruptResumeBatchInput`](../interfaces/ValidateInterruptResumeBatchInput.md), `"threadId"` \| `"interruptedRunId"` \| `"generation"`\>
22​
23### interruptId
24​
25`string`
26​
27### code
28​
29[`ItemInterruptErrorCode`](../type-aliases/ItemInterruptErrorCode.md)
30​
31### message
32​
33`string`
34​
35### options?
36​
37#### path?
38​
39readonly (`string` \| `number`)[]
40​
41#### retryable?
42​
43`boolean`
44​
45#### source?
46​
47`"server"` \| `"client"`
48​
49## Returns
50​
51[`InterruptSubmissionError`](../type-aliases/InterruptSubmissionError.md)