agents icon indicating copy to clipboard operation
agents copied to clipboard

Streaming with OpenAI Agents.

Open fforres opened this issue 3 months ago • 3 comments

There are some examples using OpenAI agents that are request based or using the @callable decorator.

It would be great to have examples on leveraging OpenAI Agents for streaming/chat (this can extrapolate to anything non-vercel-ai-response dependant).

Understanding how you folks are looking into structuring responses/deltas

fforres avatar Sep 18 '25 17:09 fforres

I would like to take up this issue. I'm thinking of creating a simple agent which searches the web and responds to the user's queries. The response generated will be streamed. I'll make sure to not use any vercel-ai-response.

Is this what you are looking for @fforres ? I am new to this and any feedback/inputs would be appreciated. Thank you!

prajwxlk avatar Sep 25 '25 09:09 prajwxlk

Would be great.

Most of the issue IMO is defining patterns examples on how translate outputs of openai Agents into what cloudflare Agent expects (text parts/tool output/etc) IIRC, cloudflare Agents uses the same as AI package from vercel, (that its adapted from OpenAI's Harmony)

fforres avatar Sep 26 '25 00:09 fforres

@prajwxlk if you are still up for it, we'd be really grateful for this contribution

whoiskatrin avatar Sep 30 '25 20:09 whoiskatrin