Skip to content

OpenAIResponsesChatGenerator drops reasoning encrypted_content in streaming mode. #11658

@datbth

Description

@datbth

Describe the bug
OpenAIResponsesChatGenerator drops reasoning encrypted_content in streaming mode.

Error message
N/A

Expected behavior
OpenAIResponsesChatGenerator#_convert_streaming_chunks_to_chat_message preserves encrypted_content in ReasoningContent.extra, so that it is submitted in future chat turns.

Additional context

If the model calls multiple functions consecutively, you should pass back all reasoning items, function call items, and function call output items, since the last user message. This allows the model to continue its reasoning process to produce better results in the most token-efficient manner.

Image

To Reproduce
Run OpenAIResponsesChatGenerator with generation_kwargs of

{
  "model": "gpt-5.5",
  "store": False,
  "include": ["reasoning.encrypted_content"],
}

and streaming_callback

FAQ Check

System:

  • OS: Linux
  • Haystack version: master

Metadata

Metadata

Assignees

Labels

P2Medium priority, add to the next sprint if no P1 available

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions