Skip to content

AI-310: add streaming sample for @temporalio/openai-agents#488

Draft
xumaple wants to merge 2 commits into
mainfrom
maplexu/AI-310-openai-agents-streaming-samples
Draft

AI-310: add streaming sample for @temporalio/openai-agents#488
xumaple wants to merge 2 commits into
mainfrom
maplexu/AI-310-openai-agents-streaming-samples

Conversation

@xumaple

@xumaple xumaple commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Adds a streaming scenario to the openai-agents samples, demonstrating run(agent, input, { stream: true }) over a Workflow Stream: a Workflow that hosts a WorkflowStream, a Worker configured with the streaming topic, and a client that subscribes to model stream events live from outside the Workflow.

Draft until @temporalio/openai-agents (with streaming) and @temporalio/workflow-streams publish — CI is red against the published packages until then.

@xumaple xumaple force-pushed the maplexu/AI-310-openai-agents-streaming-samples branch 2 times, most recently from 1c30408 to 99e58ee Compare June 30, 2026 17:06
Comment thread openai-agents/src/streaming/worker.ts Outdated
Comment thread openai-agents/src/streaming/README.md
xumaple added 2 commits July 7, 2026 16:44
Add a streaming scenario to the openai-agents samples: a Workflow that hosts a
WorkflowStream and runs an agent with run(agent, input, { stream: true }), a
Worker configured with the streaming topic, and a client that subscribes to the
model stream events live from outside the Workflow via WorkflowStreamClient.
Move streaming config onto the client plugin, where its modelParams
propagate into the Workflow via the config header; drop the inert
worker-plugin modelParams. Remove the client's OPENAI_API_KEY
requirement since the client never calls the model, and correct the
README accordingly. Make the fake model emit incremental per-word
deltas so the sample and test genuinely demonstrate streaming.
@xumaple xumaple force-pushed the maplexu/AI-310-openai-agents-streaming-samples branch from 99e58ee to b378b5f Compare July 7, 2026 20:46
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.

2 participants