Skip to content

Commit 8366a85

Browse files
committed
make generic
1 parent 1d630d4 commit 8366a85

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

eval_protocol/mcp/execution/policy.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,11 @@ async def _make_llm_call(self, messages: List[Dict[str, Any]], tools: List[Dict[
239239
),
240240
}
241241

242-
rd = getattr(message_obj, "reasoning_details", None)
243-
if rd is not None:
244-
message_dict["reasoning_details"] = rd
242+
provider_specific = getattr(message_obj, "provider_specific_fields", None)
243+
if isinstance(provider_specific, dict):
244+
for key, value in provider_specific.items():
245+
if value is not None and key not in message_dict:
246+
message_dict[key] = value
245247

246248
return {
247249
"choices": [

0 commit comments

Comments
 (0)