Skip to content

Commit 0a2bd99

Browse files
authored
Update _base_eval.py (Azure#40706)
1 parent 35647ac commit 0a2bd99

File tree

1 file changed

+3
-3
lines changed
  • sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_common

1 file changed

+3
-3
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_common/_base_eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def __init__(self, real_call): # DO NOT ADD TYPEHINT PROMPT FLOW WILL SCREAM AT
495495
# are known to throw at this, mash them into kwargs, and then pass them into the real call.
496496
async def __call__(
497497
self, *, query=None, response=None, context=None, conversation=None, ground_truth=None,
498-
tool_call=None, tool_definitions=None, messages=None, retrieval_ground_truth=None,
498+
tool_calls=None, tool_definitions=None, messages=None, retrieval_ground_truth=None,
499499
retrieved_documents=None,**kwargs
500500
):
501501
if conversation is not None:
@@ -510,8 +510,8 @@ async def __call__(
510510
kwargs["context"] = context
511511
if ground_truth is not None:
512512
kwargs["ground_truth"] = ground_truth
513-
if tool_call is not None:
514-
kwargs["tool_call"] = tool_call
513+
if tool_calls is not None:
514+
kwargs["tool_calls"] = tool_calls
515515
if tool_definitions is not None:
516516
kwargs["tool_definitions"] = tool_definitions
517517
if messages is not None:

0 commit comments

Comments
 (0)