Missing Handling for delta.reasoning_content
in agents.models.chatcmpl_stream_handler.ChatCmplStreamHandler.handle_stream
#578
Labels
bug
Something isn't working
Issue Title: Missing Handling for
delta.reasoning_content
inagents.models.chatcmpl_stream_handler.ChatCmplStreamHandler.handle_stream
Description:
In the
ChatCmplStreamHandler.handle_stream
method, the case wheredelta.reasoning_content
is present is not handled. This could lead to incomplete or incorrect handling of the stream response when reasoning content is provided by the model.Problematic Code Example:
Steps to Reproduce:
delta.reasoning_content
.ChatCmplStreamHandler.handle_stream
method does not process or emit events related to the reasoning content.Actual Behavior:
The
delta.reasoning_content
is ignored, and no events are emitted to handle or notify consumers of the reasoning content.Impact:
This issue prevents the proper handling and display of reasoning content in the stream, which is crucial for models that provide explanations or reasoning behind their responses.
Proposed Solution:
Add handling for
delta.reasoning_content
in theChatCmplStreamHandler.handle_stream
method. Example code snippet:The text was updated successfully, but these errors were encountered: