pub struct ToolItem {
pub id: String,
pub name: String,
pub args: Value,
pub partial: Option<String>,
pub result: Option<String>,
pub is_error: bool,
pub done: bool,
}Expand description
A tool invocation as rendered in the transcript.
Fields§
§id: String§name: String§args: Value§partial: Option<String>Latest partial output reported via on_update, if any.
result: Option<String>Final output once the tool finished.
is_error: bool§done: boolTrait Implementations§
impl StructuralPartialEq for ToolItem
Auto Trait Implementations§
impl Forget for ToolItem
impl Freeze for ToolItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for ToolItem
impl RefUnwindSafe for ToolItem
impl Send for ToolItem
impl Sync for ToolItem
impl Unpin for ToolItem
impl UnsafeUnpin for ToolItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for ToolItem
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