SemanticValidator(IChatClient, String) Constructor
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.
Initializes a new instance of SemanticValidator.
public SemanticValidator(Microsoft.Extensions.AI.IChatClient chatClient, string assertionPrompt);
new Microsoft.Agents.Builder.Testing.SemanticValidator : Microsoft.Extensions.AI.IChatClient * string -> Microsoft.Agents.Builder.Testing.SemanticValidator
Public Sub New (chatClient As IChatClient, assertionPrompt As String)
Parameters
- chatClient
- IChatClient
The AI client to use for evaluation.
- assertionPrompt
- String
A yes/no question about the agent reply, e.g. "Does this echo the user's message?"