Skip to main content

Pattern

Base abstract class for all orchestration patterns.
Patterns provide a reusable way to define how agents interact within a group chat.
Each pattern encapsulates the logic for setting up agents, configuring handoffs, and determining the flow of conversation.
This is an abstract base class and should not be instantiated directly.
Use one of the concrete pattern implementations like AutoPattern, RoundRobinPattern, RandomPattern, or ManualPattern.
Initialize the pattern with the required components.
Parameters:

Static Methods

create_default

Create a default pattern with minimal configuration.
This replaces the need for a separate BasePattern class by providing a factory method that creates a simple DefaultPattern instance.
Parameters:

Instance Methods

prepare_group_chat

Prepare the group chat for orchestration.
This is the main method called by initiate_group_chat to set up the pattern.
Subclasses must implement or extend this method to define pattern-specific behavior.
Parameters: Returns: