Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python : Sample for Swarm Agent Approach #10723

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

nmoeller
Copy link
Contributor

@nmoeller nmoeller commented Feb 28, 2025

Motivation and Context

In OpenAI Swarm & Autogen Swarm Agents are able to handoff via Function Calling, rather than using a Prompt in the Selection Strategy. This PR should provide a sample how you can build a Swarm Agent System in Semantic Kernel.

The example implents the sample of Autogen Swarm.

Contribution Checklist

@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Feb 28, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Feb 28, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel/agents/strategies/selection
   swarm_selection_strategy.py29290%3–71
TOTAL19047240987% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3199 5 💤 0 ❌ 0 🔥 1m 41s ⏱️

@nmoeller
Copy link
Contributor Author

nmoeller commented Feb 28, 2025

Hey,

so this is just a sample how an Agent handoff could be done with Function Calling.
Would you be interested in this integrated in Semantic Kernel Agents ?

I think i could also make a class SwarmAgentChat,SwarmSelectionStrategy in SK.

Just let me know if you would be interested in a more sophisticated implementation or the Sample is enough.

@nmoeller nmoeller marked this pull request as ready for review March 1, 2025 10:00
@nmoeller nmoeller requested a review from a team as a code owner March 1, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants