pub struct Finished {Show 13 fields
pub agent_name: Option<String>,
pub message: String,
pub stop_reason: Option<String>,
pub error: Option<String>,
pub timed_out: bool,
pub sign_in: Option<Vec<SignIn>>,
pub mode: Option<Statement>,
pub notices: Vec<String>,
pub usage: Option<Value>,
pub stderr: Vec<String>,
pub plan: Vec<Value>,
pub left: Option<String>,
pub prompted: bool,
}Expand description
How the attempt ended.
Fields§
§agent_name: Option<String>The agent’s name, as it gave it.
message: StringThe agent’s final message (its words after its last call).
stop_reason: Option<String>end_turn, max_tokens, max_turn_requests, refusal, cancelled.
error: Option<String>Why it ended early.
timed_out: boolThe time was up.
sign_in: Option<Vec<SignIn>>The agent needs signing in; its own ways.
mode: Option<Statement>What its permission mode is, and why.
notices: Vec<String>Lines worth saying on the run (the model, the mode).
usage: Option<Value>Tokens, as the agent reported them.
stderr: Vec<String>The last lines the agent wrote to stderr.
plan: Vec<Value>The agent’s plan as it last sent it: {content, status} each.
left: Option<String>The agent moved to a mode that decides without asking: its turn was cancelled, and why.
prompted: boolThe prompt was sent: whatever stopped it, the attempt happened.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Finished
impl Freeze for Finished
impl RefUnwindSafe for Finished
impl Send for Finished
impl Sync for Finished
impl Unpin for Finished
impl UnsafeUnpin for Finished
impl UnwindSafe for Finished
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,
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
Creates a shared type from an unshared type.