pub struct ToolResultDraft {
pub text: String,
pub images: Vec<ResultImage>,
pub is_error: bool,
}Expand description
A tool’s output, mid-flight.
Fields§
§text: StringWhat the model will read.
images: Vec<ResultImage>Images that will ride alongside the result. A transformer may drop or replace these — that is what “move the large thing out of the conversation” looks like from here.
is_error: boolWhether this is a failure. Transformers see failures too; see the module docs.
Trait Implementations§
Source§impl Clone for ToolResultDraft
impl Clone for ToolResultDraft
Source§impl Debug for ToolResultDraft
impl Debug for ToolResultDraft
impl Eq for ToolResultDraft
Source§impl PartialEq for ToolResultDraft
impl PartialEq for ToolResultDraft
impl StructuralPartialEq for ToolResultDraft
Auto Trait Implementations§
impl Forget for ToolResultDraft
impl Freeze for ToolResultDraft
impl Move for ToolResultDraft
impl RefUnwindSafe for ToolResultDraft
impl Send for ToolResultDraft
impl Sync for ToolResultDraft
impl Unpin for ToolResultDraft
impl UnsafeUnpin for ToolResultDraft
impl UnwindSafe for ToolResultDraft
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