TransitionTarget
autogen.agentchat.group.targets.transition_target.TransitionTarget #
Bases: BaseModel
Base class for all transition targets across OnCondition, OnContextCondition, and after work.
can_resolve_for_speaker_selection #
Check if the target can resolve to an option for speaker selection (Agent, 'None' to end, Str for speaker selection method). In the case of a nested chat, this will return False as it should be encapsulated in an agent.
Source code in autogen/agentchat/group/targets/transition_target.py
resolve #
Resolve to a speaker selection result (Agent, None for termination, or str for speaker selection method).
Source code in autogen/agentchat/group/targets/transition_target.py
display_name #
normalized_name #
Get a normalized name for the target that has no spaces, used for function calling
needs_agent_wrapper #
create_wrapper_agent #
Create a wrapper agent for the target if needed.