pub struct WorktreeAgentRequest<'a> {
pub subtask: &'a Subtask,
pub cwd: &'a Path,
pub allowed_tools: Option<Vec<String>>,
pub mcp_endpoint: Option<String>,
}Expand description
Everything an agent needs to run one subtask in a worktree. Carrying the
governance surface (allowed_tools, mcp_endpoint) now means the
daemon-side impl that wraps car_external_agents::invoke does not force a
breaking trait change at B6.
Fields§
§subtask: &'a Subtask§cwd: &'a Path§allowed_tools: Option<Vec<String>>§mcp_endpoint: Option<String>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WorktreeAgentRequest<'a>
impl<'a> RefUnwindSafe for WorktreeAgentRequest<'a>
impl<'a> Send for WorktreeAgentRequest<'a>
impl<'a> Sync for WorktreeAgentRequest<'a>
impl<'a> Unpin for WorktreeAgentRequest<'a>
impl<'a> UnsafeUnpin for WorktreeAgentRequest<'a>
impl<'a> UnwindSafe for WorktreeAgentRequest<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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