pub trait WorktreeAgent: Send + Sync {
// Required method
fn run_in<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 WorktreeAgentRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<AgentRunSummary, ForemanError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Runs an agent’s prompt against a working tree, editing files in place. The
real impl (daemon-side, B6) wraps car_external_agents::invoke; tests stub
it. Keeping this a trait is what keeps car-multi independent of
car-external-agents.
Required Methods§
fn run_in<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 WorktreeAgentRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<AgentRunSummary, ForemanError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".