EvalChecks.ToolCalledCheck Method

Definition

Overloads

Name Description
ToolCalledCheck(String[])

Creates a check that verifies specific tools were called in the conversation. All specified tools must have been called.

ToolCalledCheck(ToolCalledMode, String[])

Creates a check that verifies specific tools were called in the conversation.

ToolCalledCheck(String[])

Creates a check that verifies specific tools were called in the conversation. All specified tools must have been called.

public static Microsoft.Agents.AI.EvalCheck ToolCalledCheck(params string[] toolNames);
static member ToolCalledCheck : string[] -> Microsoft.Agents.AI.EvalCheck
Public Shared Function ToolCalledCheck (ParamArray toolNames As String()) As EvalCheck

Parameters

toolNames
String[]

Tool names that must appear in the conversation.

Returns

An EvalCheck delegate.

Applies to

ToolCalledCheck(ToolCalledMode, String[])

Creates a check that verifies specific tools were called in the conversation.

public static Microsoft.Agents.AI.EvalCheck ToolCalledCheck(Microsoft.Agents.AI.ToolCalledMode mode, params string[] toolNames);
static member ToolCalledCheck : Microsoft.Agents.AI.ToolCalledMode * string[] -> Microsoft.Agents.AI.EvalCheck
Public Shared Function ToolCalledCheck (mode As ToolCalledMode, ParamArray toolNames As String()) As EvalCheck

Parameters

mode
ToolCalledMode

Whether All or Any of the specified tools must be called.

toolNames
String[]

Tool names to check for.

Returns

An EvalCheck delegate.

Applies to