pub struct SubAgentTask {
pub file_path: String,
pub file_content: String,
pub task_instruction: String,
pub contract: String,
pub sibling_skeletons: String,
}Expand description
A single sub-agent task: one file to modify.
Fields§
§file_path: String§file_content: String§task_instruction: String§contract: String§sibling_skeletons: StringImplementations§
Source§impl SubAgentTask
impl SubAgentTask
Sourcepub async fn execute(
&self,
provider: Arc<dyn LlmProvider>,
tools: Arc<ToolRegistry>,
config: &Config,
working_dir: &Path,
max_turns: usize,
) -> SubAgentResult
pub async fn execute( &self, provider: Arc<dyn LlmProvider>, tools: Arc<ToolRegistry>, config: &Config, working_dir: &Path, max_turns: usize, ) -> SubAgentResult
Execute this sub-agent task with its own Conversation + TurnRunner.
Runs up to max_turns LLM round-trips. Auto-approves all tools.
Auto Trait Implementations§
impl Freeze for SubAgentTask
impl RefUnwindSafe for SubAgentTask
impl Send for SubAgentTask
impl Sync for SubAgentTask
impl Unpin for SubAgentTask
impl UnsafeUnpin for SubAgentTask
impl UnwindSafe for SubAgentTask
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
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>
Converts
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>
Converts
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