pub struct ElidedToolResult {
pub tool_call_id: String,
pub tool_name: Option<String>,
pub is_error: bool,
pub canonical_content_kind: ToolResultContentKind,
pub action: ToolResultElisionAction,
pub canonical_content_bytes: usize,
pub projected_content_bytes: usize,
}Expand description
One tool result changed only in the provider-request projection.
The canonical body remains in the transcript and is deliberately absent here, so event journals do not duplicate potentially sensitive tool output.
Fields§
§tool_call_id: StringThe provider tool-call id whose result was changed.
tool_name: Option<String>The preceding tool’s name when it could be correlated with the result.
is_error: boolWhether the canonical result represented a tool failure.
canonical_content_kind: ToolResultContentKindWhether the canonical body was text or structured JSON.
action: ToolResultElisionActionHow the projection reduced the canonical body.
canonical_content_bytes: usizeUTF-8 text bytes or compact serialized JSON bytes before projection.
projected_content_bytes: usizeBody bytes that remain in the provider-neutral projection.
Trait Implementations§
Source§impl Clone for ElidedToolResult
impl Clone for ElidedToolResult
Source§fn clone(&self) -> ElidedToolResult
fn clone(&self) -> ElidedToolResult
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 ElidedToolResult
impl Debug for ElidedToolResult
Source§impl<'de> Deserialize<'de> for ElidedToolResult
impl<'de> Deserialize<'de> for ElidedToolResult
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
impl Eq for ElidedToolResult
Source§impl PartialEq for ElidedToolResult
impl PartialEq for ElidedToolResult
Source§impl Serialize for ElidedToolResult
impl Serialize for ElidedToolResult
impl StructuralPartialEq for ElidedToolResult
Auto Trait Implementations§
impl Freeze for ElidedToolResult
impl RefUnwindSafe for ElidedToolResult
impl Send for ElidedToolResult
impl Sync for ElidedToolResult
impl Unpin for ElidedToolResult
impl UnsafeUnpin for ElidedToolResult
impl UnwindSafe for ElidedToolResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.