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.
HandoffInputData
Defined in the handoff module.
Rust AI Agent SDK
Data passed to a handoff target agent.
Fields
| Name | Type | Description |
|---|
messages | Vec<serde_json::Value> | Messages to pass to target agent |
context | HashMap<String | Additional context data |
serde_json | :Value> | Additional context data |
source_agent | Option<String> | Name of the source agent |
handoff_depth | usize | Current handoff depth |
handoff_chain | Vec<String> | Chain of agents in the handoff |
Methods
new
Create new handoff input data
messages
fn messages(mut self, messages: Vec<serde_json::Value>) -> Self
Set messages
Parameters:
| Name | Type |
|---|
messages | Vec<serde_json::Value> |
context
fn context(mut self, key: impl Into<String>, value: serde_json::Value) -> Self
Add context
Parameters:
| Name | Type |
|---|
key | impl Into<String> |
value | serde_json::Value |
source_agent
fn source_agent(mut self, agent: impl Into<String>) -> Self
Set source agent
Parameters:
| Name | Type |
|---|
agent | impl Into<String> |
Source
View on GitHub
praisonai/src/handoff/mod.rs at line 248