NewHeap.Platform.AI.Test 7.6.0

dotnet add package NewHeap.Platform.AI.Test --version 7.6.0
                    
NuGet\Install-Package NewHeap.Platform.AI.Test -Version 7.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NewHeap.Platform.AI.Test" Version="7.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NewHeap.Platform.AI.Test" Version="7.6.0" />
                    
Directory.Packages.props
<PackageReference Include="NewHeap.Platform.AI.Test" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NewHeap.Platform.AI.Test --version 7.6.0
                    
#r "nuget: NewHeap.Platform.AI.Test, 7.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NewHeap.Platform.AI.Test@7.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NewHeap.Platform.AI.Test&version=7.6.0
                    
Install as a Cake Addin
#tool nuget:?package=NewHeap.Platform.AI.Test&version=7.6.0
                    
Install as a Cake Tool

NewHeap.Platform.AI.Test

Reusable test support for consumers of NewHeap.Platform.AI.Common. The package contains deterministic IChatClient and embedding fakes, plus authorized and denied invocation gates, bounded ingestion sources, captured audit/usage sinks, and versioned fixtures that execute through Microsoft.Extensions.AI.Evaluation. Persisted fixture reports contain hashes, ratings and diagnostic counts rather than prompt, response, reason or diagnostic content. The package contains no test runner and no [Fact] or [Theory] tests.

Scripted chat client

NhAiScriptedChatClient plays a fixed script of model responses so agent and assistant flows can be tested end to end without a model provider:

var model = new NhAiScriptedChatClient()
    .RespondWithFunctionCall("projects_search_v1", new { input = new { query = "roadmap", limit = 5 } })
    .RespondWithText("Two projects match the roadmap.");
services.AddKeyedSingleton<IChatClient>("project-assistant-chat-model", model);
  • Every response that follows a function call first verifies that the incoming messages contain a FunctionResultContent for each issued call id; the verified results are available through FunctionResults.
  • Streaming splits text into word chunks and ends with a UsageContent update with deterministic token counts; non-streaming returns the same response.
  • An exhausted script throws InvalidOperationException. Pass loop: true to restart the script instead, for example in a runnable sample host.
  • Requests records every received message list and the chat options.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.6.0 0 9/18/2026
7.5.0 29 9/18/2026
7.4.0 165 9/15/2026
7.3.0 92 9/15/2026
7.2.0 81 9/15/2026
7.1.0 101 9/14/2026
7.0.0 122 9/8/2026
6.0.0 94 9/8/2026
5.0.0 109 9/8/2026
4.4.7 94 9/8/2026
4.4.6 100 9/7/2026
4.4.5 87 9/1/2026
4.4.4 86 9/1/2026
4.4.3 93 9/1/2026
4.4.2 98 9/1/2026
4.4.1 156 8/31/2026
4.4.0 91 8/31/2026
4.3.6 89 8/31/2026
4.3.5 86 8/31/2026
4.3.4 102 8/29/2026
Loading failed