FunctionEvaluator.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(String, Func<EvalItem,EvalCheckResult>) |
Creates a check from a function that takes the full EvalItem and returns a EvalCheckResult. |
| Create(String, Func<EvalItem,Boolean>) |
Creates a check from a function that takes the full EvalItem. |
| Create(String, Func<String,Boolean>) |
Creates a check from a function that takes the response text and returns a bool. |
| Create(String, Func<String,String,Boolean>) |
Creates a check from a function that takes response and expected text. |
Create(String, Func<EvalItem,EvalCheckResult>)
Creates a check from a function that takes the full EvalItem and returns a EvalCheckResult.
public static Microsoft.Agents.AI.EvalCheck Create(string name, Func<Microsoft.Agents.AI.EvalItem,Microsoft.Agents.AI.EvalCheckResult> check);
static member Create : string * Func<Microsoft.Agents.AI.EvalItem, Microsoft.Agents.AI.EvalCheckResult> -> Microsoft.Agents.AI.EvalCheck
Public Shared Function Create (name As String, check As Func(Of EvalItem, EvalCheckResult)) As EvalCheck
Parameters
- name
- String
Check name (used as fallback if the result has no name).
- check
- Func<EvalItem,EvalCheckResult>
Function that returns a full check result.
Returns
Applies to
Create(String, Func<EvalItem,Boolean>)
Creates a check from a function that takes the full EvalItem.
public static Microsoft.Agents.AI.EvalCheck Create(string name, Func<Microsoft.Agents.AI.EvalItem,bool> check);
static member Create : string * Func<Microsoft.Agents.AI.EvalItem, bool> -> Microsoft.Agents.AI.EvalCheck
Public Shared Function Create (name As String, check As Func(Of EvalItem, Boolean)) As EvalCheck
Parameters
- name
- String
Check name for reporting.
Returns
Applies to
Create(String, Func<String,Boolean>)
Creates a check from a function that takes the response text and returns a bool.
public static Microsoft.Agents.AI.EvalCheck Create(string name, Func<string,bool> check);
static member Create : string * Func<string, bool> -> Microsoft.Agents.AI.EvalCheck
Public Shared Function Create (name As String, check As Func(Of String, Boolean)) As EvalCheck
Parameters
- name
- String
Check name for reporting.
Returns
Applies to
Create(String, Func<String,String,Boolean>)
Creates a check from a function that takes response and expected text.
public static Microsoft.Agents.AI.EvalCheck Create(string name, Func<string,string?,bool> check);
static member Create : string * Func<string, string, bool> -> Microsoft.Agents.AI.EvalCheck
Public Shared Function Create (name As String, check As Func(Of String, String, Boolean)) As EvalCheck
Parameters
- name
- String
Check name for reporting.