feat(swarm): add AgentBase protocol support#2002
Open
emaan-c wants to merge 1 commit intostrands-agents:mainfrom
Open
feat(swarm): add AgentBase protocol support#2002emaan-c wants to merge 1 commit intostrands-agents:mainfrom
emaan-c wants to merge 1 commit intostrands-agents:mainfrom
Conversation
2fc8209 to
296b485
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Enable Swarm to accept any
AgentBaseimplementation, not just concreteAgentinstances. This allows developers to integrate agents from LangGraph, Quick Suite, or custom frameworks into Swarm orchestration alongside native Strands agents, reducing development overhead when extending multi-agent systems with existing agent implementations.Motivation
Customers have existing agent investments in other frameworks. Currently, using these agents in Strands Swarm requires rebuilding them as native Strands agents, creating significant duplication of effort. This change enables customers to leverage Strands' swarm orchestration while reusing existing agent implementations, providing a migration path and reducing maintenance burden.
Resolves: #1720
Public API Changes
Swarm now accepts
AgentBaseimplementations:External agents participate in execution and return results. Full Swarm features (handoffs, state management) require native
Agentinstances; external agents degrade gracefully. No breaking changes.Use Cases
Integrate existing agents from other frameworks without rebuilding, enabling quick prototyping and incremental migration from other frameworks to Strands.
Related Issues
Resolves: #1720
Documentation PR
N/A
Type of Change
New feature
Testing
How have you tested the change?
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.