Skip to main content
net10.0net8.0.NETStandard2.0

Library for building agent tests using Microsoft Agents SDK

Published
Aug 21, 2026
1mo ago
Total Downloads
17.8K
17,772

Install

dotnet add package Microsoft.Agents.Builder.Testing --version 1.8.72-beta
ProductVersions
.NET
net10.0net8.0
.NET Standard
netstandard2.0

README

Microsoft.Agents.Builder.Testing

About

Provides utilities for unit testing agents built with the Microsoft 365 Agents SDK. Supports sending activities to an agent and asserting on its replies, with optional AI-based semantic validation.

Main Types

  • AgentTestHost: Host for running an agent in a test environment
  • TestAdapter: In-process channel adapter for sending and receiving activities in tests
  • TestFlow: Fluent API for structuring multi-turn conversation tests
  • IResponseValidator: Interface for reply assertion strategies, including SemanticValidator for AI-based assertions

Changes from Previous Version

No structural changes between v1.8.62-beta and v1.8.72-beta.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.