pub struct MultiTaskScannerConfig {
pub enabled: bool,
pub threshold_injection: f64,
pub threshold_toxicity: f64,
pub threshold_pii: f64,
pub threshold_energy: f64,
pub temperature: f64,
pub action: GuardrailAction,
}Expand description
マルチタスクスキャナー設定。
Fields§
§enabled: boolマルチタスクスキャンを有効にするか。
threshold_injection: f64インジェクション判定閾値 (デフォルト: 0.5)。
threshold_toxicity: f64有害性判定閾値 (デフォルト: 0.5)。
threshold_pii: f64PII 漏洩判定閾値 (デフォルト: 0.5)。
threshold_energy: f64ヘルムホルツ自由エネルギー閾値 (この値を超えると OOD と判定、デフォルト: -2.5)。
temperature: f64自由エネルギー計算時の温度パラメータ (デフォルト: 1.0)。
action: GuardrailAction違反時のアクション。
Trait Implementations§
Source§impl Clone for MultiTaskScannerConfig
impl Clone for MultiTaskScannerConfig
Source§fn clone(&self) -> MultiTaskScannerConfig
fn clone(&self) -> MultiTaskScannerConfig
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 MultiTaskScannerConfig
impl Debug for MultiTaskScannerConfig
Source§impl Default for MultiTaskScannerConfig
impl Default for MultiTaskScannerConfig
Source§impl PartialEq for MultiTaskScannerConfig
impl PartialEq for MultiTaskScannerConfig
impl StructuralPartialEq for MultiTaskScannerConfig
Auto Trait Implementations§
impl Freeze for MultiTaskScannerConfig
impl RefUnwindSafe for MultiTaskScannerConfig
impl Send for MultiTaskScannerConfig
impl Sync for MultiTaskScannerConfig
impl Unpin for MultiTaskScannerConfig
impl UnsafeUnpin for MultiTaskScannerConfig
impl UnwindSafe for MultiTaskScannerConfig
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