pub struct ToolAnswer {
pub text: String,
pub is_error: bool,
pub updates: Vec<Update>,
pub images: Vec<Image>,
}Expand description
What a tool answered: its result as text — pretty JSON, or why it failed — and every update the editor sent while it ran, in order, for a front end that shows the editor to show.
Fields§
§text: String§is_error: bool§updates: Vec<Update>§images: Vec<Image>The pictures it answered with too (look).
Trait Implementations§
Source§impl Clone for ToolAnswer
impl Clone for ToolAnswer
Source§fn clone(&self) -> ToolAnswer
fn clone(&self) -> ToolAnswer
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 moreSource§impl Debug for ToolAnswer
impl Debug for ToolAnswer
Auto Trait Implementations§
impl !RefUnwindSafe for ToolAnswer
impl !Send for ToolAnswer
impl !Sync for ToolAnswer
impl !UnwindSafe for ToolAnswer
impl Freeze for ToolAnswer
impl Unpin for ToolAnswer
impl UnsafeUnpin for ToolAnswer
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