pub struct TransferSignal { /* private fields */ }Expand description
Data structure carrying all information needed for a target agent to continue a conversation after a handoff.
Created by the transfer tool with target, reason, and optional summary.
The agent loop enriches it with conversation_history before surfacing
it in AgentResult.
Implementations§
Source§impl TransferSignal
impl TransferSignal
Sourcepub fn new(target_agent: impl Into<String>, reason: impl Into<String>) -> Self
pub fn new(target_agent: impl Into<String>, reason: impl Into<String>) -> Self
Create a new transfer signal with a target agent and reason.
Sourcepub fn with_context_summary(self, summary: impl Into<String>) -> Self
pub fn with_context_summary(self, summary: impl Into<String>) -> Self
Set an optional context summary for the target agent.
Sourcepub fn with_conversation_history(self, history: Vec<LlmMessage>) -> Self
pub fn with_conversation_history(self, history: Vec<LlmMessage>) -> Self
Set the conversation history to carry over to the target agent.
Only LLM messages are included; custom messages are filtered out by the agent loop before setting this field.
Sourcepub fn with_transfer_chain(self, chain: TransferChain) -> Self
pub fn with_transfer_chain(self, chain: TransferChain) -> Self
Set the transfer chain to carry across agent handoffs.
The receiving agent can seed its loop with this chain so circular and max-depth checks continue across transfers.
Sourcepub fn target_agent(&self) -> &str
pub fn target_agent(&self) -> &str
The name of the agent to transfer to.
Sourcepub fn context_summary(&self) -> Option<&str>
pub fn context_summary(&self) -> Option<&str>
Optional concise handoff brief for the target agent.
Sourcepub fn conversation_history(&self) -> &[LlmMessage]
pub fn conversation_history(&self) -> &[LlmMessage]
Messages to carry over to the target agent (LLM messages only).
Sourcepub const fn transfer_chain(&self) -> Option<&TransferChain>
pub const fn transfer_chain(&self) -> Option<&TransferChain>
Transfer chain captured at handoff time, if present.
Trait Implementations§
Source§impl Clone for TransferSignal
impl Clone for TransferSignal
Source§fn clone(&self) -> TransferSignal
fn clone(&self) -> TransferSignal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more