pub struct LlmSchemaConfig {
pub enabled: bool,
pub provider: String,
pub model: String,
pub max_vendor_enrichments: usize,
pub enrich_customers: bool,
pub enrich_materials: bool,
pub enrich_findings: bool,
pub max_customer_enrichments: usize,
pub max_material_enrichments: usize,
pub max_finding_enrichments: usize,
}Expand description
LLM enrichment configuration.
Controls AI-augmented metadata enrichment using LLM providers. When enabled, vendor names, transaction descriptions, and anomaly explanations are enriched using the configured provider (mock by default).
Fields§
§enabled: boolWhether LLM enrichment is enabled.
provider: StringProvider type: “mock”, “openai”, “anthropic”, “custom”.
model: StringModel name/ID for the provider.
max_vendor_enrichments: usizeMaximum number of vendor names to enrich per run.
enrich_customers: boolv4.1.1+: also enrich customer names at generate time.
Default false preserves v4.1.0 behaviour.
enrich_materials: boolv4.1.1+: also enrich material descriptions at generate time.
Default false.
enrich_findings: boolv4.1.1+: also enrich audit finding titles at generate time
(the finding narratives remain on their existing template path
because they’re richer and locale-specific). Default false.
max_customer_enrichments: usizev4.1.1+: upper bound on customer enrichments per run. Matches
max_vendor_enrichments semantics.
max_material_enrichments: usizev4.1.1+: upper bound on material enrichments per run.
max_finding_enrichments: usizev4.1.1+: upper bound on finding enrichments per run.
Trait Implementations§
Source§impl Clone for LlmSchemaConfig
impl Clone for LlmSchemaConfig
Source§fn clone(&self) -> LlmSchemaConfig
fn clone(&self) -> LlmSchemaConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LlmSchemaConfig
impl Debug for LlmSchemaConfig
Source§impl Default for LlmSchemaConfig
impl Default for LlmSchemaConfig
Source§impl<'de> Deserialize<'de> for LlmSchemaConfig
impl<'de> Deserialize<'de> for LlmSchemaConfig
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>,
Auto Trait Implementations§
impl Freeze for LlmSchemaConfig
impl RefUnwindSafe for LlmSchemaConfig
impl Send for LlmSchemaConfig
impl Sync for LlmSchemaConfig
impl Unpin for LlmSchemaConfig
impl UnsafeUnpin for LlmSchemaConfig
impl UnwindSafe for LlmSchemaConfig
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
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.