pub enum ToolControl {
Handoff {
target: String,
payload: Value,
},
Done(Value),
Update(Vec<(String, Value)>),
}Variants§
Handoff
Hand off control to another agent / handler by id.
Done(Value)
Terminate the current turn early with this value.
Update(Vec<(String, Value)>)
Update one or more workflow channels.
Trait Implementations§
Source§impl Clone for ToolControl
impl Clone for ToolControl
Source§fn clone(&self) -> ToolControl
fn clone(&self) -> ToolControl
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 ToolControl
impl Debug for ToolControl
Source§impl<'de> Deserialize<'de> for ToolControl
impl<'de> Deserialize<'de> for ToolControl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolControl
impl RefUnwindSafe for ToolControl
impl Send for ToolControl
impl Sync for ToolControl
impl Unpin for ToolControl
impl UnsafeUnpin for ToolControl
impl UnwindSafe for ToolControl
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