René's URL Explorer Experiment


Title: feat(sdk): add AI SDK 7 support by ericallam · Pull Request #3833 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(sdk): add AI SDK 7 support by ericallam · Pull Request #3833 · triggerdotdev/trigger.dev

X Title: feat(sdk): add AI SDK 7 support by ericallam · Pull Request #3833 · triggerdotdev/trigger.dev

Description: Summary Adds support for Vercel AI SDK 7. The ai peer range now includes v7, and the chat.agent / chat surfaces work against v7's ESM-only build. v5 and v6 keep working unchanged, so this is additive. Telemetry on v7 On v7, model-call spans moved out of ai core into the separate @ai-sdk/otel adapter, so experimental_telemetry alone produces nothing until an integration is registered. Install @ai-sdk/otel alongside ai@7 and the SDK registers it once per worker at chat agent boot, so spans keep flowing into run traces with no extra setup. If you (or a library you import) already register @ai-sdk/otel, the SDK detects the existing integration and skips its own registration, so you won't get duplicate spans. Set TRIGGER_AI_SDK_OTEL_AUTOREGISTER=0 to disable auto-registration entirely. Notes ai@7 is ESM-only, which tripped TS1479 in the SDK's CommonJS build. Runtime value imports from ai are isolated behind a paired ESM/CJS shim so both module formats resolve the right form; type-only imports stay as direct import type at their use sites.

Open Graph Description: Summary Adds support for Vercel AI SDK 7. The ai peer range now includes v7, and the chat.agent / chat surfaces work against v7's ESM-only build. v5 and v6 keep working unchanged, so this is ad...

X Description: Summary Adds support for Vercel AI SDK 7. The ai peer range now includes v7, and the chat.agent / chat surfaces work against v7's ESM-only build. v5 and v6 keep working unchanged, so this i...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/3833

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fc05b794-ec0d-a186-ff23-a5640d81cf3b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8090:2C8A8F:27692D:3A8B43:6AFADCD2
html-safe-nonce86fea7f45c732127f68d3387743c018f5a27563347ed3921f8b75a1b32f4d6d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDkwOjJDOEE4RjoyNzY5MkQ6M0E4QjQzOjZBRkFEQ0QyIiwidmlzaXRvcl9pZCI6IjkxNTkxMTI3ODEzNDQ4NDE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccad3f6053ba5f4a4bfb74dc797bc2ecac2b0b2bafa62612928430784b44a8610
hovercard-subject-tagpull_request:3803890255
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/3833/files
twitter:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
og:image:altSummary Adds support for Vercel AI SDK 7. The ai peer range now includes v7, and the chat.agent / chat surfaces work against v7's ESM-only build. v5 and v6 keep working unchanged, so this is ad...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3833%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3833%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests65 (65)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
ericallamhttps://github.com/ericallam
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feat/ai-sdk-7-supporthttps://github.com/triggerdotdev/trigger.dev/tree/feat/ai-sdk-7-support
Conversation 13 https://github.com/triggerdotdev/trigger.dev/pull/3833
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/3833/commits
Checks 51 https://github.com/triggerdotdev/trigger.dev/pull/3833/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/3833/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
feat(sdk): add AI SDK 7 support https://github.com/triggerdotdev/trigger.dev/pull/3833/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/3833/files
cef4dd6 feat(sdk): add AI SDK 7 support ericallam Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3833/commits/cef4dd6afda7011bb31b943b84a0cbcb5e46a7d6
e55fa9f fix(sdk): propagate AI SDK 7 tool context to task-backed tools ericallam Jun 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3833/commits/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/3833/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
ai-sdk-7-support.md https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-3be9781a07e713238f4473b496c1b9cee8ded0fd1602aeb8cce8d682abea047e
package.json https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-0b810c38f3c138a3d5e44854edefd5eb966617ca84e62f06511f60acc40546c7
tsconfig.ai-v7.json https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-38223c176154014c457003efa4ed25a2355b0a1c74c2b198ee51ea6743204808
package.json https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-74cbf728f3b5da962bccdd9e4a98c1c390f0a401b887520637deaf6be7338e9d
ai-runtime-cjs.cts https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-520e5e606c047ae854a3adf217e8078fc228b532d71dfa394a7daececf2a6898
ai-runtime.ts https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-bcd611fb82c2e8cd926920bdb4110e0573b1c07d518a62df3af942c3a03698a6
ai.ts https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
aiAutoTelemetry.ts https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-fee2b15b3fcf224e78df41a9f8698f6b9eeeea3219930ee1aa1c3ff61ae0d78f
chat-client.ts https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-a48ddb8a7b58db88fdaddb729968985bdad12108519751cb49a567560ab917da
chat-server.ts https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
tsconfig.ai-v7.json https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-553bd62088a8429182e85625d2485a77767b4c2160236e6a0fd857a7c1b9c7c9
pnpm-lock.yaml https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bb
.changeset/ai-sdk-7-support.mdhttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-3be9781a07e713238f4473b496c1b9cee8ded0fd1602aeb8cce8d682abea047e
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/.changeset/ai-sdk-7-support.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
packages/core/package.jsonhttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-0b810c38f3c138a3d5e44854edefd5eb966617ca84e62f06511f60acc40546c7
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/core/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-0b810c38f3c138a3d5e44854edefd5eb966617ca84e62f06511f60acc40546c7
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-0b810c38f3c138a3d5e44854edefd5eb966617ca84e62f06511f60acc40546c7
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-0b810c38f3c138a3d5e44854edefd5eb966617ca84e62f06511f60acc40546c7
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-0b810c38f3c138a3d5e44854edefd5eb966617ca84e62f06511f60acc40546c7
packages/core/tsconfig.ai-v7.jsonhttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-38223c176154014c457003efa4ed25a2355b0a1c74c2b198ee51ea6743204808
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/core/tsconfig.ai-v7.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
packages/trigger-sdk/package.jsonhttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-74cbf728f3b5da962bccdd9e4a98c1c390f0a401b887520637deaf6be7338e9d
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/trigger-sdk/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-74cbf728f3b5da962bccdd9e4a98c1c390f0a401b887520637deaf6be7338e9d
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-74cbf728f3b5da962bccdd9e4a98c1c390f0a401b887520637deaf6be7338e9d
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-74cbf728f3b5da962bccdd9e4a98c1c390f0a401b887520637deaf6be7338e9d
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-74cbf728f3b5da962bccdd9e4a98c1c390f0a401b887520637deaf6be7338e9d
packages/trigger-sdk/src/imports/ai-runtime-cjs.ctshttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-520e5e606c047ae854a3adf217e8078fc228b532d71dfa394a7daececf2a6898
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/trigger-sdk/src/imports/ai-runtime-cjs.cts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
packages/trigger-sdk/src/imports/ai-runtime.tshttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-bcd611fb82c2e8cd926920bdb4110e0573b1c07d518a62df3af942c3a03698a6
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/trigger-sdk/src/imports/ai-runtime.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
packages/trigger-sdk/src/v3/ai.tshttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/trigger-sdk/src/v3/ai.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
packages/trigger-sdk/src/v3/aiAutoTelemetry.tshttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-fee2b15b3fcf224e78df41a9f8698f6b9eeeea3219930ee1aa1c3ff61ae0d78f
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/trigger-sdk/src/v3/aiAutoTelemetry.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
packages/trigger-sdk/src/v3/chat-client.tshttps://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-a48ddb8a7b58db88fdaddb729968985bdad12108519751cb49a567560ab917da
View file https://github.com/triggerdotdev/trigger.dev/blob/e55fa9f3cdfe62c9480ccc31f15058e1dffe6ade/packages/trigger-sdk/src/v3/chat-client.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3833/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-a48ddb8a7b58db88fdaddb729968985bdad12108519751cb49a567560ab917da
https://github.com/triggerdotdev/trigger.dev/pull/3833/files#diff-a48ddb8a7b58db88fdaddb729968985bdad12108519751cb49a567560ab917da
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3833/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.