EvalChecks.KeywordCheck Method

Definition

Overloads

Name Description
KeywordCheck(String[])

Creates a check that verifies the response contains all specified keywords.

KeywordCheck(Boolean, String[])

Creates a check that verifies the response contains all specified keywords.

KeywordCheck(String[])

Creates a check that verifies the response contains all specified keywords.

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

Parameters

keywords
String[]

Keywords that must appear in the response.

Returns

An EvalCheck delegate.

Applies to

KeywordCheck(Boolean, String[])

Creates a check that verifies the response contains all specified keywords.

public static Microsoft.Agents.AI.EvalCheck KeywordCheck(bool caseSensitive, params string[] keywords);
static member KeywordCheck : bool * string[] -> Microsoft.Agents.AI.EvalCheck
Public Shared Function KeywordCheck (caseSensitive As Boolean, ParamArray keywords As String()) As EvalCheck

Parameters

caseSensitive
Boolean

Whether the comparison is case-sensitive.

keywords
String[]

Keywords that must appear in the response.

Returns

An EvalCheck delegate.

Applies to