Skip to content

Commit a8c103d

Browse files
committed
update
1 parent 55eafa2 commit a8c103d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

eval_protocol/mcp/execution/base_policy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ async def _generate_live_tool_calls(
213213
if message.get("tool_calls"):
214214
assistant_message_for_history["tool_calls"] = message["tool_calls"]
215215

216-
if message.get("reasoning_details") and self._supports_reasoning_details():
217-
assistant_message_for_history["reasoning_details"] = message["reasoning_details"]
216+
rd = message.get("reasoning_details", None)
217+
if rd is not None and self._supports_reasoning_details():
218+
assistant_message_for_history["reasoning_details"] = rd
218219

219220
# Add to actual conversation history
220221
conversation_history.append(assistant_message_for_history)

0 commit comments

Comments
 (0)