Archive of AI

Source Snapshot / 2025-05-16-aws-strands-agents-open-source-sdk-2

Introducing Strands Agents 1.0: Production-Ready Multi-Agent Orchestration Made Simple

Linked event: 2025-05-16 · AWS Open-Sources Model-Driven Agent Framework Strands Agents SDK with MCP Support

Publisher
AWS Open Source Blog
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / fc11f4f1a9820281
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] 2025 年 7 月 15 日发布 1.0 版本,引入 Swarm 与 Graph 多智能体编排并获得社区广泛贡献。

[正文前段节选] Skip to Main Content

AWS Open Source Blog

Introducing Strands Agents 1.0: Production-Ready Multi-Agent Orchestration Made Simple

Today we are excited to announce version 1.0 of the Strands Agents SDK, marking a significant milestone in our journey to make building AI agents simple, reliable, and production-ready. Strands Agents is an open source SDK that takes a model-driven approach to building and running AI agents in just a few lines of code. Strands scales from simple to complex agent use cases, and from local development to deployment in production.

Since launching as a preview in May 2025, we’ve seen over 2,000 stars on GitHub and over 150K downloads on PyPI. Strands 1.0 brings the same level of simplicity to multi-agent applications that Strands has provided for single agents, with the addition of four new primitives and support for the Agent to Agent (A2A) protocol. To take multi-agent architectures into production, 1.0 also includes a new session manager for retrieving agent state from a remote datastore, and improved async support throughout the SDK. For flexibility to build your agents with any model, support for five additional model provider APIs were contributed by partners like Anthropic, Meta, OpenAI, Cohere, Mistral, Stability, Writer, and Baseten (see the pull request). Let’s get into these updates in detail. Complete code samples are available on strandsagents.com.

Simplifying multi-agent patterns

Multi-agent patterns enable specialized AI agents to work together—delegating tasks, sharing knowledge, and coordinating actions—to solve complex problems that single agents cannot handle alone. Strands 1.0 introduces four intuitive primitives that make orchestrating multiple agents a simple extension of the model/tool/prompt combination that you use to create single agents.

Agents-as-Tools: Hierarchical Delegation Made SimpleThe agents-as-tools pattern transforms specialized agents into intelligent tools that other agents can call, enabling hierarchical delegation where agents acting as the orchestrator dynamically consult domain experts without giving up control of the request. This mirrors how human teams work—a project manager doesn’t need to know everything, they just need to know which specialist to consult for each task.

from strands import Agent, tool

from strands_tools import calculator, file_write, python_repl, journal

def web_search(query: str) -> str:

return "Dummy web search results here!"

# Create specialized agents

research_analyst_agent = Agent(

system_prompt="You are a research specialist who gathers and analyzes information about local startup markets",

tools=[web_search, calculator, file_write, python_repl]

travel_advisor_agent = Agent(

system_prompt="You are a travel expert who helps with trip planning and destination advice",

tools=[web_search, journal]

# Convert the agents into tools

def research_analyst(query: str) -> str:

response = research_analyst_agent(query)

return str(response)

def travel_advisor(query: str) -> str:

response = travel_advisor_agent(query)

# Orchestrator naturally delegates to specialists

executive_assistant = Agent(

tools=[research_analyst, travel_advisor]

result = executive_assistant("I have a business meeting in Portland next week. Suggest a nice place to stay near the local startup scene, and suggest a few startups to visit")

In this abridged example, we define travel and research agents who have specialized prompts and tools for their areas of focus, which the executive assistant agent can call upon for input on the user’s request. The executive assistant agent is responsible for synthesizing input from other agents into the response back to the user. Learn more about Agents-as-Tools in the Strands documentation.

Handoffs: Explicit transfer of controlHandoffs enable agents to explicitly pass responsibility to humans when they encounter tasks outside their expertise, preserving full conversation context during the transfer. Strands provides a built-in handoff_to_user tool that agents can use to seamlessly transfer control while maintaining conversation history and context—like a customer service representative asking the customer for more information about their case.

from strands import Agent

from strands_tools import handoff_to_user

SYSTEM_PROMPT="""

Answer the user's support query. Ask them questions with the handoff_to_user tool when you need more information

# Include the handoff_to_user tool in our agent's tool list

agent = Agent(

system_prompt=SYSTEM_PROMPT,

tools=[handoff_to_user]

# The agent calls the handoff_to_user tool which includes the question for the customer

agent("I have a question about my order.")

Agents can also ask questions directly to humans when prompted to do so.

Answer the user's support query. Ask them questions when you need more information

# The agent asks questions by streaming them back as text

Swarms: Self-Organizing Collaborative TeamsA Swarm creates autonomous agent teams that dynamically coordinate through shared memory, allowing multiple specialists to collaborate on complex tasks. Think of it as a brainstorming session where experts build on each other’s ideas, with the team self-organizing to deliver the best collective result.

import logging

from strands.multiagent import Swarm

from strands_tools import memory, calculator, file_write

# Enables Strands debug logs level, and prints to stderr

logging.getLogger("strands.multiagent").setLevel(logging.DEBUG)

logging.basicConfig(

format="%(levelname)s | %(name)s | %(message)s",

handlers=[logging.StreamHandler()]

researcher = Agent(

name="researcher",

system_prompt="You research topics thoroughly using your memory and built-in knowledge",

tools=[memory]

analyst = Agent(

name="analyst",

system_prompt="You analyze data and create insights",

tools=[calculator, memory]

writer = Agent(

name="writer",

system_prompt="You write comprehensive reports based on research and analysis",

tools=[file_write, memory]

# Swarm automatically coordinates agents

market_research_team = Swarm([researcher, analyst, writer])

result = market_research_team(

"What is the history of AI since 1950? Create a comprehensive report"

Learn more about Swarms in the Strands documentation.

Graphs: Deterministic Workflow ControlGraphs let you define explicit agent workflows with conditional routing and decision points, helpful for processes that require specific steps, approvals, or quality gates. Like a well-designed assembly line or approval chain, graphs ensure agents work through predefined business rules in the correct order every time.

from strands.multiagent import GraphBuilder

analyzer_agent = Agent(

name="analyzer",

system_prompt="Analyze customer requests and categorize them",

tools=[text_classifier, sentiment_analyzer]

normal_processor = Agent(

name="normal_processor",

system_prompt="Handle routine requests automatically",

tools=[knowledge_base, auto_responder]

critical_processor = Agent(

name="critical_processor",

system_prompt="Handle critical requests quickly",

tools=[knowledge_base, escalate_to_support_agent]

# Build deterministic workflow

builder = GraphBuilder()

builder.add_node(analyzer_agent, "analyze")

builder.add_node(normal_processor, "normal_processor")

builder.add_node(critical_processor, "critical_processor")

# Define conditional routing

def is_approved(state):

def is_critical(state):

return False

builder.add_edge("analyze", "normal_processor", condition=is_approved)

builder.add_edge("analyze", "critical_processor", condition=is_critical)

builder.set_entry_point("analyze")

customer_support_graph = builder.build()

# Execute the graph with user input

results = customer_support_graph("I need help with my order!")

Learn more about Graphs in the Strands documentation.

[...内容已截断,完整版请查看原文或 Wayback 快照]