Samples
All samples are runnable projects in the samples/ directory. Each demonstrates a specific pattern or integration.
Getting Started
| Sample | Description |
|---|---|
| CliAgent | Minimal multi-turn streaming REPL — the simplest possible agent |
| QuickstartSample | The code from the Getting Started page as a runnable project |
| DiAgent | Full dependency injection wiring with IServiceCollection |
Web & API
| Sample | Description |
|---|---|
| AspNetAgent | SSE /chat endpoint with session continuity |
| ChatUI | Browser chat UI with server-sent events and tool call badges |
| CustomerServiceApi | Production REST API with file-based session persistence |
| BlazorResearch | Blazor Server app with live parallel agent cards |
| SwarmResearchWeb | Web-based swarm research interface |
Multi-Agent
| Sample | Description |
|---|---|
| MultiAgentPipeline | Sequential and parallel orchestration patterns |
| OrchestratedResearch | All three orchestration patterns (pipeline, parallel, graph) |
| SupportTriage | Graph routing with hooks and structured output |
| FinanceAssistant | 4-agent parallel swarm for financial analysis |
| SwarmResearch | Multi-agent swarm research pattern |
| DistributedAgents | A2A cross-process agent communication |
Deployment
| Sample | Description |
|---|---|
| AotLambda | NativeAOT Lambda deployment — 93ms average cold start |
| DurableWorkflow | Step Functions orchestrated multi-stage pipeline with stage-level retries |
| AgentCoreSample | Amazon Bedrock AgentCore Runtime deployment |
| AgentCoreGatewaySample | AgentCore Gateway tool integration with web UI |
Specialized
| Sample | Description |
|---|---|
| FileAgent | File system operations with built-in file tools |
| AutoTrimAssistant | Automatic context window trimming with sliding window |
| PersistentAssistant | Cross-run memory with conversation summarization |
| ResponsibleAiSample | Guardrails and responsible AI patterns |
| CodeInterpreterSample | AgentCore Code Interpreter tool integration |
| BrowserSample | AgentCore Browser tool for web interaction |
| SemanticMemorySample | AgentCore Semantic Memory for knowledge retrieval |