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 Freeze for ToolItem
impl RefUnwindSafe for ToolItem
impl Send for ToolItem
impl Sync for ToolItem
impl Unpin for ToolItem
impl UnsafeUnpin for ToolItem
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