pub struct StrategyAdviceRecord {Show 14 fields
pub timestamp_ms: u64,
pub tick: u64,
pub advisor: String,
pub current_strategy: String,
pub recommended: String,
pub should_change: bool,
pub confidence: f64,
pub reason: String,
pub frontier_count: usize,
pub total_visits: u32,
pub failure_rate: f64,
pub latency_ms: u64,
pub success: bool,
pub error: Option<String>,
}Expand description
LLM 戦略アドバイス記録
Fields§
§timestamp_ms: u64タイムスタンプ(Unix epoch ms)
tick: u64Tick 番号
advisor: Stringアドバイザー名
current_strategy: String現在の戦略
recommended: String推奨戦略
should_change: bool変更すべきか
confidence: f64信頼度 (0.0-1.0)
reason: String理由
frontier_count: usizeフロンティア数
total_visits: u32総訪問数
failure_rate: f64失敗率 (0.0-1.0)
latency_ms: u64レイテンシ(ms)
success: bool成功したか
error: Option<String>エラー(失敗時のみ)
Implementations§
Source§impl StrategyAdviceRecord
impl StrategyAdviceRecord
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
成功かどうか
Sourcepub fn recommends_change(&self) -> bool
pub fn recommends_change(&self) -> bool
戦略変更が推奨されたか
Trait Implementations§
Source§impl Clone for StrategyAdviceRecord
impl Clone for StrategyAdviceRecord
Source§fn clone(&self) -> StrategyAdviceRecord
fn clone(&self) -> StrategyAdviceRecord
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 StrategyAdviceRecord
impl Debug for StrategyAdviceRecord
Source§impl<'de> Deserialize<'de> for StrategyAdviceRecord
impl<'de> Deserialize<'de> for StrategyAdviceRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StrategyAdviceRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StrategyAdviceRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&LearningEvent> for StrategyAdviceRecord
impl From<&LearningEvent> for StrategyAdviceRecord
Source§fn from(event: &LearningEvent) -> StrategyAdviceRecord
fn from(event: &LearningEvent) -> StrategyAdviceRecord
Converts to this type from the input type.
Source§impl From<StrategyAdviceRecord> for Record
impl From<StrategyAdviceRecord> for Record
Source§fn from(record: StrategyAdviceRecord) -> Record
fn from(record: StrategyAdviceRecord) -> Record
Converts to this type from the input type.
Source§impl FromRecord for StrategyAdviceRecord
impl FromRecord for StrategyAdviceRecord
fn from_record(record: &Record) -> Option<&StrategyAdviceRecord>
Source§impl Serialize for StrategyAdviceRecord
impl Serialize for StrategyAdviceRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StrategyAdviceRecord
impl RefUnwindSafe for StrategyAdviceRecord
impl Send for StrategyAdviceRecord
impl Sync for StrategyAdviceRecord
impl Unpin for StrategyAdviceRecord
impl UnwindSafe for StrategyAdviceRecord
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