pub struct SubagentRun { /* private fields */ }Expand description
Implementations§
Source§impl SubagentRun
impl SubagentRun
Sourcepub const fn id(&self) -> u64
pub const fn id(&self) -> u64
The id SubagentRuns::cancel takes.
Sourcepub fn identity(&self) -> AgentIdentity
pub fn identity(&self) -> AgentIdentity
The identity to build the child agent with, so its events and tool calls name it and the call that started it.
Sourcepub fn cancel_signal(&self) -> CancelSignal
pub fn cancel_signal(&self) -> CancelSignal
The signal that fires when the child is cancelled.
Sourcepub fn events(&self) -> ChildEvents
pub fn events(&self) -> ChildEvents
Where the child reports its events.
Sourcepub async fn run<C: ChildAgent>(self, child: &mut C, prompt: &str) -> RunOutcome
pub async fn run<C: ChildAgent>(self, child: &mut C, prompt: &str) -> RunOutcome
Runs child on prompt to its end and closes the registration with
the outcome.
Sourcepub fn finish(self, outcome: RunOutcome)
pub fn finish(self, outcome: RunOutcome)
Closes the registration with outcome, for a child that ran outside
run.
Trait Implementations§
Source§impl Debug for SubagentRun
impl Debug for SubagentRun
Source§impl Drop for SubagentRun
impl Drop for SubagentRun
Auto Trait Implementations§
impl Forget for SubagentRun
impl Freeze for SubagentRun
impl Move for SubagentRun
impl RefUnwindSafe for SubagentRun
impl Send for SubagentRun
impl Sync for SubagentRun
impl Unpin for SubagentRun
impl UnsafeUnpin for SubagentRun
impl UnwindSafe for SubagentRun
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