StrandsAgents.Extensions.DI 0.1.5

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

StrandsAgents.Extensions.DI

Microsoft.Extensions.DependencyInjection integration for Strands Agents .NET.

dotnet add package StrandsAgents.Extensions.DI
using StrandsAgents.Extensions.DI;

builder.Services
    .AddBedrockModel("us-east-1", "us.anthropic.claude-sonnet-4-5-v1:0")
    .AddFileReadTool("/var/data")
    .AddFileWriteTool("/var/data")
    .AddStrandsInMemorySessionManager()
    .AddStrandsAgent();

// Inject IAgent anywhere
app.MapPost("/ask", async (IAgent agent, AskRequest req) =>
    await agent.InvokeAsync(req.Prompt));

Supports Bedrock, Anthropic, Gemini, and OpenAI-compatible model providers. Works with ASP.NET Core, Worker Services, Azure Functions, and AWS Lambda.

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 StrandsAgents.Extensions.DI:

Package Downloads
Strands.Extensions.DI

Deprecated. This package has been renamed to StrandsAgents.Extensions.DI. Please update your PackageReference. The old name will stop receiving updates after November 2025.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.5 44 5/9/2026
0.1.4 46 5/9/2026