pub struct ToolOutput {
pub text: String,
pub data: Value,
pub is_error: bool,
pub images: Vec<ToolImage>,
}Expand description
Result of a tool call.
Fields§
§text: StringText handed back to a model.
data: ValueStructured result, if the tool returns one.
is_error: boolWhether the tool reported an error (the agent loop may still continue).
images: Vec<ToolImage>Images shown to the model next to text (see check_images for limits).
Implementations§
Trait Implementations§
Source§impl Clone for ToolOutput
impl Clone for ToolOutput
Source§impl Debug for ToolOutput
impl Debug for ToolOutput
Source§impl Default for ToolOutput
impl Default for ToolOutput
Source§impl PartialEq for ToolOutput
impl PartialEq for ToolOutput
impl StructuralPartialEq for ToolOutput
Auto Trait Implementations§
impl Forget for ToolOutput
impl Freeze for ToolOutputwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<Vec<Value>> is !null: Freeze,
PhantomData<ArcInner<Vec<Value>>>: Freeze,
*const ArcInner<IndexMap<String, Value>> is !null: Freeze,
PhantomData<ArcInner<IndexMap<String, Value>>>: Freeze,
*const ArcInner<File> is !null: Freeze,
PhantomData<ArcInner<File>>: Freeze,
PhantomData<ToolImage>: Freeze,
impl Move for ToolOutput
impl RefUnwindSafe for ToolOutput
impl Send for ToolOutput
impl Sync for ToolOutput
impl Unpin for ToolOutput
impl UnsafeUnpin for ToolOutputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<Vec<Value>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Value>>>: UnsafeUnpin,
*const ArcInner<IndexMap<String, Value>> is !null: UnsafeUnpin,
PhantomData<ArcInner<IndexMap<String, Value>>>: UnsafeUnpin,
*const ArcInner<File> is !null: UnsafeUnpin,
PhantomData<ArcInner<File>>: UnsafeUnpin,
PhantomData<ToolImage>: UnsafeUnpin,
impl UnwindSafe for ToolOutputwhere
RawVecInner: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<Vec<Value>>: UnwindSafe,
Arc<IndexMap<String, Value>>: UnwindSafe,
Arc<File>: UnwindSafe,
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