Skip to main content

HandoffConfig

Defined in the handoff module.
Unified configuration for handoff behavior. This consolidates all handoff-related settings including context policy, timeouts, concurrency control, and safety features. Attributes: context_policy: How to share context during handoff (default: summary for safety) max_context_tokens: Maximum tokens to include in context max_context_messages: Maximum messages to include (for LAST_N policy) preserve_system: Whether to preserve system messages in context timeout_seconds: Timeout for handoff execution max_concurrent: Maximum concurrent handoffs (0 = unlimited) detect_cycles: Enable cycle detection to prevent infinite loops max_depth: Maximum handoff chain depth async_mode: Enable async execution on_handoff: Callback when handoff starts on_complete: Callback when handoff completes on_error: Callback when handoff fails

Properties

context_policy
ContextPolicy
No description available.
max_context_tokens
int
No description available.
max_context_messages
int
No description available.
preserve_system
bool
No description available.
timeout_seconds
float
No description available.
max_concurrent
int
No description available.
detect_cycles
bool
No description available.
max_depth
int
No description available.
async_mode
bool
No description available.
on_handoff
Optional
No description available.
on_complete
Optional
No description available.
on_error
Optional
No description available.
  • from_dict: Create config from dictionary.
  • to_dict: Convert config to dictionary.