handoff • Rust AI Agent SDK

Handoff functionality for agent-to-agent delegation.

handoff

Rust AI Agent SDK

Handoff functionality for agent-to-agent delegation.

This module provides handoff capabilities that allow agents to delegate tasks to other agents, similar to the Python SDK implementation.

Features

  • Handoff: LLM-driven or programmatic agent-to-agent transfer
  • HandoffConfig: Configuration for context policy, timeouts, safety
  • HandoffResult: Result of a handoff operation
  • ContextPolicy: Policy for context sharing during handoff

Example

ignore
use praisonai::{Handoff, HandoffConfig, ContextPolicy};

let config = HandoffConfig::new()
.context_policy(ContextPolicy::Summary)
.timeout_seconds(60.0)
.detect_cycles(true);

let handoff = Handoff::new(target_agent)
.config(config)
.tool_name("transfer_to_billing");

Import

rust
use praisonai::handoff::*;

Classes


Related Documentation