pub struct ToolOutputMeta {
pub duration_ms: Option<u64>,
pub original_tokens: Option<usize>,
pub extra: Option<Value>,
}Expand description
Optional observability sidecar on a tool output; never part of pairing.
Fields§
§duration_ms: Option<u64>Wall-clock duration of the execution, if measured.
original_tokens: Option<usize>Estimated token count of the output body before truncation, when known. This does not include result notes or media.
extra: Option<Value>Free-form JSON for tool- or driver-specific annotations.
Trait Implementations§
Source§impl Clone for ToolOutputMeta
impl Clone for ToolOutputMeta
Source§impl Debug for ToolOutputMeta
impl Debug for ToolOutputMeta
Source§impl<'de> Deserialize<'de> for ToolOutputMeta
impl<'de> Deserialize<'de> for ToolOutputMeta
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 ToolOutputMeta
impl PartialEq for ToolOutputMeta
Source§impl Serialize for ToolOutputMeta
impl Serialize for ToolOutputMeta
impl StructuralPartialEq for ToolOutputMeta
Auto Trait Implementations§
impl Freeze for ToolOutputMeta
impl RefUnwindSafe for ToolOutputMeta
impl Send for ToolOutputMeta
impl Sync for ToolOutputMeta
impl Unpin for ToolOutputMeta
impl UnsafeUnpin for ToolOutputMeta
impl UnwindSafe for ToolOutputMeta
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