-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Problem Statement
Description
When using Gemini with thinking mode enabled (thinking_config), reasoning content was being lost from the message history. The model returns both reasoning (thinking process) and text content in the same response, but only the text was captured.
This affected observability, tracing, and any downstream processing that relies on the conversation history containing the full model output.
Before:
[{"text": "2 + 2 = 4"}]
After:
[
{"reasoningContent": {"reasoningText": {"text": "Let me calculate..."}}},
{"text": "2 + 2 = 4"}
]
Proposed Solution
No response
Use Case
Description
When using Gemini with thinking mode enabled (thinking_config), reasoning content was being lost from the message history. The model returns both reasoning (thinking process) and text content in the same response, but only the text was captured.
This affected observability, tracing, and any downstream processing that relies on the conversation history containing the full model output.
Before:
[{"text": "2 + 2 = 4"}]
After:
[
{"reasoningContent": {"reasoningText": {"text": "Let me calculate..."}}},
{"text": "2 + 2 = 4"}
]
Alternatives Solutions
No response
Additional Context
No response