pub struct SubagentJobRunner { /* private fields */ }Expand description
The production runner: each Job becomes an isolated sub-agent.
Implementations§
Source§impl SubagentJobRunner
impl SubagentJobRunner
Sourcepub fn new(model: Arc<dyn Model>, root: impl Into<PathBuf>) -> Self
pub fn new(model: Arc<dyn Model>, root: impl Into<PathBuf>) -> Self
Run Jobs against model, each in a fresh default_world(root).
pub fn with_tool(self, t: Arc<dyn Tool>) -> Self
pub fn with_max_iters(self, n: u32) -> Self
Sourcepub fn with_world_factory(self, f: WorldFactory) -> Self
pub fn with_world_factory(self, f: WorldFactory) -> Self
Override how each Job’s World is built (e.g. a worktree sandbox).
Trait Implementations§
Source§impl JobRunner for SubagentJobRunner
impl JobRunner for SubagentJobRunner
Auto Trait Implementations§
impl !RefUnwindSafe for SubagentJobRunner
impl !UnwindSafe for SubagentJobRunner
impl Forget for SubagentJobRunner
impl Freeze for SubagentJobRunner
impl Send for SubagentJobRunner
impl Sync for SubagentJobRunner
impl Unpin for SubagentJobRunner
impl UnsafeUnpin for SubagentJobRunner
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