pub struct RealAgent;Expand description
The production AgentClient that spawns the real agent binaries.
Trait Implementations§
Source§impl AgentClient for RealAgent
impl AgentClient for RealAgent
Source§fn detect(&self, kind: AgentKind) -> Result<Option<DetectedAgent>>
fn detect(&self, kind: AgentKind) -> Result<Option<DetectedAgent>>
Probes one agent on
PATH. Returns Ok(None) if it is not installed,
or Err if an installed binary fails to run.Source§fn run(
&self,
kind: AgentKind,
prompt: &str,
dir: &Path,
opts: &AgentOptions,
) -> Result<AgentRun>
fn run( &self, kind: AgentKind, prompt: &str, dir: &Path, opts: &AgentOptions, ) -> Result<AgentRun>
Runs
kind non-interactively on prompt in dir, in the agent’s JSON
output mode, with the selected model and effort (opts), and returns the
normalized result.Source§fn detect_all(&self) -> Vec<DetectedAgent>
fn detect_all(&self) -> Vec<DetectedAgent>
Probes every known agent on
PATH, returning those found. Agents that
are not installed are omitted (that is not an error).impl Copy for RealAgent
Auto Trait Implementations§
impl Freeze for RealAgent
impl RefUnwindSafe for RealAgent
impl Send for RealAgent
impl Sync for RealAgent
impl Unpin for RealAgent
impl UnsafeUnpin for RealAgent
impl UnwindSafe for RealAgent
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> 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>
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