Document onTriggeredRun callback option in streams guide

Co-authored-by: Eric Allam <eric@trigger.dev>
This commit is contained in:
Cursor Agent
2026-02-15 00:05:32 +00:00
parent 3f1d98fd88
commit e8222f76b9
+1
View File
@@ -613,6 +613,7 @@ The default payload sent to your task is a rich, typed object that includes:
- `payloadMapper` (sync or async) for custom task payload shapes
- `triggerOptions` as an object or resolver function (sync or async)
- `runStore` for custom reconnect-state persistence (including async stores)
- `onTriggeredRun` callback (sync or async) to persist or observe run IDs
```ts
import type { TriggerChatRunState, TriggerChatRunStore } from "@trigger.dev/ai";