Handoff Input Data • Rust AI Agent SDK
HandoffInputData: Data passed to a handoff target agent.
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
fn new() -> SelfCreate new handoff input data
messages
fn messages(mut self, messages: Vec<serde_json::Value>) -> SelfSet messages
Parameters:
| Name | Type |
|---|---|
messages | Vec<serde_json::Value> |
context
fn context(mut self, key: impl Into<String>, value: serde_json::Value) -> SelfAdd context
Parameters:
| Name | Type |
|---|---|
key | impl Into<String> |
value | serde_json::Value |
source_agent
fn source_agent(mut self, agent: impl Into<String>) -> SelfSet source agent
Parameters:
| Name | Type |
|---|---|
agent | impl Into<String> |
Source
View on GitHubpraisonai/src/handoff/mod.rs at line 248