Skip to content

Commit 5d24c69

Browse files
Document supported header input formats for transport
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent 19909ea commit 5d24c69

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/tasks/streams.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ The default payload sent to your task is a rich, typed object that includes:
614614
- `triggerOptions` as an object or resolver function (sync or async)
615615
- `runStore` for custom reconnect-state persistence (including async stores)
616616
- `onTriggeredRun` callback (sync or async) to persist or observe run IDs
617+
- headers passed through transport can be object, `Headers`, or tuple arrays
617618

618619
```ts
619620
import type { TriggerChatRunState, TriggerChatRunStore } from "@trigger.dev/ai";

packages/ai/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Use `TriggerChatTransportPayload<UIMessage>` in your task for the default rich p
5252
- `messages`
5353
- `request` (`headers`, `body`, `metadata`)
5454

55+
Incoming `request.headers` can be supplied as a plain object, `Headers`, or tuple arrays.
56+
5557
```ts
5658
import type { TriggerChatTransportPayload } from "@trigger.dev/ai";
5759
import { UIMessage } from "ai";

0 commit comments

Comments
 (0)