pub struct InProcessRunnerConfig {
pub max_turns: u32,
pub timeout_secs: u64,
}Expand description
Static tuning for an in-process runner’s default loop budget.
Why: The turn cap and timeout are the dials a deployment most often varies;
grouping them keeps the runner constructor stable. Per-call RunContext
overrides still take precedence over these defaults.
What: max_turns and timeout_secs seed each invocation’s AgentLoopConfig
unless RunContext.max_turns_override overrides the turn cap.
Test: runner::tests::run_context_overrides_max_turns.
Fields§
§max_turns: u32Default maximum LLM round-trips per sub-agent run.
timeout_secs: u64Default wall-clock budget per sub-agent run, in seconds.
Trait Implementations§
Source§impl Clone for InProcessRunnerConfig
impl Clone for InProcessRunnerConfig
Source§fn clone(&self) -> InProcessRunnerConfig
fn clone(&self) -> InProcessRunnerConfig
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 InProcessRunnerConfig
impl Debug for InProcessRunnerConfig
Source§impl Default for InProcessRunnerConfig
impl Default for InProcessRunnerConfig
Source§fn default() -> Self
fn default() -> Self
Generous-but-bounded defaults for a delegated sub-agent’s own loop.
Why: (bake-off L1 diagnosis) The former default of 8 turns was tuned for
a toy/single-file task; a realistic multi-file package build (reading
several existing files, writing/editing several more, running the
project’s own tests before finishing per the strengthened finish-gate
convention) routinely needs more than 8 LLM round-trips. Exhausting the
cap mid-task forces a TurnCapExceeded abort, which historically
triggered a destructive PM re-delegation that discarded correct partial
work and rebuilt a simpler (sometimes incomplete) solution from scratch
— see tools::delegate::redelegation_hint, the companion fix that makes
re-delegation reuse-aware regardless of this budget. 40 turns is
deliberately generous: the tradeoff is a higher worst-case cost/latency
ceiling per delegation in exchange for comfortably fitting a real
package-sized task without truncation. Still fully overridable per call
via RunContext.max_turns_override (run_pipeline) or per-runner via
with_config/InProcessRunnerConfig::default().max_turns = N.
What: 40 turns, 120s timeout.
Test: runner::tests::config_default_is_sane,
runner::tests::default_max_turns_is_generous.
Auto Trait Implementations§
impl Freeze for InProcessRunnerConfig
impl RefUnwindSafe for InProcessRunnerConfig
impl Send for InProcessRunnerConfig
impl Sync for InProcessRunnerConfig
impl Unpin for InProcessRunnerConfig
impl UnsafeUnpin for InProcessRunnerConfig
impl UnwindSafe for InProcessRunnerConfig
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,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more