0

Multi-agent orchestration

The Semantic Kernel Agent Framework now supports orchestrating multiple agents to work together to complete a task.

Example · مثالpython

Content

Multi-agent orchestration

The Semantic Kernel Agent Framework now supports orchestrating multiple agents to work together to complete a task.

Background

The following samples are beneficial if you are just getting started with Semantic Kernel.

  • [Chat Completion](../../concepts/chat_completion/)
  • [Auto Function Calling](../../concepts/auto_function_calling/)
  • [Structured Output](../../concepts/structured_outputs/)
  • [Getting Started with Agents](../../getting_started_with_agents/)
  • [More advanced agent samples](../../concepts/agents/)

Prerequisites

The following environment variables are required to run the samples:

  • OPENAI_API_KEY
  • OPENAI_CHAT_MODEL_ID

However, if you are using other model services, feel free to switch to those in the samples. Refer to [here](../../concepts/setup/README.md) on how to set up the environment variables for your model service.

Orchestrations

| Orchestrations | Description | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Concurrent | Useful for tasks that will benefit from independent analysis from multiple agents. | | Sequential | Useful for tasks that require a well-defined step-by-step approach. | | Handoff | Useful for tasks that are dynamic in nature and don't have a well-defined step-by-step approach. | | GroupChat | Useful for tasks that will benefit from inputs from multiple agents and a highly configurable conversation flow. | | Magentic | GroupChat like with a planner based manager. Inspired by Magentic One. |

Source and license

Source
Microsoft Semantic Kernel
Original
microsoft/semantic-kernel/python/samples/getting_started_with_agents/multi_agent_orchestration
License
MIT