pub struct RuntimeOutcome {
pub final_text: Option<String>,
pub finish_reason: FinishReason,
pub total_usage: TokenUsage,
pub steps: usize,
pub llm_latency_ms: u64,
pub checkpoint_id: Option<CheckpointId>,
}Expand description
The result of a single AgentRuntime::run() turn.
Contains the model’s final text (if any), how the turn ended, token usage for this turn, the number of LLM steps taken, and the LLM latency in milliseconds.
Fields§
§final_text: Option<String>The final assistant text, if the model produced one.
finish_reason: FinishReasonWhy the turn stopped.
total_usage: TokenUsageToken usage for this turn only.
steps: usizeNumber of LLM calls made during this turn.
llm_latency_ms: u64Measured LLM latency for this turn (milliseconds).
checkpoint_id: Option<CheckpointId>Checkpoint id captured at the end of this turn (if checkpointing is enabled and the runtime is bound to a session).
Trait Implementations§
Source§impl Clone for RuntimeOutcome
impl Clone for RuntimeOutcome
Source§fn clone(&self) -> RuntimeOutcome
fn clone(&self) -> RuntimeOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeOutcome
impl Debug for RuntimeOutcome
Source§impl From<TurnOutcome> for RuntimeOutcome
impl From<TurnOutcome> for RuntimeOutcome
Source§fn from(t: TurnOutcome) -> Self
fn from(t: TurnOutcome) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeOutcome
impl RefUnwindSafe for RuntimeOutcome
impl Send for RuntimeOutcome
impl Sync for RuntimeOutcome
impl Unpin for RuntimeOutcome
impl UnsafeUnpin for RuntimeOutcome
impl UnwindSafe for RuntimeOutcome
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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