pub enum EventKind {
ToolCall {
tool: String,
tokens_original: u64,
tokens_saved: u64,
mode: Option<String>,
duration_ms: u64,
path: Option<String>,
},
CacheHit {
path: String,
saved_tokens: u64,
},
Compression {
path: String,
before_lines: u32,
after_lines: u32,
strategy: String,
kept_line_count: u32,
removed_line_count: u32,
},
AgentAction {
agent_id: String,
action: String,
tool: Option<String>,
},
KnowledgeUpdate {
category: String,
key: String,
action: String,
},
ThresholdShift {
language: String,
old_entropy: f64,
new_entropy: f64,
old_jaccard: f64,
new_jaccard: f64,
},
PolicyViolation {
role: String,
tool: String,
reason: String,
},
RoleChanged {
from: String,
to: String,
},
ProfileChanged {
from: String,
to: String,
},
VerificationWarning {
warning_kind: String,
detail: String,
severity: String,
},
ThresholdAdapted {
language: String,
arm: String,
old_threshold: f64,
new_threshold: f64,
},
}Variants§
ToolCall
Fields
CacheHit
Compression
Fields
AgentAction
KnowledgeUpdate
ThresholdShift
PolicyViolation
RoleChanged
ProfileChanged
VerificationWarning
ThresholdAdapted
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EventKind
impl Serialize for EventKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Forget for EventKind
impl Freeze for EventKind
impl Move for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKindwhere
RawVecInner: Send,
impl Sync for EventKindwhere
RawVecInner: Sync,
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKindwhere
RawVecInner: UnwindSafe,
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<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 more