Skip to content

Fix TypeScript AI integration pages for the GA releases - #5756

Merged
Duncanma merged 4 commits into
mainfrom
docs/ai-integrations-ga-typescript
Nov 23, 2026
Merged

Duncanma merged 4 commits into
mainfrom
docs/ai-integrations-ga-typescript

Conversation

@starfleeth

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes statements on the TypeScript AI integration pages that are wrong for @temporalio/google-adk 1.0.0 and @temporalio/vercel-ai-sdk, @temporalio/langsmith and @temporalio/strands-agents 2.0.0. Each fix was checked against the release notes, the README at the release tag, or the source.

  • Google ADK: fixes the upgrade anchor (#upgrading-adk); model and MCP Activities default to heartbeatTimeout: '10s' (0 turns it off); mcpToolsets also registers <name>-listResources and <name>-readResource, and a name clash stops the Worker.
  • AI SDK by Vercel: MCP connections are reused across listTools and callTool and closed after 5 minutes idle (mcpConnectionIdleTimeout, 0 for one per call).
  • LangSmith: metadata is sent unchanged in Temporal headers (no scrubbing); with tracing off, a propagated trace still continues; projectName is the default for new root traces; removes the note about parenting falling back after await or Promise.all.
  • Strands Agents: register StrandsPlugin on every Worker that runs an activityAsTool Activity (an Activity interceptor replaces the failure converter); snapshots work; prefix belongs on TemporalMCPClient, not the factory's McpClient; one MCP connection per server per StrandsPlugin instance.

Notes to reviewers

Draft. The TypeScript OpenAI Agents page is in a separate PR stacked on #5597.

Left out until samples-typescript is bumped and Snipsync runs: Strands modelState across continue-as-new, and the StrandsFailureConverter mention in the activity-interrupt snippet comment.

Vale and the site build weren't run locally. Only the changed paragraphs are rewrapped.

🤖 Generated with Claude Code

Correct statements that no longer match @temporalio/google-adk 1.0.0
and @temporalio/vercel-ai-sdk, langsmith, and strands-agents 2.0.0:
the ADK upgrade anchor, heartbeat defaults, and MCP Activity names;
AI SDK MCP connection reuse; LangSmith tracing, projectName, metadata,
and parenting; and Strands MCP prefix and connections, Worker
registration for Activity-tool interrupts, and snapshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Nov 23, 2026 10:42pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Snipsync coverage

SDK code lines in docs/ that come from Snipsync: 61.9% → 61.9% (±0.0 pts), 25,717 of 41,557 lines.

Section Snipsync lines Inline lines Snipsync % Change
develop/typescript 3,702 314 → 313 92.2% → 92.2% ±0.0 pts
All sections

All languages: 53.3% (26,584 of 49,871 lines).

Section Snipsync lines Inline lines Snipsync %
design-patterns 26 7,808 0.3%
develop/python 5,146 529 90.7%
develop/java 4,639 49 99.0%
guides 34 4,496 0.8%
develop/go 4,285 80 98.2%
develop/typescript 3,702 313 92.2%
develop/dotnet 3,029 7 99.8%
develop/rust 1,571 0 100.0%
develop/php 1,394 0 100.0%
develop/ruby 1,232 0 100.0%
develop 484 606 44.4%
production-deployment 116 746 13.5%
encyclopedia 0 837 0.0%
develop/worker-performance 48 177 21.3%
cloud 0 127 0.0%
references 0 48 0.0%
best-practices 11 17 39.3%
Language Snipsync lines Inline lines Snipsync %
Python 5,289 6,611 44.4%
Go 4,425 3,181 58.2%
Java 4,724 2,593 64.6%
TypeScript 3,869 2,777 58.2%
C# 3,104 464 87.0%
Rust 1,609 31 98.1%
Ruby 1,303 159 89.1%
PHP 1,394 24 98.3%
Snipsync origin Lines
temporalio/documentation-sdk-code-examples 21,060
temporalio/samples-python 2,266
temporalio/samples-typescript 693
temporalio/samples-dotnet 655
temporalio/features 464
temporalio/samples-go 384
temporalio/samples-java 184
temporalio/reference-app-orders-go 11

Compared with 1c6e869. Counts non-blank lines in fenced code blocks tagged with an SDK language. Hand-written code isn't compiled anywhere; code Snipsync pulls from a sample repository is built in that repository's CI. See UTILITIES.md.

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

@campoy campoy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good but one thing to change

@campoy
campoy marked this pull request as ready for review November 23, 2026 20:06
@campoy
campoy requested a review from a team as a code owner November 23, 2026 20:06
Copilot AI balanced review requested due to automatic review settings November 23, 2026 20:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documentation still describes four registered Activities as a pair and implies retries continue until the Worker is fixed despite the example’s three-attempt limit.

2 open issues
What changed in this PR

Updates four TypeScript AI integration guides to match the GA releases: Google ADK 1.0.0 and Vercel AI SDK, LangSmith, and Strands Agents 2.0.0.

Changes:

  • Corrects Google ADK heartbeat defaults, MCP Activity registration, and the upgrade link.
  • Clarifies MCP connection reuse for Vercel AI SDK and Strands Agents.
  • Updates LangSmith tracing and metadata behavior, plus Strands interrupt handling and snapshot support.
File Description
docs/​develop/​typescript/​integrations/​strands-agents.mdx Updates MCP configuration, Worker interceptor requirements, and snapshots.
docs/​develop/​typescript/​integrations/​langsmith.mdx Corrects tracing propagation, project defaults, metadata handling, and parenting guidance.
docs/​develop/​typescript/​integrations/​google-adk-agents.mdx Corrects heartbeat defaults, registered MCP Activities, and upgrade guidance.
docs/​develop/​typescript/​integrations/​ai-sdk.mdx Documents MCP connection reuse and idle-timeout configuration.

Review effort: Balanced

TemporalMCPToolset's name now covers four Activities, not a pair. A factory
prefix fails listTools with a plain error, so the Activity retries under its
Retry Policy rather than until the Worker is fixed.
@Duncanma
Duncanma merged commit 534f7f3 into main Nov 23, 2026
19 checks passed
@Duncanma
Duncanma deleted the docs/ai-integrations-ga-typescript branch November 23, 2026 22:42

This branch was successfully deployed

1 active deployment
Preview — c86865b1 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants