pub struct ResultPatch {
pub content: Option<Vec<ContentBlock>>,
pub details: Option<Value>,
pub structured_content: Option<Value>,
pub is_error: Option<bool>,
pub usage: Option<Usage>,
pub terminate: Option<bool>,
}Expand description
Replacement fields for a tool result. None keeps the original.
Fields§
§content: Option<Vec<ContentBlock>>New content. It drops the structured content, which may no longer
match, unless structured_content replaces that too.
details: Option<Value>New details.
structured_content: Option<Value>New structured content.
is_error: Option<bool>New error flag.
usage: Option<Usage>New usage.
terminate: Option<bool>New terminate flag.
Trait Implementations§
Source§impl Clone for ResultPatch
impl Clone for ResultPatch
Source§impl Debug for ResultPatch
impl Debug for ResultPatch
Source§impl Default for ResultPatch
impl Default for ResultPatch
Source§impl PartialEq for ResultPatch
impl PartialEq for ResultPatch
impl StructuralPartialEq for ResultPatch
Auto Trait Implementations§
impl Forget for ResultPatch
impl Freeze for ResultPatch
impl RefUnwindSafe for ResultPatch
impl Send for ResultPatch
impl Sync for ResultPatch
impl Unpin for ResultPatch
impl UnsafeUnpin for ResultPatch
impl UnwindSafe for ResultPatch
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