Document exported transport option helper types in streams docs

Co-authored-by: Eric Allam <eric@trigger.dev>
This commit is contained in:
Cursor Agent
2026-02-15 00:30:36 +00:00
parent e69a1d2550
commit 5d492d6c9a
+6
View File
@@ -639,6 +639,12 @@ class MemoryRunStore implements TriggerChatRunStore {
`reconnectToStream()` only resumes active streams. When a stream completes or errors,
the transport clears stored run state and future reconnect attempts return `null`.
For richer TypeScript ergonomics in app code, `@trigger.dev/ai` also exports:
- `TriggerChatHeadersInput`
- `TriggerChatSendMessagesOptions`
- `TriggerChatReconnectOptions`
## Complete Example: AI Streaming
### Define the stream