pub struct ToolResult {
pub tool_use_id: String,
pub name: ToolName,
pub answer: ToolAnswer,
pub took_us: Option<u64>,
}Expand description
tool_result: what the call returned, under the id it answers.
Fields§
§tool_use_id: StringThe tool_called id this line answers.
name: ToolName§answer: ToolAnswer§took_us: Option<u64>Whole microseconds from the moment the call started to the moment
it answered, read off the turn’s monotonic clock
(crates/kernel/spec/Event/Record.lean D20). Absent on every line
written before the key existed: a reader then falls back to the
difference of the two envelope moments, in milliseconds.
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
impl Eq for ToolResult
Source§impl PartialEq for ToolResult
impl PartialEq for ToolResult
Source§impl Serialize for ToolResult
impl Serialize for ToolResult
impl StructuralPartialEq for ToolResult
Auto Trait Implementations§
impl Freeze 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