Skip to main content

Handoff

Defined in the handoff module.
Rust AI Agent SDK Represents a handoff configuration for delegating tasks to another agent. Handoffs are represented as tools to the LLM, allowing agents to transfer control to specialized agents for specific tasks.

Fields

Methods

new

Create a new handoff to a target agent Parameters:

tool_name

Set custom tool name Parameters:

tool_description

Set custom tool description Parameters:

config

Set handoff configuration Parameters:

get_tool_name

Get the tool name for this handoff

get_tool_description

Get the tool description for this handoff

check_safety

Check safety constraints before handoff Parameters:

prepare_context

Prepare context data for handoff based on context policy Parameters:

Source

View on GitHub

praisonai/src/handoff/mod.rs at line 492

Rust Handoffs

Rust A2A