pub struct ToolSpan {
pub call_id: String,
pub tool_name: String,
pub arguments: Value,
pub category: Option<String>,
pub status: Option<SpanStatus>,
pub result: Option<Value>,
pub started_at: u64,
pub ended_at: Option<u64>,
pub duration_ms: Option<u64>,
}Expand description
Represents a tool execution span (invoke -> result).
Fields§
§call_id: String§tool_name: String§arguments: Value§category: Option<String>§status: Option<SpanStatus>§result: Option<Value>§started_at: u64§ended_at: Option<u64>§duration_ms: Option<u64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolSpan
impl<'de> Deserialize<'de> for ToolSpan
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 Freeze for ToolSpan
impl RefUnwindSafe for ToolSpan
impl Send for ToolSpan
impl Sync for ToolSpan
impl Unpin for ToolSpan
impl UnsafeUnpin for ToolSpan
impl UnwindSafe for ToolSpan
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