pub trait EventNormalizationExt {
// Required methods
fn normalized_llm_request(&self) -> Option<Cow<'_, AnnotatedLlmRequest>>;
fn normalized_llm_response(&self) -> Option<Cow<'_, AnnotatedLlmResponse>>;
}Expand description
Core-only normalized LLM accessors for ATOF events.
These helpers use built-in codec resolution, so they live in the runtime crate rather than the shared DTO crate.
Required Methods§
Sourcefn normalized_llm_request(&self) -> Option<Cow<'_, AnnotatedLlmRequest>>
fn normalized_llm_request(&self) -> Option<Cow<'_, AnnotatedLlmRequest>>
Normalized LLM request: the codec annotation when present, otherwise a best-effort decode of the start-event input payload.
The fallback decode requires the start-event input to be the serialized
LlmRequest wire shape ({headers, content}) emitted by the managed
LLM pipeline; events whose input is a bare payload or a non-LLM shape
yield None.
Sourcefn normalized_llm_response(&self) -> Option<Cow<'_, AnnotatedLlmResponse>>
fn normalized_llm_response(&self) -> Option<Cow<'_, AnnotatedLlmResponse>>
Normalized LLM response: the codec annotation when present, otherwise a best-effort decode of the end-event output payload.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".