StrandsAgents.Core
0.1.5
dotnet add package StrandsAgents.Core --version 0.1.5
NuGet\Install-Package StrandsAgents.Core -Version 0.1.5
<PackageReference Include="StrandsAgents.Core" Version="0.1.5" />
<PackageVersion Include="StrandsAgents.Core" Version="0.1.5" />
<PackageReference Include="StrandsAgents.Core" />
paket add StrandsAgents.Core --version 0.1.5
#r "nuget: StrandsAgents.Core, 0.1.5"
#:package StrandsAgents.Core@0.1.5
#addin nuget:?package=StrandsAgents.Core&version=0.1.5
#tool nuget:?package=StrandsAgents.Core&version=0.1.5
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 |
|---|---|
|
Strands.Core
Deprecated. This package has been renamed to StrandsAgents.Core. Please update your PackageReference. The old name will stop receiving updates after November 2025. |
|
|
StrandsAgents.Tools
Built-in tools for Strands Agents .NET agents — HTTP requests, file operations, MCP server integration, and more. Drop-in tools for common agentic tasks. |
|
|
StrandsAgents.Models.Bedrock
Amazon Bedrock model provider for Strands Agents .NET. Use Claude, Nova, Llama and other Bedrock models with the Strands agent framework. Includes retry, streaming, and structured output support. |
|
|
StrandsAgents.Extensions.DI
Microsoft.Extensions.DependencyInjection integration for Strands Agents .NET. Register agents, models, and tools with AddBedrockModel() and AddStrandsAgent() for use in ASP.NET, Worker Services, Lambda, and any .NET host. |
|
|
StrandsAgents.MultiAgent
Multi-agent orchestration for Strands Agents .NET. Graph-based pipelines, agent-as-tool composition, parallel execution, and A2A protocol support for cross-framework agent networks. |
GitHub repositories
This package is not used by any popular GitHub repositories.