pub struct ToolResult {
pub content: Vec<OutputContent>,
pub details: Option<Value>,
pub is_error: bool,
pub terminate: bool,
}Expand description
Result of a tool execution.
Fields§
§content: Vec<OutputContent>§details: Option<Value>§is_error: bool§terminate: boolImplementations§
Source§impl ToolResult
impl ToolResult
Sourcepub fn from_validation_error(err: ValidationError) -> Self
pub fn from_validation_error(err: ValidationError) -> Self
Create an error tool result from a validation error.
Trait Implementations§
Source§impl Clone for ToolResult
impl Clone for ToolResult
Source§fn clone(&self) -> ToolResult
fn clone(&self) -> ToolResult
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 moreAuto Trait Implementations§
impl Freeze for ToolResult
impl RefUnwindSafe for ToolResult
impl Send for ToolResult
impl Sync for ToolResult
impl Unpin for ToolResult
impl UnsafeUnpin for ToolResult
impl UnwindSafe for ToolResult
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