Handoff Config • Rust AI Agent SDK
HandoffConfig: Handoff configuration for agent-to-agent transfers
HandoffConfig
Defined in the Workflow Aliases module.
Rust AI Agent SDK
Handoff configuration for agent-to-agent transfers
Fields
| Name | Type | Description |
|---|---|---|
target | String | Target agent name |
message | Option<String> | Handoff message/context |
include_history | bool | Whether to include conversation history |
metadata | std::collections::HashMap<String | Custom metadata |
serde_json | :Value> | Custom metadata |
Methods
new
fn new(target: impl Into<String>) -> SelfCreate a new handoff configuration
Parameters:
| Name | Type |
|---|---|
target | impl Into<String> |
message
fn message(mut self, message: impl Into<String>) -> SelfSet handoff message
Parameters:
| Name | Type |
|---|---|
message | impl Into<String> |
include_history
fn include_history(mut self, include: bool) -> SelfSet whether to include history
Parameters:
| Name | Type |
|---|---|
include | bool |
metadata
fn metadata(mut self, key: impl Into<String>, value: serde_json::Value) -> SelfAdd metadata
Parameters:
| Name | Type |
|---|---|
key | impl Into<String> |
value | serde_json::Value |
Source
View on GitHubpraisonai/src/parity/workflow_aliases.rs at line 140