Skip to main content
www.automat-it.com Info@automat-it.com
Multi-Agent
Systems on AWS
Principal MLOps/AI Engineer
Automat-it
Vladyslav Melnyk
About us
2
www.automat-it.com Info@automat-it.com
Vladyslav Melnyk
Principal MLOps/AI Engineer
vladyslav.melnyk@automat-it.com
• 9+ years of experience in Machine Learning Operations and Engineering
• Masters Degree in Computer Engineering
• Experienced in all stages of the ML Lifecycle
• AWS ML Specialty Certified
About Me
Professional Experience
Hobbies
What is AI Agent?
Strands Agents — What It Is
Strands Agents Tools
Strands Agents Multi-Agent Patterns
Pattern 1: Single Agent + Tools
The foundation. One agent, multiple tools, full agentic loop.
from strands import Agent, tool
from strands_tools import http_api_tool
@tool
def get_weather(city: str) -> str:
"""Get current weather for a city."""
return f"Sunny, 22°C in {city}"
@tool
def book_hotel(city: str, nights: int) -> str:
"""Book a hotel."""
return f"Booked {nights} nights in {city}"
agent = Agent(
system_prompt="You are a travel assistant.",
tools=[get_weather, book_hotel, http_api_tool]
)
agent("Plan a 3-night trip to Kyiv")
Agent handles automatically: conversation history · LLM calls · tool orchestration · agentic loop
Pattern 2: Agents-as-Tools (Orchestrator +
Specialists)
Wrap specialist agents as @tool. Orchestrator delegates — never does everything itself.
from strands import Agent, tool
research_agent = Agent(system_prompt="Research specialist.", model="us.amazon.nova-pro-v1:0")
math_agent = Agent(system_prompt="Math expert. Never round.", model="us.amazon.nova-lite-v1:0")
@tool
def research(query: str) -> str:
"""Delegate to research specialist."""
return str(research_agent(query))
@tool
def calculate(expression: str) -> str:
"""Delegate to math specialist."""
return str(math_agent(expression))
orchestrator = Agent(
system_prompt="Coordinate research and math tasks.",
model="us.anthropic.claude-sonnet-4-5", # expensive model only for orchestration
tools=[research, calculate]
)
Key insight: Claude Sonnet for orchestration · Nova Lite/Micro for subtasks — cost optimization
Pattern 3: Swarm (Peer Collaboration)
Pattern 3: Swarm (Peer Collaboration)
No fixed orchestrator. Agents hand off to each other based on context.
from strands import Agent
from strands.multiagent import Swarm
from strands_tools import memory, file_write, http_api_tool
researcher = Agent(
name="researcher",
system_prompt="Gather information and pass findings to the analyst.",
tools=[http_api_tool, memory]
)
analyst = Agent(
name="analyst",
system_prompt="Analyze data and pass conclusions to the writer.",
tools=[memory]
)
writer = Agent(
name="writer",
system_prompt="Write the final report.",
tools=[file_write]
)
swarm = Swarm([researcher, analyst, writer])
swarm("Research AI adoption in Ukraine and write a report")
Pattern 4: Graph (Deterministic Pipeline)
Pattern 4: Graph (Deterministic Pipeline)
Enforced execution order. Branching supported. Fully debuggable. Great for CI/CD gates.
from strands import Agent
from strands.multiagent import GraphBuilder
research_agent = Agent(name="researcher", system_prompt="Gather raw data.")
analysis_agent = Agent(name="analyst", system_prompt="Analyze the data.")
review_agent = Agent(name="reviewer", system_prompt="Review and approve.")
graph = (
GraphBuilder()
.add_node(research_agent)
.add_node(analysis_agent)
.add_node(review_agent)
.add_edge(research_agent, analysis_agent)
.add_edge(analysis_agent, review_agent)
.build()
)
graph("Analyze Q3 fraud patterns")
Pattern 5: A2A (Cross-Framework, Remote Agents)
Pattern 5: A2A (Cross-Framework, Remote Agents)
Agent-to-Agent protocol. Your Strands agent talks to LangGraph, CrewAI, or any A2A agent.
from strands import Agent
from strands.multiagent.a2a import A2AServer
from strands_tools.a2a_client import A2AClientToolProvider
from strands_tools import http_api_tool
# Expose your agent via A2A — any framework can call it
local_agent = Agent(name="fraud-analyzer", tools=[http_api_tool])
a2a_server = A2AServer(agent=local_agent, port=9000)
a2a_server.serve() # AgentCard at /.well-known/agent.json
# Consume remote agents (LangGraph, CrewAI, other Strands)
provider = A2AClientToolProvider(
known_agent_urls=["http://partner-agent:9001", "http://data-agent:9002"]
)
orchestrator = Agent(tools=[provider.tools])
orchestrator("Coordinate fraud analysis across all data sources")
Why it matters: teams use different frameworks — A2A makes them interoperable
Building an agent is the start,
production scale is the goal
Build, deploy, and operate highly capable agents securely
at scale using any framework and model—no
infrastructure management required
Amazon Bedrock AgentCore
App
Any model
Prompt
Tools
Context
Any
framework
Runtime
Amazon Bedrock AgentCore Platform
Memory
Observability OTEL
Gateway
Browser
Code Interpreter
Tools
MCP
A2A
Any agent
Evaluations
Policy
Identity
Any provider
AgentCore Runtime
A2A,
MCP
Agent instructions
Agent local Tools
Agent Context
Any framework
AgentCore Runtime
OTEL
Any model
Time to value
Few lines of code, serverless,
deploy in less than a minute
Secure
Session isolation, built-in auth,
PrivateLink, VPC
Scalable
Large payloads, multi-hour workloads,
async, bi-directional streaming
Framework
Agent or tool code
Models
AgentCore Runtime decorator
+
AgentCore Observability config
AgentCore Identity config
AgentCore Runtime – Code, Deploy, Run…
configure
Docker
file
AgentCore Runtime
AgentCore Runtime
Endpoint
Amazon ECR
Repository
launch AgentCore Runtime
Agent
Code-zip
upload
Amazon S3
Bucket
launch
AgentCore Runtime – Code, Deploy, Run…
Framework
Agent or tool code
Models
AgentCore Runtime decorator
+
AgentCore Observability config
AgentCore Identity config
configure
Docker
file
AgentCore Runtime
AgentCore Runtime
Endpoint
Amazon ECR
Repository
launch AgentCore Runtime
Agent
Code-zip
upload
Amazon S3
Bucket
launch
Framework
Agent or tool code
Models
AgentCore Runtime decorator
+
AgentCore Observability config
AgentCore Identity config
Application
invoke
User
Micro-vm
Micro-vm
Micro-vm
Micro-vm
Micro-vm
AgentCore Runtime – Code, Deploy, Run…
AgentCore
Runtime Video
AgentCore
Gateway
Easily connect agents to
tools and data
Customer
support agent
Tools
3P partner tools
Enterprise APIs
Existing MCP tools
Knowledge bases
Agents
Customer
support agent
Tool A
Tool B
Tool C
Customer
support agent
Shopping agent
Pricing agent
Tool 1
Tool 2
Tool n
Customer
support agent
Shopping agent
Pricing agent
Tool 1
Tool 2
Tool n
Standard protocol
(Model Context Protocol)
Agent 1
(LangGraph)
Agent 2
(Crew.ai)
Agent n
(Strands SDK)
Tools
Gateway
MCP compliance
Tools creation
Request/response
transformation
Tools search
Authorization
Agents-as-tools
Tools filtering
Fine-grained
access control
Metrics, logging,
auditing
3P partner tools
Enterprise APIs
Existing MCP tools
Knowledge bases
Agents
AgentCore Gateway provides secure access
Agent
AgentCore
Gateway
Tool 4
Tool 5
Tool 6 AWS
Lambda
function
MCP client
Smithy target
List tools, Invoke tool, Search
streamable-http connection
APIs, tools, resources
OpenAPI
target
AWS Lambda
target
MCP server
target
Tool 1
Tool 2
Tool 3
Tool 7
Tool 8
Tool n
MCP
server
RESTful
services
OpenAPI
schema
Smithy
models
AgentCore Gateway provides secure access
Agent
AgentCore
Gateway
Tool 4
Tool 5
Tool 6 AWS
Lambda
function
MCP client
Smithy target
AgentCore Identity
Secure token vault
Token caching
Workload identity
OAuth2 authorizer
Resource credentials
provider
Inbound Auth
Identity provider
(Amazon Cognito, Okta, Auth0)
List tools, Invoke tool, Search
streamable-http connection
/mcp
IAM
IAM
APIs, tools, resources
OAuth token
CloudWatch
Outbound Auth
Resource credentials provider API
OpenAPI
target
AWS Lambda
target
MCP server
target
Tool 1
Tool 2
Tool 3
Tool 7
Tool 8
Tool n
MCP
server
RESTful
services
OpenAPI
schema
Smithy
models
IAM
Token
Token
API key
MCPify your AWS Lambda
Transform functions into secure MCP tools with Bedrock AgentCore Gateway
Agent
AgentCore
Gateway
Tool 4
Tool 5
Tool 6
Lambda
function
MCP client
AWS Lambda
target
AgentCore Identity
Secure token vault
Token caching
Workload identity
OAuth2 authorizer
Resource credentials
provider
Inbound Auth
Identity provider
(Amazon Cognito, Okta, Auth0)
List tools, Invoke tool, Search
streamable-http connection
/mcp
AWS IAM
AWS IAM
APIs, tools, resources
OAuth token
AgentCore Gateway
Lambda Video
Transform APIs into secure MCP tools with Bedrock AgentCore Gateway
Agent
AgentCore
Gateway
Tool 4
Tool 5
Tool 6
RESTful
services with
OpenAPI
schema
MCP client
Open API
target
AgentCore Identity
Secure token vault
Token caching
Workload identity
OAuth2 authorizer
Resource credentials
provider
Outbound Auth
Resource credentials provider API
Inbound Auth
Identity provider
(Amazon Cognito, Okta, Auth0)
List tools, Invoke tool, Search
streamable-http connection
/mcp
AWS IAM
Inbound
OAuth token
Outbound
API key
Outbound
OAuth token
APIs, tools, resources
MCPify your OpenAPI RESTful APIs
Agent
AgentCore
Gateway
Tool 4
Tool 5
Tool 6
MCP Server
MCP client
MCP Server
target
AgentCore Identity
Secure token vault
Token caching
Workload identity
OAuth2 authorizer
Resource credentials
provider
Outbound Auth
Resource credentials provider API
Inbound Auth
Identity provider
(Amazon Cognito, Okta, Auth0)
List tools, Invoke tool, Search
streamable-http connection
/mcp AWS IAM
Outbound
OAuth token
APIs, tools, resources
Integrate your MCP server with AgentCore Gateway
OAuth token
Target 1 250 tools
Target 2 100 tools
Target 2 10 tools
AgentCore
Gateway
Services may have 100s of tools
Without search
MCP list tools
returns all 300+ tools
AgentCore Gateway semantic search
Search: "create a social media post"
Benefits
• AgentCore Gateway automatically indexes tools, and gives serverless semantic search
• Reduces context passed to the agent’s LLM, improving accuracy, speed, and cost
• Lets agent focus on tools relevant for a given task
• The search tool name is x-amz-bedrock-agentcore-search
Target 1 250 tools
Target 2 100 tools
Target 2 10 tools
AgentCore
Gateway
Services may have 100s of tools
Without search
Using search
MCP list tools
returns all 300+ tools
returns top 10 tools
AgentCore Gateway semantic search
AgentCore
Identity
Agent
(hosted/
self-hosted)
AgentCore
Gateway (tools)
User
AWS
resource/agents
(through IAM)
Agent
Inbound
Auth
App
User Identity
Provider
Your users need to
access the agent
through an application
External
resources/agents
(through OAuth, API
keys, and so on)
Gateway
Inbound Auth
Agent
Outbound Auth
(IAM)
Agent
Outbound Auth
(OAuth/API key)
Agent
Outbound Auth
(OAuth/API key)
AgentCore Identity
Gateway
Outbound Auth
OAuth Token
Your agent needs
To access resources
Your agent needs
to access resources
Your agent needs
to access resources
Your Gateway needs
to access downstream
resources
AgentCore Identity: Main components
Centralized management of agent identities, secure credentials, and seamless integration
Tracks agent
invocations and
credential usage
Provides auditability
and governance for
agent activities
Observability
Validates authorization
for agent invocations
Integrates with existing
identity providers
through JWT tokens
Agent
Authorizer
Centralized registry for
agent and workload
identities
Single source of truth
for agent identity
management
Agent Identity
Directory
Securely brokers
credentials for
downstream resource
access
Retrieves and vends
credentials from
external providers
(Google, GitHub, etc.)
Resource
Credential Provider
Secure OAuth token
storage with automatic
refresh
Enables agent actions
on behalf of users
without repeated
consent
Resource
Token Vault
Memory
agents lacks the right
context at the right time
Don’t just remember, be smart!
Knowledge
retention
Enables sophisticated problem-
solving through persistent
memory and continuous learning
capabilities
User
preferences
Personalizes interactions by
remembering preferences and
past conversations across multiple
sessions
Contextual
intelligence
Elevates accuracy and relevance
of responses through contextual
understanding and pattern
recognition
Agentic Memory – Current Challenges
Storage Scalability
Issues
Memory
Refresh
Integration Complexity
Retrieval Accuracy
Problems
Observability
Privacy & Security
Concerns
Amazon Bedrock
AgentCore Memory
Let your agents remember you long after you've logged off
Flexible time to live
(Short-term events expiry
up to 365 days)
Serverless
(Minimal setup)
Built-in observability
(Integrated with Amazon
CloudWatch)
Built-in encryption
(At rest and in transit)
Flexible namespace
(Organize and share memories)
Bedrock AgentCore Memory
User
Conversation
Agent 1
Agent 2
Agent 3
Raw events
Synchronous
Events and
memories
Automatic
Memory
Extraction
Module
Messages
Asynchronous
Memories
Short-term Memory
Long-term Memory
AgentCore Memory
Short-term Memory
User
Conversation
Agent
Create event
Delete event
Synchronous
Get event
List events
Short-term Memory
AgentCore Memory
Events contain the interactions/messages that
occur between your agent and user.
actorId: user-a
sessionId: session-b
Short-term Memory
Branching
Event 1
Event 2
Event 3
Event 4
Event 7
Event 8
Event 5
Event 6
Short-term
Memory
Raw Events
Event + Strategy
Every K messages / X
secs of inactivity
Memory Extraction Module
Memory extraction
Consolidation
Embedding &
Indexing
AgentCore Memory – Long-term memory (LTM)
Long-term
Memory
Vector Storage
How do we know what insights
to put into Long-term Memory?
Summary
User Preferences
Semantic
Override
Self Managed
Strategies
AgentCore
Browser
AgentCore Browser
User Agent
Query
(“Buy shoes on Amazon”)
1
LLM
Invoke LLM
2
Computer tool call
Tool use {
type: ”click”,
button: ”left”,
x: 286,
y:102
}
3
Command Translation
Translate instructions to
commands
Browser_use, Playwright, etc.
4
Command
Execution
Execution Environment
Headless
Browser
Hosted Library Server
(Browser_use, Playwright, etc.)
5
Screenshot
6
AgentCore
Browser
Video
AgentCore
Code Interpreter
AgentCore Code Interpreter:
Securely write and execute code
• Start quickly with prebuilt
execution runtimes for
JavaScript, TypeScript,
and Python with common
libraries pre-installed.
Ease of use
• Process gigabyte-scale
datasets efficiently using
Amazon S3 integration,
without API limitations.
Large-scale data
processing
• Perform complex workflows
and data analysis in isolated
sandbox environments.
• Access internal data sources
securely through VPC without
exposing sensitive data.
Secure code execution
Result
User
AgentCore Code Interpreter
Query
Agent
LLM
Invoke LLM
1
Create Session
Code Interpreter
Shell
File System
Tool Selection
2
Tool Result
4
Observability
Telemetry
3
AgentCore Code
Interpreter Video
AgentCore Policies
Allow / deny
Policy in AgentCore
Dynamic policy
evaluation
Policy in AgentCore
Requested
tool calls
Allowed
tool calls
Keep agents in bounds
Act autonomously, but stay within
boundaries and compliance
Verifiably correct
Built on years of automated
reasoning, using Cedar
Instant and consistent
Policies evaluated in milliseconds,
without slowing agents
PREVIEW
Policy Lifecycle
Management
Policy Authoring
(Natural language or
Cedar)
Policy
Admin
Agents and other
MCP clients
Tools, APIs,
Systems,
Data
Protected
resources
User
AgentCore Gateway
AgentCore
Observability
AgentCore
Policy Video
AgentCore
Evaluations
AgentCore Evaluations
Agent
User
AgentCore Evaluations
Write results with
judge explanation
Call LLM judge
for each metric
AgentCore Observability
Agent
owner
Configure
Monitor and
assess
PREVIEW
On-demand / Online
AgentCore
Runtime
AgentCore
Gateway
AgentCore
Memory
Two evaluation modes for different needs
Development and CI/CD
Production Monitoring
Online Evaluation
• Monitor live agent
interactions
• Sample traces continuously
• Detect quality degradation
Use cases
• Catch silent failures
• Track quality trends
• Monitor after
deployments
• Ensure ongoing reliability
On-Demand Evaluation
• Test changes before
deployment
• Run evaluation tests in CI/CD
• Regression testing for builds
• Gate deployments on quality
Use cases
• Validate prompt changes
• Compare model
performance
• Prevent quality regressions
• Automate quality gates
Agent’s evaluation metrics depends on the dimension we want to optimize for
AgentCore
Observability
AgentCore Observability
AgentCore
Observability
AgentCore Memory
AgentCore Identity
AgentCore Gateway
AgentCore Browser &
Code Interpreter
Framework
ADOT
AI Agent Telemetry
Service Telemetry
3P
OTEL
Third-party
observability dashboards
AI Agent Telemetry
2
3
1
Automatic
linking of AI
Agent &
Service
generated
OTEL
1 2 3
Collect AI agent
execution traces with
AgentCore
Observability
Alternatively, collect
AI agent execution
traces with 3P
observability tools
Optionally, enable
service level traces
with AgentCore
Observability
Runtime
• Get complete visibility into
agent behavior, reasoning,
inputs, outputs, and tools.
www.automat-it.com Info@automat-it.com
Join Us!
www.automat-it.com Info@automat-it.com
Thank
You