pub struct Config {
pub agents: Vec<AgentSpec>,
pub loop_cfg: LoopCfg,
pub style: Style,
pub first_implementor: String,
pub source: Option<PathBuf>,
}Fields§
§agents: Vec<AgentSpec>In declaration order, which is what first_implementor defaults to.
loop_cfg: LoopCfg§style: Style§first_implementor: StringResolved: never empty, always one of the configured agents.
source: Option<PathBuf>Where this config was read from, for error messages.
Implementations§
Source§impl Config
impl Config
pub fn agent_names(&self) -> Vec<String>
pub fn has_agent(&self, name: &str) -> bool
pub fn spec(&self, name: &str) -> Result<&AgentSpec>
Sourcepub fn other(&self, name: &str) -> String
pub fn other(&self, name: &str) -> String
The other agent. With exactly two configured, custody alternates by definition.
Sourcepub fn effort_for_round(&self, spec: &AgentSpec, round: u32) -> Option<String>
pub fn effort_for_round(&self, spec: &AgentSpec, round: u32) -> Option<String>
Round 1 gets the deep pass; later rounds only see a small delta, and a full ultra review of a three line delta is money on fire.
pub fn base_branch(&self) -> &str
Trait Implementations§
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