pub enum SelectResult {
UseLearnedGraph {
graph: Box<DependencyGraph>,
lora: Option<LoraConfig>,
},
UseLlm {
lora: Option<LoraConfig>,
hint: Option<LearnedActionOrder>,
vote_count: u8,
match_rate: f64,
},
}Expand description
LearnedDependencyProvider の選択結果
Variants§
UseLearnedGraph
学習済みグラフをそのまま使用(LLM 不要)
UseLlm
LLM を使用(ヒント/LoRA 付き)
Fields
§
lora: Option<LoraConfig>使用する LoRA(None = Base Model)
§
hint: Option<LearnedActionOrder>ヒントとして使用する学習済み順序(部分一致時)
Implementations§
Source§impl SelectResult
impl SelectResult
Sourcepub fn vote_count(&self) -> u8
pub fn vote_count(&self) -> u8
投票回数を取得(UseLearnedGraph の場合は 0)
Sourcepub fn lora(&self) -> Option<&LoraConfig>
pub fn lora(&self) -> Option<&LoraConfig>
LoRA 設定を取得
Trait Implementations§
Source§impl Clone for SelectResult
impl Clone for SelectResult
Source§fn clone(&self) -> SelectResult
fn clone(&self) -> SelectResult
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 moreAuto Trait Implementations§
impl Freeze for SelectResult
impl RefUnwindSafe for SelectResult
impl Send for SelectResult
impl Sync for SelectResult
impl Unpin for SelectResult
impl UnwindSafe for SelectResult
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