group_utils
autogen.agentchat.group.group_utils.determine_next_agent
determine_next_agent
Determine the next agent in the conversation.
Name | Description |
---|---|
last_speaker | The last agent to speak. Type: ConversableAgent |
groupchat | GroupChat instance. Type: GroupChat |
initial_agent | The initial agent in the conversation. Type: ConversableAgent |
use_initial_agent | Whether to use the initial agent straight away. Type: bool |
tool_executor | The tool execution agent. Type: GroupToolExecutor |
group_agent_names | List of agent names. Type: list[str] |
user_agent | Optional user proxy agent. Type: ForwardRef(‘ConversableAgent’) | None |
group_after_work | Group-level Transition option when an agent doesn’t select the next agent. Type: TransitionTarget |
Type | Description |
---|---|
Agent | str | None | Optional[Union[Agent, str]]: The next agent or speaker selection method. |