transition_target
autogen.agentchat.group.targets.transition_target.AgentNameTarget
AgentNameTarget
Target that represents an agent by name.
Initialize with agent name as a positional parameter.
Name | Description |
---|---|
agent_name | Type: str |
**data | Type: Any |
Class Attributes
agent_name
model_config
Instance Methods
can_resolve_for_speaker_selection
Check if the target can resolve for speaker selection.
create_wrapper_agent
Create a wrapper agent for the target if needed.
Parameters:Name | Description |
---|---|
parent_agent | Type: ConversableAgent |
index | Type: int |
display_name
Get the display name for the target.
needs_agent_wrapper
Check if the target needs to be wrapped in an agent.
normalized_name
Get a normalized name for the target that has no spaces, used for function calling
resolve
Resolve to the agent name string.
Parameters:Name | Description |
---|---|
groupchat | Type: GroupChat |
current_agent | Type: ConversableAgent |
user_agent | Type: ForwardRef(‘ConversableAgent’) | None |