Suwageval.AgentSdk
0.2.0
dotnet add package Suwageval.AgentSdk --version 0.2.0
NuGet\Install-Package Suwageval.AgentSdk -Version 0.2.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="Suwageval.AgentSdk" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Suwageval.AgentSdk" Version="0.2.0" />
<PackageReference Include="Suwageval.AgentSdk" />
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 Suwageval.AgentSdk --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Suwageval.AgentSdk, 0.2.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 Suwageval.AgentSdk@0.2.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=Suwageval.AgentSdk&version=0.2.0
#tool nuget:?package=Suwageval.AgentSdk&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Suwageval.AgentSdk
What a .NET agent under test (.NET 9 or later) needs to be evaluated by Suwageval:
dotnet add package Suwageval.AgentSdk
builder.Services.AddSingleton<IAgentContractSource, MyContractSource>();
builder.Services.AddSingleton<ITurnHandler, MyTurnHandler>();
app.MapSuwagevalAgent(); // GET /suwageval/contract, POST /suwageval/turn
- the contract types (
AgentContract,TurnRequest,TurnResponse, theConversationItems) andContractJson.Options, the JSON options the server reads them with; ContextDefinition.Tools(context.toolsin the JSON): the tools your own code calls, with no LLM agent choosing them; record their calls as aToolCallwithoutAgent. A name is either there or an agent's tool, never both. Empty by default, and an empty list is not written, so a contract without them is the version it was.AgentContractRules.Problems(contract): what the server would reject in your contract, for a unit test.AgentContractHash.Of(contract): the hash the server knows your version by (the same function the server registers it with).request.Correlation(RunId,Scenario,Sample): theSuwageval-*headers of the turn, for traces and logs; a member is null when its header is absent.request.HistoryTurns(): the conversation before the last item asHistoryTurns (user message, null for what was logged before the first one; the items that followed it in order, the tool calls paired with their results, the assistant message); a history that cannot be one (a tool call id twice, a result without its call, tool calls no assistant message closes) is aTurnRejectedException.request.FixturesAs<T>(): the scenario's fixtures as your type, strict about members it does not declare; null when there are none.ContractSchema.ObjectSchema(properties, required)andEnumSchema<TEnum>(): the JSON schemas of event data and fixtures in your contract.TurnRejectedException(reason): thrown by your handler for a conversation it cannot answer; the turn is answered 400 with the reason.- Monitoring of a deployed agent:
builder.Services.AddSuwagevalMonitoring(builder.Configuration)(the sectionSuwageval:Url,Agent,Environment, optionallyAccessClientId/AccessClientSecret), thenIConversationRecorder.Record(conversationId, items)after each real turn; the turns go to Suwageval in the background. WithoutSuwageval:Urlthe recorder does nothing.
The HTTP contract stays the source of truth; this package saves a .NET agent from re-declaring it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.
-
net10.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.