You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e9461cb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/ai-chat/reference.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: "Complete API reference for the AI Agents SDK — backend options,
9
9
| Dependency | Supported | Notes |
10
10
|---|---|---|
11
11
|`@trigger.dev/sdk`|`>=4.5.0`| The chat agent surface lives in this SDK release. Install with `@trigger.dev/sdk@latest`. |
12
-
|`ai` (Vercel AI SDK) |`^5.0.0 \|\| ^6.0.0 \|\| >=7.0.0-canary <8`| Declared as a peer. v6 is what we develop against day to day; v5 and v7 work too (v7 is in canary/beta upstream). Your installed `ai` major drives the chat surface's types. |
12
+
|`ai` (Vercel AI SDK) |`^5.0.0 \|\| ^6.0.0 \|\| >=7.0.0-canary <8`| Declared as a peer. v6 is what we develop against day to day; v5 and v7 work too. Your installed `ai` major drives the chat surface's types. |
13
13
|`@ai-sdk/otel`|`1.x` (v7 only) | Optional. AI SDK 7 moved model-call span emission out of `ai` core into this adapter. Install it alongside `ai@7` and the SDK auto-registers it, so your model calls show up as spans in the run trace. Not needed on v5/v6, where `ai` core emits spans. See [AI SDK 7 telemetry](#ai-sdk-7-telemetry) below. |
14
14
|`@ai-sdk/react`| matches your `ai` major | Pulled in by `useChat`. The transport works with whichever React hook ships in the same major as your `ai` version. |
15
15
|`react`|`^18.0 \|\| ^19.0`| Required only if you use `@trigger.dev/sdk/chat/react` (the frontend transport). Server-only consumers can skip React entirely. |
Copy file name to clipboardExpand all lines: docs/limits.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,10 +107,10 @@ Additional bundles above the Pro tier are available for $10/month per preview br
107
107
| Pricing tier | Limit |
108
108
| :----------- | :-------------------------- |
109
109
| Free | 10 concurrent connections |
110
-
| Hobby |50 concurrent connections|
111
-
| Pro |500+ concurrent connections |
110
+
| Hobby |150 concurrent connections |
111
+
| Pro |1,000+ concurrent connections |
112
112
113
-
Additional bundles are available for $10/month per 100 concurrent connections. Contact us via [email](https://trigger.dev/contact) or [Discord](https://trigger.dev/discord) to request more.
113
+
Additional bundles are available for $10/month per 1,000 concurrent connections. Contact us via [email](https://trigger.dev/contact) or [Discord](https://trigger.dev/discord) to request more.
Copy file name to clipboardExpand all lines: docs/migrating-from-v3.mdx
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Trigger.dev v3 is end of life. v4 is stable, fully supported, and recommended fo
30
30
|[onComplete](/tasks/overview#oncomplete-function)| Run code when a run completes, regardless of whether it succeeded or failed. |
31
31
|[onCancel](/tasks/overview#oncancel-function)| Run code when a run is cancelled. |
32
32
|[Hidden tasks](/hidden-tasks)| Create tasks that are not exported from your trigger files but can still be executed. |
33
-
|[Middleware & locals](#middleware-and-locals)| The middleware system runs at the top level, executing before and after all lifecycle hooks. The locals API allows sharing data between middleware and hooks. |
33
+
|[Middleware & locals](/tasks/overview#middleware-and-locals-functions)| The middleware system runs at the top level, executing before and after all lifecycle hooks. The locals API allows sharing data between middleware and hooks. |
34
34
|[useWaitToken](/realtime/react-hooks/use-wait-token)| Use the useWaitToken hook to complete a wait token from a React component. |
35
35
|[Task-backed AI tools](/tasks/schemaTask#task-backed-ai-tools)| Use `schemaTask` with AI SDK `tool()` and `ai.toolExecute()` (legacy `ai.tool` is deprecated). |
36
36
@@ -260,20 +260,24 @@ import { task } from "@trigger.dev/sdk";
260
260
261
261
exportconst myTask =task({
262
262
id: "my-task",
263
-
onStart: ({ payload, ctx }) => {},
263
+
onStartAttempt: ({ payload, ctx }) => {},
264
264
// The run function still uses separate parameters
265
265
run: async (payload, { ctx }) => {},
266
266
});
267
267
```
268
268
269
+
<Note>
270
+
`onStart` is deprecated in favor of `onStartAttempt`. `onStart` ran once per run, but `onStartAttempt` runs before every attempt, including retries. If your hook has side effects that should only happen once, check `ctx.attempt.number === 1` inside it.
0 commit comments