pub struct TransferToAgentTool { /* private fields */ }Expand description
Tool that transfers control to another agent.
The agent_name parameter is constrained to a set of valid agent names
via JSON Schema enum, preventing the model from hallucinating invalid names.
Implementations§
Trait Implementations§
Source§impl Clone for TransferToAgentTool
impl Clone for TransferToAgentTool
Source§fn clone(&self) -> TransferToAgentTool
fn clone(&self) -> TransferToAgentTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferToAgentTool
impl Debug for TransferToAgentTool
Source§impl ToolFunction for TransferToAgentTool
impl ToolFunction for TransferToAgentTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description of what this tool does.
Source§fn parameters(&self) -> Option<Value>
fn parameters(&self) -> Option<Value>
JSON Schema for the tool’s input parameters, or
None if parameterless.Auto Trait Implementations§
impl Freeze for TransferToAgentTool
impl RefUnwindSafe for TransferToAgentTool
impl Send for TransferToAgentTool
impl Sync for TransferToAgentTool
impl Unpin for TransferToAgentTool
impl UnwindSafe for TransferToAgentTool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more