CasCap.AgentRuntime.Contracts 1.7.0

Prefix Reserved
dotnet add package CasCap.AgentRuntime.Contracts --version 1.7.0
                    
NuGet\Install-Package CasCap.AgentRuntime.Contracts -Version 1.7.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="CasCap.AgentRuntime.Contracts" Version="1.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.AgentRuntime.Contracts" Version="1.7.0" />
                    
Directory.Packages.props
<PackageReference Include="CasCap.AgentRuntime.Contracts" />
                    
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 CasCap.AgentRuntime.Contracts --version 1.7.0
                    
#r "nuget: CasCap.AgentRuntime.Contracts, 1.7.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 CasCap.AgentRuntime.Contracts@1.7.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=CasCap.AgentRuntime.Contracts&version=1.7.0
                    
Install as a Cake Addin
#tool nuget:?package=CasCap.AgentRuntime.Contracts&version=1.7.0
                    
Install as a Cake Tool

CasCap.AgentRuntime.Contracts

Versioned request and response DTOs for .NET 10 and .NET 11 applications calling the CasCap multi-tenant Agent Runtime HTTP API. The contracts carry execution, conversation-state and definition-administration messages without trusting caller-supplied tenant or actor identity.

Installation

dotnet package add CasCap.AgentRuntime.Contracts

The source targets net10.0 and net11.0. Applications using CasCap.AgentRuntime.Client receive it transitively. Use a stable .NET 11 SDK for source development; installed packages use their selected target's runtime.

The source also contains the browser-neutral RuntimeLoggingControls contract used by the optional logging editor, outside the versioned execution API. Its minimum is a typed enum serialized with the existing string names; it contains no credentials, provider configuration or Serilog/database dependency.

Usage

Types live in CasCap.AgentRuntime.Contracts.V1. A minimal run request is:

using CasCap.AgentRuntime.Contracts.V1;

var request = new RunAgentRequest
{
    SessionId = "conversation-example",
    Input = "Summarize the available capabilities.",
};

Send it to POST /api/v1/agents/{agentName}/runs through an authenticated HTTP client.

Version 1

RunAgentRequest carries a caller-owned session identifier, text, optional binary input with its MIME type, and one-turn session bypass. The agent name is part of the route, and tenant identity deliberately does not appear in the body: the server derives it from the authenticated request context.

RunAgentResponse returns output, definition/model identity, timing, provider usage, tool-call names, tool-produced attachments, and structured delegation/compaction events. Tool arguments and provider/host property bags are returned only when the authenticated caller explicitly enables diagnostic details. Session summaries expose sizes and message counts without raw state. SessionId accepts 1–200 characters and Input 1–100,000. BinaryContent is JSON Base64, accepts at most 20 MiB decoded, and must be paired with MimeType.

RunAgentStreamItem carries delegation and compaction events as they occur, followed by the final RunAgentResponse, so callers can update progress indicators without owning runtime execution. The streaming endpoint is POST /api/v1/agents/{agentName}/runs/stream and returns an incremental JSON array rather than Server-Sent Events.

Session-control contracts inspect and reset active state, compact history, manage named snapshots, and replace complete per-session model, instruction, and persistence overrides. They expose structured summaries rather than raw Agent Framework session JSON. AgentInstructionsResponse reports the effective instructions and whether an override supplies them.

Definition-management contracts publish immutable schema-versioned JSON documents, inspect snapshot and activation history, and activate or roll back versions separately. Tenant and actor identity never appear in request DTOs; the server derives both from authenticated claims.

EvaluateAgentDefinitionRequest accepts 1–50 scenarios, 1–10 repetitions (default 1), and a MinimumPassRate from 0 to 1 (default 1). Each scenario supplies answer expectations, required/forbidden tool names and optional fixture responses. Activation can carry this request as ActivateAgentDefinitionRequest.Evaluation; deactivation is a separate reason-bearing request.

Documentation

The current source also defines SearchKnowledgeRequest, SearchKnowledgeResponse and bounded passage/source-span DTOs for the separate agent.knowledge.search surface. Search requests cannot choose a tenant, collection or embedding profile. Matches contain reviewed text, document/generation/ chunk identities, a source hash and physical-page/Markdown-block spans, not Blob URLs. These unpublished additions support explicit retrieval; they do not automatically ground agent runs or realtime calls.

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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net11.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on CasCap.AgentRuntime.Contracts:

Package Downloads
CasCap.AgentRuntime.Client

Typed HTTP client for the CasCap multi-tenant Agent Runtime.

CasCap.Comms.AI

AI agent responder for the Signalizr communications pipeline: agent turns, slash commands, polls and diagnostics.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.0 0 11/15/2026
1.6.0 90 11/14/2026
1.5.0 73 11/12/2026
1.4.0 261 11/5/2026
1.3.0 159 11/1/2026
1.2.0 223 10/24/2026
1.1.0 121 10/22/2026
1.0.1 119 10/21/2026
1.0.0 191 10/21/2026