How awslabs/agentcore-samples works
This repository is a catalog of Amazon Bedrock AgentCore tutorials and reference applications, not one integrated runtime. The README describes a user path from creating an agent through deploying and operating it, while the tree shows examples for hosting, tools, advanced runtime behaviors, governance, and application use cases. The graph maps these documented capability areas and representative sample paths; most sample implementations were not inspected, so it avoids implying that separate examples call one another.
Main entry points: main.py Getting started · agentcore_policy_engine.py Policy engine handler · 01-strands-bedrock/invoke.py HTTP hosting · 02-a2a-protocol/invoke.py A2A hosting
Components 23
Build Agents
- Getting started
00-getting-started/main.py - Harness examples
01-features/01-harness/00-getting-started/getting_started.py
Host and Operate
- HTTP hosting
01-features/02-host-your-agent/01-runtime/01-hosting-agents/01-http-protocol/01-strands-bedrock/invoke.py - A2A hosting
01-features/02-host-your-agent/01-runtime/01-hosting-agents/02-a2a-protocol/invoke.py - AG-UI hosting
01-features/02-host-your-agent/01-runtime/01-hosting-agents/03-ag-ui-protocol/invoke.py - Streaming
01-features/02-host-your-agent/01-runtime/03-advanced/01-streaming-responses/invoke.py - Sessions
01-features/02-host-your-agent/01-runtime/03-advanced/02-session-management/invoke.py - Multi-agent
01-features/02-host-your-agent/01-runtime/03-advanced/06-multi-agent/orchestrator_agent.py
Agent Capabilities
- MCP servers
01-features/02-host-your-agent/01-runtime/02-hosting-tools/01-mcp-server-basics/mcp_server.py - Gateway integration
01-features/01-harness/01-advanced-examples/02-gateway-integration/gateway_integration.py - Persistent filesystem
01-features/02-host-your-agent/01-runtime/03-advanced/07-persistent-filesystems/agent.py - Built-in tools
01-features/02-host-your-agent/01-runtime/03-advanced/05-execute-commands/agent.py - Observability sample
01-features/02-host-your-agent/01-runtime/01-hosting-agents/04-observability-with-strands/invoke.py - Agent evaluation
01-features/01-harness/02-use-cases/04-weather-agent/backend/evaluation.py
Applications
- Weather agent app
01-features/01-harness/02-use-cases/04-weather-agent/backend/agent.py - Customer service
05-blueprints/end-to-end-customer-service-agent/cx-agent-backend/cx_agent_backend/infrastructure/adapters/openai_llm_service.py - Review UI
02-use-cases/01-conversational-agents/episodic-memory-claims-agent/frontend/src/hooks/useReviews.ts
Governance
- Policy resources
06-workshops/02-AgentCore-gateway/04-integration/04-enterprise-mcp-demo/cdk/lib/agentcore-policy-engine.ts - Policy engine handler
06-workshops/02-AgentCore-gateway/04-integration/04-enterprise-mcp-demo/cdk/lambda/agentcore-policy-engine/agentcore_policy_engine.py - Sandbox authorization
01-features/02-host-your-agent/01-runtime/04-coding-agents/05-autonomous-coding-agent-durable/sandbox/policy_engine.py
Other components
- Agent developer
- AgentCore services
- Application user
Connections 21
- Agent developer → Getting started: starts with
- Agent developer → Harness examples: explores examples
- Getting started → AgentCore services: deploys to
- HTTP hosting → AgentCore services: invokes runtime
- A2A hosting → AgentCore services: invokes runtime
- AG-UI hosting → AgentCore services: invokes runtime
- Streaming → AgentCore services: invokes runtime
- Sessions → AgentCore services: invokes runtime
- MCP servers → AgentCore services: hosts tools
- Gateway integration → AgentCore services: integrates gateway
- Persistent filesystem → AgentCore services: uses runtime
- Built-in tools → AgentCore services: uses runtime
- Observability sample → AgentCore services: observes runtime
- Agent evaluation → AgentCore services: evaluates agent
- Application user → Weather agent app: uses
- Application user → Customer service: uses
- Application user → Review UI: reviews tasks
- Policy resources → Policy engine handler: dispatches resource actions
- Policy engine handler → AgentCore services: manages policies
- Sandbox authorization → AgentCore services: authorizes actions
- Multi-agent → AgentCore services: runs agent