pub enum InvocationResult {
Scalar {
result: AgentResult,
},
Vector {
results: Vec<AgentResult>,
},
TaskIds {
task_ids: Vec<String>,
},
}Expand description
Result returned to the parent’s tool call. Shape mirrors Join.
Variants§
Scalar
Join::Single → scalar.
Fields
§
result: AgentResultVector
Join::All → ordered Vec, positions match input target order.
Fields
§
results: Vec<AgentResult>TaskIds
Join::Detached → ordered Vec of task_ids, positions match input.
Trait Implementations§
Source§impl Clone for InvocationResult
impl Clone for InvocationResult
Source§fn clone(&self) -> InvocationResult
fn clone(&self) -> InvocationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InvocationResult
impl Debug for InvocationResult
Source§impl<'de> Deserialize<'de> for InvocationResult
impl<'de> Deserialize<'de> for InvocationResult
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 InvocationResult
impl RefUnwindSafe for InvocationResult
impl Send for InvocationResult
impl Sync for InvocationResult
impl Unpin for InvocationResult
impl UnsafeUnpin for InvocationResult
impl UnwindSafe for InvocationResult
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