pub enum ToolTelemetry {
Search(SearchTelemetry),
Recall(RecallTelemetry),
}Expand description
Structured data a tool reports about what it actually did (UI Phase 1).
Why: see the module docs — this is the seam that lets a tool’s internal
knowledge (real search lane, per-memory scores, what entered context)
reach the event stream as DATA instead of dying inside its rendered text.
What: one variant per structured event kind; None on a ToolResult
means “this tool has nothing structured to say”, which is every tool but
the two retrieval tools.
Test: tools::traits::tests::tool_result_carries_optional_telemetry.
Variants§
Search(SearchTelemetry)
A search_code call — becomes Event::SearchPerformed.
Recall(RecallTelemetry)
A recall_session call — becomes Event::MemoryRecalled.
Trait Implementations§
Source§impl Clone for ToolTelemetry
impl Clone for ToolTelemetry
Source§impl Debug for ToolTelemetry
impl Debug for ToolTelemetry
Source§impl PartialEq for ToolTelemetry
impl PartialEq for ToolTelemetry
impl StructuralPartialEq for ToolTelemetry
Auto Trait Implementations§
impl Freeze for ToolTelemetry
impl RefUnwindSafe for ToolTelemetry
impl Send for ToolTelemetry
impl Sync for ToolTelemetry
impl Unpin for ToolTelemetry
impl UnsafeUnpin for ToolTelemetry
impl UnwindSafe for ToolTelemetry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.