autogen.agentchat.groupchat
GroupChat Objects
@dataclass
class GroupChat()
A group chat class that contains a list of agents and the maximum number of rounds.
agent_names
@property
def agent_names() -> List[str]
Return the names of the agents in the group chat.
reset
def reset()
Reset the group chat.
agent_by_name
def agent_by_name(name: str) -> Agent
Find the next speaker based on the message.
next_agent
def next_agent(agent: Agent) -> Agent
Return the next agent in the list.
select_speaker_msg
def select_speaker_msg()
Return the message for selecting the next speaker.
select_speaker
def select_speaker(last_speaker: Agent, selector: ConversableAgent)
Select the next speaker.
GroupChatManager Objects
class GroupChatManager(ConversableAgent)
(In preview) A chat manager agent that can manage a group chat of multiple agents.
run_chat
def run_chat(messages: Optional[List[Dict]] = None, sender: Optional[Agent] = None, config: Optional[GroupChat] = None) -> Union[str, Dict, None]
Run a group chat.