pub struct WaitResponse {Show 19 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 report_source: Option<String>,
pub turn_id: Option<u64>,
pub requested_turn_id: Option<u64>,
pub turn_number: Option<u64>,
pub elapsed_ms: Option<i64>,
pub tool_calls: Option<u64>,
pub capacity_retry: Option<WaitCapacityRetry>,
pub server_retry: Option<WaitCapacityRetry>,
pub retry_assessment_pending: bool,
pub quota_recovery: Option<QuotaRecovery>,
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. For a sub-agent child it is the report the child handed back, when it did.
report_source: Option<String>For a sub-agent child: handback when final_message is the report
the child handed back, last_message when it is the turn’s last
message. Absent for every other session.
turn_id: Option<u64>The turn this answer is about: the latest turn that ended at or after the requested one, since a session keeps only its latest turn’s outcome.
requested_turn_id: Option<u64>The turn the request named, so a caller can see when turn_id is a
later one.
turn_number: Option<u64>One-based position of this turn in the conversation.
elapsed_ms: Option<i64>§tool_calls: Option<u64>How many tool calls the turn made. Absent when the wait ended without a finished turn.
capacity_retry: Option<WaitCapacityRetry>Legacy alias for a worker-owned server retry, retained for older clients.
server_retry: Option<WaitCapacityRetry>§retry_assessment_pending: bool§quota_recovery: Option<QuotaRecovery>§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§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>,
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
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> ⓘ
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> ⓘ
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