Skip to content

Commit 06793aa

Browse files
committed
fix: ignore empty tools-available
1 parent 4b40697 commit 06793aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mcpx_eval/judge.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ async def evaluate_model(
248248
# If tools is a mock object, get the return value directly
249249
result["tools-available"] = chat.client.tools.keys()
250250

251+
if len(result["tools-available"]) == 0:
252+
del result["tools-available"]
253+
251254
async for node in chat.iter(prompt):
252255
if hasattr(node, "model_response"):
253256
for part in node.model_response.parts:

0 commit comments

Comments
 (0)