pub struct ExternalToolResult {
pub call_id: CallId,
pub payload_ref: PayloadRef,
pub digest: Digest,
pub original_size: WireU64,
pub preview: String,
pub is_error: bool,
pub disposition: ToolResultDisposition,
}Expand description
A tool result whose body the host persisted before submitting.
Failure and size are orthogonal (§7.10 rule 9). A tool that fails after producing a huge
diagnostic body is not a rare shape — it is the common one — so this arm carries the same two
failure facts as ToolResult: whether the call errored, and whether the executor could keep
going. Without them an externalised failure was indistinguishable from an externalised success,
and a fatal one could not exist at all.
Fields§
§call_id: CallId§payload_ref: PayloadRefOpaque locator — see PayloadRef. Not a path, and never resolved by the kernel.
digest: Digest§original_size: WireU64§preview: StringBounded excerpt the kernel may keep resident and show the model.
is_error: bool§disposition: ToolResultDispositionMandatory, exactly as on the inline arm: the dangerous value must never be the silent one.
Trait Implementations§
Source§impl Clone for ExternalToolResult
impl Clone for ExternalToolResult
Source§fn clone(&self) -> ExternalToolResult
fn clone(&self) -> ExternalToolResult
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 ExternalToolResult
impl Debug for ExternalToolResult
Source§impl<'de> Deserialize<'de> for ExternalToolResult
impl<'de> Deserialize<'de> for ExternalToolResult
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
Source§impl PartialEq for ExternalToolResult
impl PartialEq for ExternalToolResult
Source§impl Serialize for ExternalToolResult
impl Serialize for ExternalToolResult
impl StructuralPartialEq for ExternalToolResult
Auto Trait Implementations§
impl Freeze for ExternalToolResult
impl RefUnwindSafe for ExternalToolResult
impl Send for ExternalToolResult
impl Sync for ExternalToolResult
impl Unpin for ExternalToolResult
impl UnsafeUnpin for ExternalToolResult
impl UnwindSafe for ExternalToolResult
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