speaker_selection_result
autogen.agentchat.group.speaker_selection_result.SpeakerSelectionResult
SpeakerSelectionResult
Represents a speaker selection result that will be returned to GroupChat._prepare_and_select_agents to determine the next speaker.
This class can return an Agent, a None to end the conversation, or a string for a speaker selection method.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.self
is explicitly positional-only to allow self
as a field name.
Name | Description |
---|---|
**data | Type: Any |
Class Attributes
agent_name
model_config
speaker_selection_method
terminate
Instance Methods
get_speaker_selection_result
Get the speaker selection result. If None, the conversation will end.
Parameters:Name | Description |
---|---|
groupchat | Type: GroupChat |