FunctionTarget
autogen.agentchat.group.targets.function_target.FunctionTarget #
Bases: TransitionTarget
Transition target that invokes a tool function with (prev_output, context).
The function must return a FunctionTargetResult object that includes the next target to transition to.
Source code in autogen/agentchat/group/targets/function_target.py
can_resolve_for_speaker_selection #
resolve #
Invoke the function, update context variables (optional), broadcast messages (optional), and return the next target to transition to.
Source code in autogen/agentchat/group/targets/function_target.py
display_name #
normalized_name #
needs_agent_wrapper #
create_wrapper_agent #
activate_target #
Activate the target in the groupchat, setting the next target for GroupToolExecutor.
The Tool Executor's next target attribute will be picked up on the next iteration when _determine_next_agent is called