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

GenerationErrorInfo.md

32 lines539 Bytes

1---
2id: GenerationErrorInfo
3title: GenerationErrorInfo
4---
5​
6Defined in: packages/ai/src/activities/middleware/types.ts:155
7​
8Information passed to [GenerationMiddleware.onError](GenerationMiddleware.md#onerror).
9​
10## Properties
11​
12### duration
13​
14```ts
15duration: number;
16```
17​
18Defined in: packages/ai/src/activities/middleware/types.ts:159
19​
20Wall-clock duration until the failure, in milliseconds.
21​
22***
23​
24### error
25​
26```ts
27error: unknown;
28```
29​
30Defined in: packages/ai/src/activities/middleware/types.ts:157
31​
32The thrown value (typically an `Error`).