Skip to content

AI-310: document streaming in the TypeScript OpenAI Agents integration#4793

Open
xumaple wants to merge 5 commits into
mainfrom
maplexu/AI-310-openai-agents-streaming-docs
Open

AI-310: document streaming in the TypeScript OpenAI Agents integration#4793
xumaple wants to merge 5 commits into
mainfrom
maplexu/AI-310-openai-agents-streaming-docs

Conversation

@xumaple

@xumaple xumaple commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Documents streaming in the TypeScript OpenAI Agents integration: a new Streaming section covering run(agent, input, { stream: true }), hosting a WorkflowStream, and subscribing to live model events via WorkflowStreamClient. Also fixes the stale note that claimed streaming was unsupported.

┆Attachments: EDU-6620 AI-310: document streaming in the TypeScript OpenAI Agents integration

@xumaple xumaple requested a review from a team as a code owner June 29, 2026 22:45
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview, Comment Jul 7, 2026 11:08pm

Request Review

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

Add a Streaming section covering run(agent, input, { stream: true }), hosting a
WorkflowStream in the Workflow, and subscribing to live model events from an
external client via WorkflowStreamClient. Fix the stale note that claimed
streaming was unsupported.
@xumaple xumaple force-pushed the maplexu/AI-310-openai-agents-streaming-docs branch from 70f7dc5 to 2012687 Compare June 30, 2026 17:06
Drop the implementation mechanics (Activity returns the event list, Workflow
consumes it instead of the live stream) in favor of a plain statement that
streaming from within the Workflow is replay-safe.
Comment thread docs/develop/typescript/integrations/openai-agents.mdx Outdated
Co-authored-by: David Hyde <DABH@users.noreply.github.com>
Comment thread docs/develop/typescript/integrations/openai-agents.mdx Outdated
Comment thread docs/develop/typescript/integrations/openai-agents.mdx Outdated
| `@temporalio/openai-agents/otel` | Worker or Client | Replay-safe OpenTelemetry setup |
| `@temporalio/openai-agents/workflow-interceptor` | Worker bundling | Manual `workflowInterceptorModules` wiring without a plugin |

## Create a Hello World Workflow

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.

📝 [vale] reported by reviewdog 🐶
[Temporal.Headings] 'Create a Hello World Workflow' should use sentence-style capitalization.

Nested approval interruptions are not supported. If a nested run pauses for approval, the tool invocation fails with an
`ApplicationFailure` of type `NestedAgentInterruption`.

## MCP servers

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.

📝 [vale] reported by reviewdog 🐶
[Temporal.Headings] 'MCP servers' should use sentence-style capitalization.

The integration supports stateless and stateful [Model Context Protocol (MCP)](https://modelcontextprotocol.io/)
servers.

### Stateless MCP servers

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.

📝 [vale] reported by reviewdog 🐶
[Temporal.Headings] 'Stateless MCP servers' should use sentence-style capitalization.

}
```

### Stateful MCP servers

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.

📝 [vale] reported by reviewdog 🐶
[Temporal.Headings] 'Stateful MCP servers' should use sentence-style capitalization.

}
```

Dedicated Worker startup and heartbeat failures surface as an `ApplicationFailure` whose type is exported as

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.

⚠️ [vale] reported by reviewdog 🐶
[Temporal.terms] Use 'Heartbeat' instead of 'heartbeat' when referring to a Temporal term.



<!--SNIPSTART typescript-openai-agents-streaming-workflow -->
[openai-agents/src/streaming/workflows.ts](https://github.com/temporalio/samples-typescript/blob/main/openai-agents/src/streaming/workflows.ts)

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.

⚠️ [vale] reported by reviewdog 🐶
[Temporal.terms] Use 'Workflows' instead of 'workflows' when referring to a Temporal term.


:::

### OpenTelemetry

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.

📝 [vale] reported by reviewdog 🐶
[Temporal.Headings] 'OpenTelemetry' should use sentence-style capitalization.

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.

3 participants