We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55eafa2 commit a8c103dCopy full SHA for a8c103d
1 file changed
eval_protocol/mcp/execution/base_policy.py
@@ -213,8 +213,9 @@ async def _generate_live_tool_calls(
213
if message.get("tool_calls"):
214
assistant_message_for_history["tool_calls"] = message["tool_calls"]
215
216
- if message.get("reasoning_details") and self._supports_reasoning_details():
217
- assistant_message_for_history["reasoning_details"] = message["reasoning_details"]
+ rd = message.get("reasoning_details", None)
+ if rd is not None and self._supports_reasoning_details():
218
+ assistant_message_for_history["reasoning_details"] = rd
219
220
# Add to actual conversation history
221
conversation_history.append(assistant_message_for_history)
0 commit comments