a2a-net.Core 0.2.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package a2a-net.Core --version 0.2.0
                    
NuGet\Install-Package a2a-net.Core -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="a2a-net.Core" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="a2a-net.Core" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="a2a-net.Core" />
                    
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 a2a-net.Core --version 0.2.0
                    
#r "nuget: a2a-net.Core, 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.
#addin nuget:?package=a2a-net.Core&version=0.2.0
                    
Install a2a-net.Core as a Cake Addin
#tool nuget:?package=a2a-net.Core&version=0.2.0
                    
Install a2a-net.Core as a Cake Tool

A2A-NET

Agent-to-Agent (A2A) is a lightweight, extensible protocol and framework for orchestrating tasks and exchanging structured content between autonomous agents using JSON-RPC 2.0.

This repository provides a complete set of libraries and components for building, hosting, and communicating with A2A-compliant agents across various transport layers.


🧩 Projects

🧠 Core

  • a2a-net.Core
    Contains the core abstractions, models, contracts, and data types shared across both clients and servers.
    This package is dependency-free and safe to use in any environment.

📡 Client

  • a2a-net.Client
    Provides the default implementation of an A2A client for sending tasks and interacting with agents via JSON-RPC.

  • a2a-net.Client.Transport.WebSocket
    Implements the WebSocket transport for a2a-net.Client.
    Allows establishing persistent agent-to-agent communication over WebSocket connections.


🛠️ Server

  • a2a-net.Server
    Core components for building A2A-compatible agents.
    Includes task execution, state management, event streaming, and runtime integration.

  • a2a-net.Server.AspNetCore
    ASP.NET Core integration layer that allows hosting A2A endpoints over WebSocket using JSON-RPC.
    Provides middleware, routing, and server bootstrap extensions.


🧱 Server Infrastructure

  • a2a-net.Server.Infrastructure.Abstractions
    Defines abstractions for task persistence, event streaming, and other infrastructure concerns.
    Enables support for custom and pluggable storage/event backends.

  • a2a-net.Server.Infrastructure.DistributedCache
    Distributed cache–based implementation of A2A task storage using IDistributedCache.
    Useful for scenarios that require scalable, lightweight task state persistence.


🚀 Getting Started

Install the packages

dotnet add package a2a-net.Client
dotnet add package a2a-net.Client.Transport.WebSocket
dotnet add package a2a-net.Server
dotnet add package a2a-net.Server.AspNetCore

Configure the client

services.AddA2ProtocolClient(builder =>
{
    builder.UseWebSocketTransport(options => 
    {
        options.Endpoint = new("ws://localhost/a2a");
    });
});

Host an agent

Configure services
services.AddDistributedMemoryCache();
services.AddA2AProtocolServer(builder =>
{
    builder
        .UseAgentRuntime<CustomAgentRuntime>()
        .UseDistributedCacheTaskRepository();
});
Map A2A Endpoints
app.MapA2AEndpoint();

📚 Documentation

For a full overview of the A2A protocol, see google.github.io/A2A


🛡 License

This project is licensed under the Apache-2.0 License.


🤝 Contributing

Contributions are welcome! Please open issues and PRs to help improve the ecosystem.

See contribution guidelines for more information on how to contribute.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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 was computed.  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 (4)

Showing the top 4 NuGet packages that depend on a2a-net.Core:

Package Downloads
a2a-net.Server.Infrastructure.Abstractions

Contains service abstractions used by the A2A server infrastructure

a2a-net.Client.Abstractions

Contains the A2A Protocol client abstractions

Yaap.A2A.Server.Abstractions

Package Description

Yaap.A2A.Client.Abstractions

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.10.0 0 6/25/2025
0.9.1 13 6/24/2025
0.9.0 71 6/20/2025
0.8.0 275 5/17/2025
0.7.0 242 5/16/2025
0.6.0 239 5/16/2025
0.5.0 311 5/1/2025
0.4.1 373 4/17/2025
0.4.0 240 4/17/2025
0.3.0 227 4/17/2025
0.2.0 233 4/16/2025