pub struct EventFilter {
pub conversation_id: Option<String>,
pub kind: Option<String>,
pub min_tick: Option<u64>,
pub max_tick: Option<u64>,
pub kernel_id: Option<String>,
pub tool_name: Option<String>,
pub call_id: Option<String>,
pub skill_id: Option<String>,
pub model: Option<String>,
}Expand description
Predicate used by EventQuery to select observability events.
Every configured field must match. Tick bounds are inclusive.
Fields§
§conversation_id: Option<String>Conversation identifier to match.
kind: Option<String>Wire event kind to match, such as "tool.completed".
min_tick: Option<u64>Inclusive lower tick bound.
max_tick: Option<u64>Inclusive upper tick bound.
kernel_id: Option<String>Compose kernel identifier to match.
tool_name: Option<String>Tool name or retry target to match.
call_id: Option<String>Tool call correlation identifier to match.
skill_id: Option<String>Compose skill identifier to match.
model: Option<String>Prompt model identifier to match.
Implementations§
Source§impl EventFilter
impl EventFilter
Sourcepub fn conversation_id(self, conversation_id: impl Into<String>) -> Self
pub fn conversation_id(self, conversation_id: impl Into<String>) -> Self
Match a conversation identifier.
Sourcepub fn kind(self, kind: impl Into<String>) -> Self
pub fn kind(self, kind: impl Into<String>) -> Self
Match a wire event kind, such as "prompt.started".
Sourcepub fn kernel_id(self, kernel_id: impl Into<String>) -> Self
pub fn kernel_id(self, kernel_id: impl Into<String>) -> Self
Match a compose kernel identifier.
Sourcepub fn tool_name(self, tool_name: impl Into<String>) -> Self
pub fn tool_name(self, tool_name: impl Into<String>) -> Self
Match a tool name or retry target.
Sourcepub fn call_id(self, call_id: impl Into<String>) -> Self
pub fn call_id(self, call_id: impl Into<String>) -> Self
Match a tool call correlation identifier.
Sourcepub fn matches(&self, event: &ObservabilityEvent) -> bool
pub fn matches(&self, event: &ObservabilityEvent) -> bool
Return true if event satisfies every configured predicate.
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EventFilter
impl Debug for EventFilter
Source§impl Default for EventFilter
impl Default for EventFilter
Source§fn default() -> EventFilter
fn default() -> EventFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventFilter
impl<'de> Deserialize<'de> for EventFilter
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
Source§impl PartialEq for EventFilter
impl PartialEq for EventFilter
Source§fn eq(&self, other: &EventFilter) -> bool
fn eq(&self, other: &EventFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventFilter
impl Serialize for EventFilter
impl Eq for EventFilter
impl StructuralPartialEq for EventFilter
Auto Trait Implementations§
impl Freeze for EventFilter
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnsafeUnpin for EventFilter
impl UnwindSafe for EventFilter
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