pub struct AiConfig {
pub enabled: bool,
pub provider: AiTransport,
pub vendor: AiVendor,
pub model: Option<String>,
pub concurrency: usize,
pub api_key: Option<String>,
pub classifier: ClassifierConfig,
pub allow_external_rules: bool,
pub max_calls: usize,
}Fields§
§enabled: bool§provider: AiTransportTransport: api (HTTP) or cli (local claude).
vendor: AiVendorVendor used when provider = "api".
model: Option<String>§concurrency: usizeMaximum number of concurrent LLM calls.
api_key: Option<String>API key. When omitted, read from the vendor’s env var
(ANTHROPIC_API_KEY / OPENAI_API_KEY).
classifier: ClassifierConfigOptional System One classifier (Jev), on a separate axis from the LLM.
allow_external_rules: boolLet ai_check rules from external sources (rules.custom_dirs,
[[rules.sources]]) send code to the provider. Off by default: such
rules are skipped, since their prompt is not reviewed by the user.
max_calls: usizeMaximum number of AI candidates verified per scan (cache hits count). Candidates beyond it are reported without AI verification.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AiConfig
impl<'de> Deserialize<'de> for AiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AiConfig
Auto Trait Implementations§
impl Freeze for AiConfig
impl RefUnwindSafe for AiConfig
impl Send for AiConfig
impl Sync for AiConfig
impl Unpin for AiConfig
impl UnsafeUnpin for AiConfig
impl UnwindSafe for AiConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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