#[non_exhaustive]pub struct AgentLoopConfig { /* private fields */ }Expand description
Configuration for the agent loop.
Implementations§
Source§impl AgentLoopConfig
impl AgentLoopConfig
Sourcepub fn active_goal(&self) -> Option<&str>
pub fn active_goal(&self) -> Option<&str>
The active session goal to surface to the main agent, or None when
Gold is disabled or no goal is set. Falls back to the legacy
evaluation_prompt for back-compat via GoldConfig::effective_goal.
Sourcepub fn goal_loop_active(&self) -> bool
pub fn goal_loop_active(&self) -> bool
Whether the Codex-style autonomous goal loop is active for this run.
This requires Gold to be enabled, a goal to be set, AND auto-continue to
be on. Only then is the update_goal self-report tool surfaced to the
model and the terminal double-check allowed to veto a premature stop.
When Gold is enabled without auto-continue, the evaluator stays purely
observational (legacy behavior).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentLoopConfig
impl !UnwindSafe for AgentLoopConfig
impl Freeze for AgentLoopConfig
impl Send for AgentLoopConfig
impl Sync for AgentLoopConfig
impl Unpin for AgentLoopConfig
impl UnsafeUnpin for AgentLoopConfig
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