pub enum LearningEvent {
StrategyAdvice {Show 14 fields
timestamp_ms: u64,
tick: u64,
advisor: String,
current_strategy: String,
recommended: String,
should_change: bool,
confidence: f64,
reason: String,
frontier_count: usize,
total_visits: u32,
failure_rate: f64,
latency_ms: u64,
success: bool,
error: Option<String>,
},
DependencyGraphInference {
timestamp_ms: u64,
prompt: String,
response: String,
available_actions: Vec<String>,
discover_order: Vec<String>,
not_discover_order: Vec<String>,
model: String,
endpoint: String,
lora: Option<String>,
latency_ms: u64,
success: bool,
error: Option<String>,
},
LearnStatsSnapshot {
timestamp_ms: u64,
scenario: String,
session_id: String,
stats_json: String,
outcome: LearnStatsOutcome,
total_ticks: u64,
total_actions: u64,
},
}Expand description
学習イベント
Variants§
StrategyAdvice
LLM 戦略アドバイスイベント
Fields
DependencyGraphInference
DependencyGraph 推論イベント
Fields
LearnStatsSnapshot
LearnStats スナップショット(セッション終了時に発行)
Implementations§
Source§impl LearningEvent
impl LearningEvent
Sourcepub fn strategy_advice(
tick: u64,
advisor: impl Into<String>,
) -> StrategyAdviceBuilder
pub fn strategy_advice( tick: u64, advisor: impl Into<String>, ) -> StrategyAdviceBuilder
StrategyAdvice イベントを作成するビルダー
Sourcepub fn dependency_graph_inference(
model: impl Into<String>,
) -> DependencyGraphInferenceBuilder
pub fn dependency_graph_inference( model: impl Into<String>, ) -> DependencyGraphInferenceBuilder
DependencyGraphInference イベントを作成するビルダー
Sourcepub fn learn_stats_snapshot(
scenario: impl Into<String>,
) -> LearnStatsSnapshotBuilder
pub fn learn_stats_snapshot( scenario: impl Into<String>, ) -> LearnStatsSnapshotBuilder
LearnStatsSnapshot イベントを作成するビルダー
Trait Implementations§
Source§impl Clone for LearningEvent
impl Clone for LearningEvent
Source§fn clone(&self) -> LearningEvent
fn clone(&self) -> LearningEvent
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 LearningEvent
impl Debug for LearningEvent
Source§impl<'de> Deserialize<'de> for LearningEvent
impl<'de> Deserialize<'de> for LearningEvent
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 From<&LearningEvent> for DependencyGraphRecord
impl From<&LearningEvent> for DependencyGraphRecord
Source§fn from(event: &LearningEvent) -> Self
fn from(event: &LearningEvent) -> Self
Converts to this type from the input type.
Source§impl From<&LearningEvent> for LearnStatsRecord
impl From<&LearningEvent> for LearnStatsRecord
Source§fn from(event: &LearningEvent) -> Self
fn from(event: &LearningEvent) -> Self
Converts to this type from the input type.
Source§impl From<&LearningEvent> for Record
impl From<&LearningEvent> for Record
Source§fn from(event: &LearningEvent) -> Self
fn from(event: &LearningEvent) -> Self
Converts to this type from the input type.
Source§impl From<&LearningEvent> for StrategyAdviceRecord
impl From<&LearningEvent> for StrategyAdviceRecord
Source§fn from(event: &LearningEvent) -> Self
fn from(event: &LearningEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LearningEvent
impl RefUnwindSafe for LearningEvent
impl Send for LearningEvent
impl Sync for LearningEvent
impl Unpin for LearningEvent
impl UnwindSafe for LearningEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more