pub enum EventPayload {
Show 18 variants
GenerationComplete {
model_id: String,
session_id: Option<String>,
metrics: GenerationMetrics,
},
GenerationFailed {
model_id: String,
session_id: Option<String>,
error: String,
error_code: Option<String>,
},
ToolExecuted {
model_id: String,
tool_name: String,
success: bool,
duration_ms: u64,
},
ModelLoaded {
model_ref: String,
endpoint: String,
},
ModelFailed {
model_ref: String,
error: String,
},
ModelUnloaded {
model_ref: String,
},
ThresholdBreach {
model_id: String,
metric: String,
threshold: f64,
actual: f64,
z_score: f64,
},
WindowRollover {
model_id: String,
stats: WindowedStats,
},
BaselineReady {
model_id: String,
sample_count: u64,
stats: WindowedStats,
},
TrainingStarted {
model_id: String,
adapter_id: String,
config: TrainingConfig,
},
TrainingCompleted {
model_id: String,
adapter_id: String,
steps: u64,
final_loss: f32,
},
CheckpointSaved {
model_id: String,
checkpoint_id: String,
commit_hash: String,
},
RepositoryCloned {
repo_id: String,
name: String,
url: String,
},
BranchCreated {
repo_id: String,
branch_name: String,
base_commit: String,
},
WorktreeCreated {
repo_id: String,
branch_name: String,
path: String,
},
CommitCreated {
repo_id: String,
hash: String,
message: String,
},
AdapterSaved {
repo_id: String,
adapter_name: String,
index: u32,
},
AdapterLoaded {
repo_id: String,
adapter_name: String,
index: u32,
},
}Expand description
Event payload variants
Variants§
GenerationComplete
Generation completed successfully
Fields
§
metrics: GenerationMetricsQuality metrics from generation
GenerationFailed
Generation failed
Fields
ToolExecuted
Tool was executed during generation
Fields
ModelLoaded
Model loaded and ready for inference
Fields
ModelFailed
Model load failed
ModelUnloaded
Model unloaded
ThresholdBreach
Quality threshold breached
Fields
WindowRollover
Time window rolled over with statistics
BaselineReady
Baseline established for model
Fields
§
stats: WindowedStatsBaseline statistics
TrainingStarted
Training job started
Fields
§
config: TrainingConfigTraining configuration
TrainingCompleted
Training job completed
Fields
CheckpointSaved
Checkpoint saved to repository
Fields
RepositoryCloned
Repository cloned
BranchCreated
Branch created
Fields
WorktreeCreated
Worktree created
CommitCreated
Commit created
AdapterSaved
Adapter saved to repository
AdapterLoaded
Adapter loaded from repository
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
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 EventPayload
impl Debug for EventPayload
Source§impl<'de> Deserialize<'de> for EventPayload
impl<'de> Deserialize<'de> for EventPayload
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 EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> JaggedSlice<T> for T
impl<T> JaggedSlice<T> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more