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

NameTypeDescription
targetStringTarget agent name
messageOption<String>Handoff message/context
include_historyboolWhether to include conversation history
metadatastd::collections::HashMap<StringCustom metadata
serde_json:Value>Custom metadata

Methods

new

rust
fn new(target: impl Into<String>) -> Self

Create a new handoff configuration

Parameters:

NameType
targetimpl Into&lt;String&gt;

message

rust
fn message(mut self, message: impl Into<String>) -> Self

Set handoff message

Parameters:

NameType
messageimpl Into&lt;String&gt;

include_history

rust
fn include_history(mut self, include: bool) -> Self

Set whether to include history

Parameters:

NameType
includebool

metadata

rust
fn metadata(mut self, key: impl Into<String>, value: serde_json::Value) -> Self

Add metadata

Parameters:

NameType
keyimpl Into&lt;String&gt;
valueserde_json::Value

Source

View on GitHub

praisonai/src/parity/workflow_aliases.rs at line 140


Related Documentation