pub struct WaitResponse {Show 13 fields
pub diagnostic: Option<TurnDiagnostic>,
pub pending_elicitations: Vec<ElicitationRequest>,
pub usage: Option<TokenUsage>,
pub outcome: WaitOutcome,
pub stop_reason: Option<String>,
pub message: Option<String>,
pub final_message: Option<String>,
pub turn_id: Option<u64>,
pub turn_number: Option<u64>,
pub elapsed_ms: Option<i64>,
pub capacity_retry: Option<WaitCapacityRetry>,
pub relay: Option<RelayHealth>,
pub session: ApiSession,
}Fields§
§diagnostic: Option<TurnDiagnostic>§pending_elicitations: Vec<ElicitationRequest>§usage: Option<TokenUsage>§outcome: WaitOutcome§stop_reason: Option<String>The harness’s own stop reason, when the turn reached one.
message: Option<String>Why the wait ended this way, when there is something to say.
final_message: Option<String>The agent’s last message of the turn, flattened to text.
turn_id: Option<u64>§turn_number: Option<u64>One-based position of this turn in the conversation.
elapsed_ms: Option<i64>§capacity_retry: Option<WaitCapacityRetry>A capacity retry the worker has armed. While one is pending the caller must not submit its own prompt: it would collide with the retry.
relay: Option<RelayHealth>The health of the daemon’s live view of this session. Absent when no live actor holds the session, because there is then no view to report on and inventing one would be worse than saying nothing.
session: ApiSessionTrait Implementations§
Source§impl Clone for WaitResponse
impl Clone for WaitResponse
Source§fn clone(&self) -> WaitResponse
fn clone(&self) -> WaitResponse
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 WaitResponse
impl Debug for WaitResponse
Source§impl<'de> Deserialize<'de> for WaitResponse
impl<'de> Deserialize<'de> for WaitResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WaitResponse
impl PartialEq for WaitResponse
Source§impl Serialize for WaitResponse
impl Serialize for WaitResponse
impl StructuralPartialEq for WaitResponse
Auto Trait Implementations§
impl Freeze for WaitResponse
impl RefUnwindSafe for WaitResponse
impl Send for WaitResponse
impl Sync for WaitResponse
impl Unpin for WaitResponse
impl UnsafeUnpin for WaitResponse
impl UnwindSafe for WaitResponse
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.