Skip to content

Streaming chain of thoughts #721

Closed
Closed
@passacagllia

Description

@passacagllia

Describe the feature

I am using Azure OpenAI o3 and o4-mini. I want to stream chain of thoughts like Grok or ChatGpt. I saw Azure Playground can do it. I just can not find the document to do that. Thanks.

Image

Activity

rm-openai

rm-openai commented on May 21, 2025

@rm-openai
Collaborator

You'll need to do a couple of things:

  1. In ModelSettings, set Reasoning so that you get chain of thought summaries: https://openai.github.io/openai-agents-python/ref/model_settings/#agents.model_settings.ModelSettings.reasoning
  2. When you call stream_events(), you will receive RawResponsesStreamEvent with the data being ResponseReasoningSummaryPartAddedEvent, ResponseReasoningSummaryTextDeltaEvent etc, which you can use to stream.
added
questionQuestion about using the SDK
and removed
enhancementNew feature or request
on May 21, 2025
Rvey

Rvey commented on May 21, 2025

@Rvey

is there any example using o model family with the agents SDK ?

passacagllia

passacagllia commented on May 22, 2025

@passacagllia
Author

Thank you mate. Very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Rvey@passacagllia@rm-openai

        Issue actions

          Streaming chain of thoughts · Issue #721 · openai/openai-agents-python