StrandsAgents.Core
0.1.11
dotnet add package StrandsAgents.Core --version 0.1.11
NuGet\Install-Package StrandsAgents.Core -Version 0.1.11
<PackageReference Include="StrandsAgents.Core" Version="0.1.11" />
<PackageVersion Include="StrandsAgents.Core" Version="0.1.11" />
<PackageReference Include="StrandsAgents.Core" />
paket add StrandsAgents.Core --version 0.1.11
#r "nuget: StrandsAgents.Core, 0.1.11"
#:package StrandsAgents.Core@0.1.11
#addin nuget:?package=StrandsAgents.Core&version=0.1.11
#tool nuget:?package=StrandsAgents.Core&version=0.1.11
StrandsAgents.Core
The Strands Agents framework for .NET — model-driven agentic AI built natively in C# 13.
dotnet add package StrandsAgents.Core
dotnet add package StrandsAgents.Models.Bedrock
dotnet add package StrandsAgents.SourceGenerator
Decorate any method with [Tool] — the source generator emits a compile-time ITool wrapper at build time:
using StrandsAgents.Core;
using StrandsAgents.Models.Bedrock;
// Define a tool
public class WeatherTools
{
[Tool("Returns the current weather for a city")]
public string GetWeather(string city) => $"Sunny, 22°C in {city}";
}
// Wire up the agent — WeatherTools_GetWeather_Tool is generated at compile time
var agent = new Agent(
model: new BedrockModel("us-east-1"),
systemPrompt: "You are a helpful assistant.",
tools: [new WeatherTools_GetWeather_Tool(new WeatherTools())]
);
// Single invocation
var result = await agent.InvokeAsync("What's the weather in London?");
Console.WriteLine(result.Message);
// Streaming
await foreach (var evt in agent.StreamAsync("Explain recursion"))
if (evt is TextDeltaEvent delta)
Console.Write(delta.Delta);
Full documentation and samples: github.com/apncodes/strands.net
| 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.Http (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on StrandsAgents.Core:
| Package | Downloads |
|---|---|
|
StrandsAgents.Tools
Built-in tools for Strands Agents .NET — HTTP request, file read/write, calculator, and MCP (Model Context Protocol) tool provider for connecting any MCP server via stdio or SSE. |
|
|
StrandsAgents.Models.Bedrock
Amazon Bedrock model provider for Strands Agents .NET — Converse and ConverseStream API, cross-region inference profiles, Guardrails, and all Bedrock-hosted model families including Claude, Nova, and Llama. |
|
|
StrandsAgents.Runtime
Amazon Bedrock AgentCore Runtime hosting for Strands Agents .NET — MapAgentCoreEndpoints(), managed Memory, Code Interpreter, Browser, and Gateway tool integrations. Your agent code is unchanged. |
|
|
StrandsAgents.Extensions.DI
ASP.NET Core and Worker Service DI extensions for Strands Agents .NET — AddBedrockModel(), AddStrandsAgent(), AddStrandsToolProvider<T>(), session management, and Lambda hosting wiring. |
|
|
StrandsAgents.MultiAgent
Multi-agent orchestration for Strands Agents .NET — pipeline, parallel fan-out, graph with conditional routing, agent-as-tool, and A2A protocol for cross-process cross-language agent communication. |
GitHub repositories
This package is not used by any popular GitHub repositories.