Microsoft.Agents.Builder.Testing Namespace

Classes

Name Description
AgentTestHost

A thin test harness that configures an agent using the same DI extension-method style as production Program.cs, then produces ready-to-use TestFlow instances.

SemanticValidator

Validates agent replies using an IChatClient (AI model). The model is asked a yes/no question about the reply text; "yes" passes, "no" fails.

TestAdapter

A mock adapter that can be used for unit testing of agent logic.

TestFlow

A mock channel that can be used for unit testing of bot logic.

Interfaces

Name Description
IResponseValidator

Pluggable async validation abstraction for agent replies.

Delegates

Name Description
ValidateReply

Represents a method the TestFlow can call to validate an activity.