pub struct RunResult {
pub session_id: String,
pub reply: String,
pub hops: Vec<Hop>,
pub children: Vec<ChildRun>,
}Fields§
§session_id: String§reply: String§hops: Vec<Hop>The route hops made to get this answer, oldest first. Empty when the first route
answered, and always empty without a fallback chain: nothing hopped, so nothing is said.
children: Vec<ChildRun>The subagents this run started through delegate, in the order they finished, with
what each cost. Kept apart from the run’s own usage on purpose: a child’s tokens are not
the parent’s. Empty when nothing was delegated.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RunResult
impl Freeze for RunResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Hop>: Freeze,
PhantomData<ChildRun>: Freeze,
impl Move for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResultwhere
RawVecInner: Send,
impl Sync for RunResultwhere
RawVecInner: Sync,
impl Unpin for RunResult
impl UnsafeUnpin for RunResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Hop>: UnsafeUnpin,
PhantomData<ChildRun>: UnsafeUnpin,
impl UnwindSafe for RunResultwhere
RawVecInner: UnwindSafe,
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