pub struct Config {
pub defaults: Option<DefaultsConfig>,
pub aggregator: AggregatorConfig,
pub reviewer: Vec<ReviewerConfig>,
pub presets: Option<BTreeMap<String, PresetConfig>>,
}Fields§
§defaults: Option<DefaultsConfig>§aggregator: AggregatorConfig§reviewer: Vec<ReviewerConfig>§presets: Option<BTreeMap<String, PresetConfig>>Project-defined review presets: [presets.<name>] prompt = "...". Data only — the
built-in registry and all name resolution live in the binary (src/presets.rs).
Implementations§
Source§impl Config
impl Config
pub fn validate(&self) -> Result<()>
Sourcepub fn validate_structure(&self) -> Result<()>
pub fn validate_structure(&self) -> Result<()>
Validate config shape without requiring every configured route to be usable in the current environment. Fallback-aware callers use this before client construction, where an unusable route can be skipped in favor of the next configured route.
pub fn default_debate(&self) -> bool
pub fn validate_alloy(&self, alloy: bool) -> Result<()>
Sourcepub fn validate_credentials(&self) -> Result<()>
pub fn validate_credentials(&self) -> Result<()>
Require credentials for every configured route. Non-fallback execution keeps this eager check so a pure configuration error fails before any provider request is attempted.
pub fn default_alloy(&self) -> bool
pub fn validate_fallback(&self, fallback: bool) -> Result<()>
pub fn default_fallback(&self) -> bool
pub fn max_turns(&self, override_max_turns: Option<usize>) -> Result<usize>
pub fn default_max_turns(&self) -> Result<usize>
pub fn default_compact_threshold(&self) -> Option<u64>
pub fn log_trajectories(&self) -> bool
pub fn aggregator_max_tokens(&self) -> u64
pub fn reviewer_compact_threshold( &self, reviewer: &ReviewerConfig, ) -> Option<u64>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Configwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ReviewerConfig>: Freeze,
*const LeafNode<String, PresetConfig> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PresetConfig)>>: Freeze,
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Configwhere
RawVecInner: Send,
NodeRef<Owned, String, PresetConfig, LeafOrInternal>: Send,
BoxRaw<(String, PresetConfig)>: Send,
impl Sync for Configwhere
RawVecInner: Sync,
NodeRef<Owned, String, PresetConfig, LeafOrInternal>: Sync,
BoxRaw<(String, PresetConfig)>: Sync,
impl Unpin for Config
impl UnsafeUnpin for Configwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ReviewerConfig>: UnsafeUnpin,
*const LeafNode<String, PresetConfig> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PresetConfig)>>: UnsafeUnpin,
impl UnwindSafe for Config
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<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<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.