Skip to main content

TurnModelRetryScheduledParams

Struct TurnModelRetryScheduledParams 

Source
#[non_exhaustive]
pub struct TurnModelRetryScheduledParams { pub session_id: String, pub view_cursor: String, pub source_range: SourceRange, pub turn_id: String, pub attempt: u32, pub next_attempt: u32, pub max_attempts: u32, pub retry_delay_ms: u64, pub system: Option<String>, pub error_kind: Option<String>, pub http_status: Option<u16>, }
Expand description

turn/modelRetryScheduled params: a durable model-stream retry-scheduled fact folded — the provider backoff behind one model attempt is observable BEFORE the turn terminates, so a streaming client can render “system words · retrying in Ss · attempt N/M” instead of dead air. Non-terminal: it never resolves a turn-wait. The sibling turn/retryScheduled shape at the model layer: same member names and semantics (attempt/nextAttempt/maxAttempts/ retryDelayMs/system/errorKind/httpStatus), minus reason — the row’s words derive from errorKind through the shared gate-off mapping, and the recorded machine message is not user text. The delay is the recorded scheduled backoff, never an absolute fire time — clients derive any countdown locally. sourceRange cites the session stream’s mirror of the task-lifecycle record.

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.
§session_id: String

The owning session.

§view_cursor: String

Opaque, strictly monotonic view cursor.

§source_range: SourceRange

The durable record this event folded from (the session stream’s mirror of the scheduled model task status; first == last).

§turn_id: String

The running turn whose model attempt is being retried.

§attempt: u32

The failed model attempt (producer-normalized, >= 1).

§next_attempt: u32

The scheduled model attempt (producer contract: attempt < nextAttempt <= maxAttempts; not a schema constraint).

§max_attempts: u32

The model-retry chain bound.

§retry_delay_ms: u64

The scheduled backoff delay in milliseconds, verbatim from the durable fact.

§system: Option<String>

The failing model attempt’s provider system, verbatim — e.g. "meta". Always present from this producer (the durable system is a required String); optional on the wire so a future omission folds absent instead of failing the frame.

§error_kind: Option<String>

The failing model attempt’s durable kind, verbatim — a plain string: the durable vocabulary is open-ended.

§http_status: Option<u16>

The failing model attempt’s HTTP status.

Trait Implementations§

Source§

impl Clone for TurnModelRetryScheduledParams

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TurnModelRetryScheduledParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TurnModelRetryScheduledParams

Source§

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 TurnModelRetryScheduledParams

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TurnModelRetryScheduledParams

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TurnModelRetryScheduledParams

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.