pub struct GuardrailConfig {Show 13 fields
pub enabled: bool,
pub limits: LimitsConfig,
pub fast_fail: FastFailConfig,
pub window: WindowConfig,
pub attention: AttentionIsolationConfig,
pub multitask: MultiTaskScannerConfig,
pub hallucination: HallucinationVerifierConfig,
pub streaming: StreamingVerifierConfig,
pub sanitizer: SanitizerConfig,
pub compactor: CompactorConfig,
pub temporal: TemporalConfig,
pub arithmetic: ArithmeticConfig,
pub bimodal: BimodalConfig,
}Expand description
ガードレール全体の統合設定構造体。
Fields§
§enabled: boolガードレール全体の有効化フラグ。
limits: LimitsConfig物理リソース制限設定。
fast_fail: FastFailConfig決定論的 Fast-Fail 禁止語設定。
window: WindowConfig境界縮約窓設定。
attention: AttentionIsolationConfig構造的分離アテンション設定。
multitask: MultiTaskScannerConfigマルチタスク動的マーカー並列スキャン設定。
hallucination: HallucinationVerifierConfig出力ハルシネーション検証設定。
streaming: StreamingVerifierConfig投機的ストリーミング検証設定。
sanitizer: SanitizerConfigサニタイズ設定。
compactor: CompactorConfigコンテキスト縮約設定。
temporal: TemporalConfig相対日時正規化設定。
arithmetic: ArithmeticConfig算術事前集計設定。
bimodal: BimodalConfig二峰性 (バイモーダル) 分布検出設定。
Trait Implementations§
Source§impl Clone for GuardrailConfig
impl Clone for GuardrailConfig
Source§fn clone(&self) -> GuardrailConfig
fn clone(&self) -> GuardrailConfig
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 GuardrailConfig
impl Debug for GuardrailConfig
Source§impl Default for GuardrailConfig
impl Default for GuardrailConfig
Source§impl PartialEq for GuardrailConfig
impl PartialEq for GuardrailConfig
impl StructuralPartialEq for GuardrailConfig
Auto Trait Implementations§
impl Freeze for GuardrailConfig
impl RefUnwindSafe for GuardrailConfig
impl Send for GuardrailConfig
impl Sync for GuardrailConfig
impl Unpin for GuardrailConfig
impl UnsafeUnpin for GuardrailConfig
impl UnwindSafe for GuardrailConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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