GroupChatTargetTarget that represents a group chat.
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 |
Check if the target can resolve for speaker selection. For GroupChatTarget the chat must be encapsulated into an agent.
Create a wrapper agent for the group chat.
Parameters:Name | Description |
---|---|
parent_agent | Type: ConversableAgent |
index | Type: int |
Get the display name for the target.
Check if the target needs to be wrapped in an agent. GroupChatTarget must be wrapped in an agent.
Get a normalized name for the target that has no spaces, used for function calling.
Resolve to the nested chat configuration.
Parameters:Name | Description |
---|---|
groupchat | Type: GroupChat |
current_agent | Type: ConversableAgent |
user_agent | Type: ForwardRef(‘ConversableAgent’) | None |