pub struct DaemonConfig {
pub scenario: String,
pub data_dir: PathBuf,
pub check_interval: Duration,
pub processor_mode: ProcessorMode,
pub max_sessions: usize,
pub auto_apply: bool,
pub lora_config: Option<LoraTrainerConfig>,
}Expand description
Daemon の設定
Fields§
§scenario: Stringシナリオ名
data_dir: PathBufデータディレクトリ
check_interval: DurationTrigger チェック間隔
processor_mode: ProcessorMode処理モード
max_sessions: usizeOffline 分析に使用するセッション数
auto_apply: bool自動適用
lora_config: Option<LoraTrainerConfig>LoRA 設定(None の場合は LoRA 学習しない)
Implementations§
Source§impl DaemonConfig
impl DaemonConfig
Sourcepub fn check_interval(self, interval: Duration) -> Self
pub fn check_interval(self, interval: Duration) -> Self
Trigger チェック間隔を設定
Sourcepub fn processor_mode(self, mode: ProcessorMode) -> Self
pub fn processor_mode(self, mode: ProcessorMode) -> Self
処理モードを設定
Sourcepub fn max_sessions(self, n: usize) -> Self
pub fn max_sessions(self, n: usize) -> Self
最大セッション数を設定
Sourcepub fn auto_apply(self, enabled: bool) -> Self
pub fn auto_apply(self, enabled: bool) -> Self
自動適用を設定
Sourcepub fn with_lora(self, config: LoraTrainerConfig) -> Self
pub fn with_lora(self, config: LoraTrainerConfig) -> Self
LoRA 設定を追加
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
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 DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin for DaemonConfig
impl UnwindSafe for DaemonConfig
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