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<()>
pub fn default_debate(&self) -> bool
pub fn validate_alloy(&self, alloy: bool) -> Result<()>
pub fn default_alloy(&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 Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
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> 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.