NewHeap.Platform.AI.Test
7.5.0
See the version list below for details.
dotnet add package NewHeap.Platform.AI.Test --version 7.5.0
NuGet\Install-Package NewHeap.Platform.AI.Test -Version 7.5.0
<PackageReference Include="NewHeap.Platform.AI.Test" Version="7.5.0" />
<PackageVersion Include="NewHeap.Platform.AI.Test" Version="7.5.0" />
<PackageReference Include="NewHeap.Platform.AI.Test" />
paket add NewHeap.Platform.AI.Test --version 7.5.0
#r "nuget: NewHeap.Platform.AI.Test, 7.5.0"
#:package NewHeap.Platform.AI.Test@7.5.0
#addin nuget:?package=NewHeap.Platform.AI.Test&version=7.5.0
#tool nuget:?package=NewHeap.Platform.AI.Test&version=7.5.0
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
FunctionResultContentfor each issued call id; the verified results are available throughFunctionResults. - Streaming splits text into word chunks and ends with a
UsageContentupdate with deterministic token counts; non-streaming returns the same response. - An exhausted script throws
InvalidOperationException. Passloop: trueto restart the script instead, for example in a runnable sample host. Requestsrecords every received message list and the chat options.
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.AI.Evaluation (>= 10.9.0)
- NewHeap.Platform.AI.Common (>= 7.5.0)
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 |