pub struct ToolResult {
pub content: Vec<ToolResultContent>,
pub details: Value,
pub terminate: bool,
}Expand description
The structured result of executing a tool. content is what the model sees.
Fields§
§content: Vec<ToolResultContent>§details: ValueAuxiliary payload attached by some tools (the bash truncation marker,
the edit diff + first-changed line). Not consumed by the loop or sent to
the model — only content is — but serialized with the result for
debugging, so it is always emitted (never skipped).
terminate: boolImplementations§
Trait Implementations§
Source§impl Clone for ToolResult
impl Clone for ToolResult
Source§impl Debug for ToolResult
impl Debug for ToolResult
Source§impl<'de> Deserialize<'de> for ToolResult
impl<'de> Deserialize<'de> for ToolResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ToolResult
impl Freeze for ToolResult
impl Move for ToolResult
impl RefUnwindSafe for ToolResult
impl Send for ToolResult
impl Sync for ToolResult
impl Unpin for ToolResult
impl UnsafeUnpin for ToolResult
impl UnwindSafe for ToolResult
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