CSweet.Agent.SDK 3.45.0

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

C-Sweet Agent SDK

See Authoring agents under the operating contract for role-policy profiles, exact model-tool exposure, typed attention checkpoints, and memory authority boundaries.

CSweet.Agent.SDK 3.45.0 is the supported .NET 10 authoring API for C-Sweet agents and service plugins. You implement typed callbacks; the SDK privately manages the outbound runtime, authentication, live grants, durable work, retries, progress, and shutdown.

Create an agent

Install the template directly from a checkout of this repository:

dotnet new install ./templates/CSweet.Agent.Template
dotnet new csweet-agent --name ResearchAgent `
  --AgentId com.example.research-agent `
  --DisplayName "Research Agent" `
  --PublisherId com.example `
  --PublisherName "Example" `
  --AgentVersion 0.1.0 `
  --PrimaryCapability research.answer.v1 `
  --SdkVersion 3.45.0
cd ResearchAgent
dotnet test

To author without the template, add the package directly:

dotnet add package CSweet.Agent.SDK --version 3.45.0
using CSweet.Agent.SDK;
using Microsoft.Extensions.Hosting;

var builder = Host.CreateApplicationBuilder(args);
builder.AddCSweetAgent<MyAgent>();
await builder.Build().RunAsync();

sealed class MyAgent : CSweetAgentBase
{
    public override string AgentId => "com.example.my-agent";
    public override string Version => "0.1.0";
}

Start here

AgentRuntimeContext.Platform exposes typed, grant-governed services. GetModelToolsAsync() returns the current model-visible grant. CreateChatClient() provides platform-governed model streaming. CreateTurnStream() writes ordered reasoning, activity, draft, reset, final-commit, and failure events for an interactive chat turn. Forward only provider-emitted human-readable reasoning; protected or encrypted reasoning must never be passed to the writer. AgentTestRuntime runs callbacks and fake capabilities entirely in memory. Git workspace responses support exact-commit preparation, published-branch resumption, tracked-change inspection, and governed merge status metadata (None, Queued, Merged, or Blocked).

An agent never receives provider credentials, database access, a caller-selected target installation, raw runtime tokens, transport clients, or queue/lease details. Manifests request authority; installation grants and live provider bindings remain authoritative.

SDK development

dotnet test CSweetAgentSdk.slnx
dotnet run --project samples/HelloAgent -- --self-test
dotnet pack src/CSweet.Agent.SDK/CSweet.Agent.SDK.csproj -c Release

Runtime implementation rules are in Runtime maintainers. Report security issues privately to the maintainers as described in SECURITY.md.

Reusable collaboration

See agent collaboration for typed documentation requests, read sharing, clarification, review, exact-revision handoffs, and durable dependency waits in SDK 3.45.0.

Acknowledged inference waits

SDK 3.45.0 uses negotiated, lease-bound inference polling so acknowledged waiting does not consume the agent execution budget. See LLM queue and deadlines for states, cancellation, ownership, runtime limits, and deployment requirements.

Business calendars

Use context.Platform.Calendar.ReadAsync, CreateAsync, UpdateAsync, CancelAsync, or ScheduleAsync with the typed work-management calendar contracts. Requests are bound to the runtime business and employee; permission declarations require upgrade review. Use local wall-clock dates without offsets, an explicit time zone, stable creation keys, and the last observed revision for edits. Contributors edit their own events; managers can edit all. Scheduling others follows the reporting hierarchy and never expands execution authority.

Subscribe to com.csweet.calendar.reminder-due.v1 and override HandleCalendarReminderAsync when role-specific reminder behavior is needed. The default callback reports receipt; scheduled work is delivered separately through the existing personal work queue. Calendar.WithToolsAsync(options) adds only approved calendar model tools and operating guidance to an existing harness. Calendar.GetResponseAsync(client, messages, ...) supplies a bounded function-invocation loop for simple agents. Preserve all existing execution and approval rules.

Compute (3.45.0)

Use the typed compute client through context.Platform.Compute for Linux/Windows environment requests, lifecycle operations, guest commands, port publication, results, and durable change events. The application owns host setup and UAC; grants remain enforced by the broker.

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 (1)

Showing the top 1 NuGet packages that depend on CSweet.Agent.SDK:

Package Downloads
CSweet.Memory.Broker

C-Sweet SDK platform adapter for CSweet.Memory.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.45.0 0 9/14/2026
3.44.3 31 9/13/2026
3.44.2 37 9/13/2026
3.44.1 32 9/13/2026
3.44.0 38 9/13/2026
3.43.0 44 9/13/2026
3.42.0 47 9/13/2026
3.41.0 46 9/13/2026
3.40.0 79 9/8/2026
3.39.0 50 9/8/2026
3.31.1 108 9/7/2026
3.31.0 105 9/7/2026
3.30.0 104 9/7/2026
3.27.0 120 9/5/2026
3.24.1 110 9/1/2026
3.24.0 95 8/31/2026
3.23.0 87 8/28/2026
3.22.0 107 8/28/2026
3.21.0 92 8/26/2026
3.20.0 95 8/26/2026
Loading failed