pub struct ToolOutput {
pub content: String,
pub failure: Option<ToolFailure>,
pub truncated: bool,
}Expand description
A tool’s result as the model sees it. A failure is still a result: the model reads it and can react.
Fields§
§content: String§failure: Option<ToolFailure>Why the call failed; None when it succeeded.
truncated: boolImplementations§
Trait Implementations§
Source§impl Clone for ToolOutput
impl Clone for ToolOutput
Source§impl Debug for ToolOutput
impl Debug for ToolOutput
impl Eq for ToolOutput
Source§impl From<ToolError> for ToolOutput
impl From<ToolError> for ToolOutput
Source§impl PartialEq for ToolOutput
impl PartialEq for ToolOutput
impl StructuralPartialEq for ToolOutput
Auto Trait Implementations§
impl Freeze for ToolOutput
impl RefUnwindSafe for ToolOutput
impl Send for ToolOutput
impl Sync for ToolOutput
impl Unpin for ToolOutput
impl UnsafeUnpin for ToolOutput
impl UnwindSafe for ToolOutput
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