GroupManagerTarget

GroupManagerTarget(**data: Any)

Target that represents an agent by name.
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.

Parameters:
NameDescription
**dataType: Any

Class Attributes

model_config



selection_message



Instance Methods

can_resolve_for_speaker_selection

can_resolve_for_speaker_selection(self) -> bool

Check if the target can resolve for speaker selection.


create_wrapper_agent

create_wrapper_agent(
    self,
    parent_agent: ConversableAgent,
    index: int
) -> ConversableAgent

Create a wrapper agent for the target if needed.

Parameters:
NameDescription
parent_agentType: ConversableAgent
indexType: int

display_name

display_name(self) -> str

Get the display name for the target.


needs_agent_wrapper

needs_agent_wrapper(self) -> bool

Check if the target needs to be wrapped in an agent.


normalized_name

normalized_name(self) -> str

Get a normalized name for the target that has no spaces, used for function calling


resolve

resolve(
    self,
    groupchat: GroupChat,
    current_agent: ConversableAgent,
    user_agent: ForwardRef('ConversableAgent') | None
) -> SpeakerSelectionResult

Resolve to the speaker selection for the group.

Parameters:
NameDescription
groupchatType: GroupChat
current_agentType: ConversableAgent
user_agentType: ForwardRef(‘ConversableAgent’) | None