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

ErrorInfo.md

32 lines452 Bytes

1---
2id: ErrorInfo
3title: ErrorInfo
4---
5​
6Defined in: packages/ai/src/activities/chat/middleware/types.ts:602
7​
8Information passed to onError.
9​
10## Properties
11​
12### duration
13​
14```ts
15duration: number;
16```
17​
18Defined in: packages/ai/src/activities/chat/middleware/types.ts:606
19​
20Duration until error in milliseconds
21​
22***
23​
24### error
25​
26```ts
27error: unknown;
28```
29​
30Defined in: packages/ai/src/activities/chat/middleware/types.ts:604
31​
32The error that caused the failure