Skip to content

Commit 6f4b9f0

Browse files
Document onError callback payload fields
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent 4cf0b97 commit 6f4b9f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/ai/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ the chat stream is consumed. Callback failures are ignored so chat streaming can
133133
You can optionally provide `onError` to observe non-fatal transport errors
134134
(for example callback failures or reconnect setup issues).
135135

136+
The callback receives:
137+
138+
- `phase`: `"onTriggeredRun" | "consumeTrackingStream" | "reconnect"`
139+
- `chatId`
140+
- `runId`
141+
- `error`
142+
136143
## Reconnect semantics
137144

138145
- `reconnectToStream({ chatId })` resumes only while a stream is still active.

0 commit comments

Comments
 (0)