Repository
aws-dotnet-ai
.NET libraries for building AI agents and integrating generative AI on AWS, including Amazon Bedrock and Amazon Bedrock AgentCore
- Package
- NuGet
- AWS.AgentCore.Hosting
- Build AI agents that deploy to Amazon Bedrock AgentCore. Provides endpoint mapping, streaming, memory, middleware, NativeAOT support, and a source generator for zero-boilerplate development.
- AWS.AgentCore.Testing
- Local development and testing emulators. Includes a Runtime Emulator, Memory Emulator, and Chat App UI — no AWS account required.
- Sample
- Description
Specs
- PackageNuGet
- AWS.AgentCore.HostingBuild AI agents that deploy to Amazon Bedrock AgentCore. Provides endpoint mapping, streaming, memory, middleware, NativeAOT support, and a source generator for zero-boilerplate development.
- AWS.AgentCore.TestingLocal development and testing emulators. Includes a Runtime Emulator, Memory Emulator, and Chat App UI — no AWS account required.
- SampleDescription
- AnnotationsSampleSource generator with DI, tools, custom ping
- StreamingAgentSSE streaming with extension methods
- MicrosoftAgentFrameworkSampleAgent + function middleware, multiple tools
- NativeAotAnnotationsNativeAOT with source generator
- NativeAotExtensionsNativeAOT with extension methods
- RemoteMcpAgentMCP tool provider integration
- AspireAppHostLocal dev experience with Aspire
README
AI Integrations on AWS for .NET
This repository contains .NET libraries for building AI agents on AWS. Built on top of Microsoft Agent Framework and Amazon Bedrock AgentCore, these packages provide a zero-friction path from local development to production deployment.
Packages
| Package | NuGet | Description |
|---|---|---|
| AWS.AgentCore.Hosting | Build AI agents that deploy to Amazon Bedrock AgentCore. Provides endpoint mapping, streaming, memory, middleware, NativeAOT support, and a source generator for zero-boilerplate development. | |
| AWS.AgentCore.Testing | Local development and testing emulators. Includes a Runtime Emulator, Memory Emulator, and Chat App UI — no AWS account required. |
Quick Start
dotnet new web -n MyAgent
cd MyAgent
dotnet add package AWS.AgentCore.Hosting
See the AWS.AgentCore.Hosting README for complete getting-started instructions and code samples.
Sample Applications
| Sample | Description |
|---|---|
| AnnotationsSample | Source generator with DI, tools, custom ping |
| StreamingAgent | SSE streaming with extension methods |
| MicrosoftAgentFrameworkSample | Agent + function middleware, multiple tools |
| NativeAotAnnotations | NativeAOT with source generator |
| NativeAotExtensions | NativeAOT with extension methods |
| RemoteMcpAgent | MCP tool provider integration |
| AspireAppHost | Local dev experience with Aspire |
Getting Help
For feature requests or issues using this library please open an issue in this repository.
Contributing
We welcome community contributions and pull requests. See CONTRIBUTING.md for information on how to submit code.
Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.