#[non_exhaustive]pub struct RunResult {
pub answer: String,
pub output: String,
pub turn: Option<TurnSummary>,
pub usage: Usage,
pub verification: Option<Verification>,
}Expand description
What one Agent::run produced.
#[non_exhaustive] (since 1.2.0): later releases may add fields, so code
outside this crate reads the fields it needs and cannot build one or
destructure it without ...
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.answer: StringThe turn’s answer: the model’s last message when it made no tool call, otherwise empty (a turn stopped by a limit or a cancel).
output: StringEverything the turn streamed, notices and [tool] ... lines included, as
agent86 run --output full prints it.
turn: Option<TurnSummary>The turn’s tokens, cost, steps, and tool calls.
usage: UsageThe conversation’s usage so far.
verification: Option<Verification>What the verification gate did this turn, when one is set
(AgentBuilder::verify).
Trait Implementations§
impl StructuralPartialEq for RunResult
Auto Trait Implementations§
impl Forget for RunResult
impl Freeze for RunResult
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 RunResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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