pub enum EventSource {
User,
ChildAgent {
model: String,
},
Tool {
name: String,
},
Runtime,
ExternalOutcome,
ManualCorrection,
}Expand description
Where an event originated.
Carries internal data on a per-variant basis. Serialized as an internally
tagged enum ({"type": "...", ...}) so adding fields to a variant is a
non-breaking change at the JSON level.
Variants§
User
A human user.
ChildAgent
An ephemeral child agent invocation.
Tool
A tool invocation result.
Runtime
The Cortex runtime itself (system events, lifecycle markers).
ExternalOutcome
An externally-observed outcome (CI result, deployment, user rating).
ManualCorrection
An explicit operator correction.
Trait Implementations§
Source§impl Clone for EventSource
impl Clone for EventSource
Source§fn clone(&self) -> EventSource
fn clone(&self) -> EventSource
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 EventSource
impl Debug for EventSource
Source§impl<'de> Deserialize<'de> for EventSource
impl<'de> Deserialize<'de> for EventSource
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 JsonSchema for EventSource
impl JsonSchema for EventSource
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for EventSource
impl PartialEq for EventSource
Source§fn eq(&self, other: &EventSource) -> bool
fn eq(&self, other: &EventSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventSource
impl Serialize for EventSource
impl Eq for EventSource
impl StructuralPartialEq for EventSource
Auto Trait Implementations§
impl Freeze for EventSource
impl RefUnwindSafe for EventSource
impl Send for EventSource
impl Sync for EventSource
impl Unpin for EventSource
impl UnsafeUnpin for EventSource
impl UnwindSafe for EventSource
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