Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
HandoffChain
Defined in the handoff module.
Rust AI Agent SDK
Thread-safe handoff chain tracker.
Fields
| Name | Type | Description |
|---|
chain | std::sync::RwLock<Vec<String>> | - |
Methods
new
Create a new handoff chain
get
fn get(&self) -> Vec<String>
Get current chain
depth
Get current depth
push
fn push(&self, agent_name: impl Into<String>) -> ()
Push agent to chain
Parameters:
| Name | Type |
|---|
agent_name | impl Into<String> |
pop
fn pop(&self) -> Option<String>
Pop agent from chain
contains
fn contains(&self, agent_name: &str) -> bool
Check if agent is in chain (cycle detection)
Parameters:
clear
Clear the chain
Source
View on GitHub
praisonai/src/handoff/mod.rs at line 442