#[non_exhaustive]pub enum NormalizedLog {
Message {
role: Role,
content: String,
},
ToolCall {
name: String,
args: Value,
status: ToolStatus,
action: ActionType,
},
Thinking {
content: String,
},
TokenUsage {
total: u32,
limit: u32,
},
Error {
error_type: String,
message: String,
},
}Expand description
Provider-agnostic log entry produced by a LogNormalizer.
Normalized logs are an intermediate representation between raw provider output
and higher-level crate::event::AgentEvent values. The enum is intentionally
non-exhaustive for forward compatibility.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Message
Message emitted by user/assistant/system.
ToolCall
Tool invocation state update.
Fields
§
status: ToolStatusTool execution status.
§
action: ActionTypeUnified high-level action metadata.
Thinking
Assistant reasoning/thinking content.
TokenUsage
Token usage signal.
Error
Error signal emitted by the source normalizer.
Trait Implementations§
Source§impl Clone for NormalizedLog
impl Clone for NormalizedLog
Source§fn clone(&self) -> NormalizedLog
fn clone(&self) -> NormalizedLog
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedLog
impl Debug for NormalizedLog
Source§impl<'de> Deserialize<'de> for NormalizedLog
impl<'de> Deserialize<'de> for NormalizedLog
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 NormalizedLog
impl RefUnwindSafe for NormalizedLog
impl Send for NormalizedLog
impl Sync for NormalizedLog
impl Unpin for NormalizedLog
impl UnsafeUnpin for NormalizedLog
impl UnwindSafe for NormalizedLog
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