Skip to main content

to_tool_function

Method
This is a method of the Handoff class in the handoff module.
Convert this handoff to a tool function that can be called by the LLM.

Signature

def to_tool_function(source_agent: 'Agent') -> Callable

Parameters

source_agent
Agent
required
The agent that will be using this handoff

Returns

Returns
Callable
A callable function that performs the handoff