Open History to see the last commit
1---
2id: genericInterruptContinuationFromDescriptor
3title: genericInterruptContinuationFromDescriptor
4---
5
6```ts
7function genericInterruptContinuationFromDescriptor(interrupt):
8 | GenericInterruptContinuation
9 | undefined;
10```
11
12Defined in: [packages/ai/src/generic-interrupt-continuation.ts:123](https://github.com/TanStack/ai/blob/main/packages/ai/src/generic-interrupt-continuation.ts#L123)
13
14Build the resume-metadata continuation from an outbound AG-UI interrupt.
15
16Returns `undefined` when the descriptor is not a first-party generic item.
17
18## Parameters
19
20### interrupt
21
22`Interrupt`
23
24## Returns
25
26 \| [`GenericInterruptContinuation`](../interfaces/GenericInterruptContinuation.md)
27 \| `undefined`