Skip to content

OpenAI Responses reasoning text and reasoning summary are not distinguished #40

Description

@alexma233

Problem

The Responses API distinguishes between:

  • response.reasoning_text.delta: raw reasoning text
  • response.reasoning_summary_text.delta: human-readable reasoning summary

However, the SDK currently maps both events to ReasoningDeltaPart.

Other providers also expose different concepts:

  • Chat Completions: reasoning_content
  • Anthropic: thinking_delta
  • Gemini: thought
  • Responses API: reasoning summary and encrypted reasoning state

Current Compatibility Behavior

For now, both Responses events are intentionally mapped to ReasoningDeltaPart, with reasoning_text.delta preferred when both are available.

Proposed Future Change

Introduce separate SDK types, for example:

  • ReasoningDeltaPart
  • ReasoningSummaryDeltaPart

This should be treated as a breaking API change because existing consumers currently receive reasoning summaries as ReasoningDeltaPart.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions