Microsoft.Agents.Builder.Testing Namespace
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.
Classes
| Name | Description |
|---|---|
| AgentTestHost |
A thin test harness that configures an agent using the same DI extension-method style
as production |
| 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. |