#[non_exhaustive]pub struct TurnRetryScheduledParams {
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 reason: String,
pub system: Option<String>,
pub error_kind: Option<String>,
pub http_status: Option<u16>,
}Expand description
turn/retryScheduled params: a durable turn retry-scheduled fact folded —
the failing model attempt’s scheduled retry is observable BEFORE the turn
terminates, so a streaming client can render “attempt N/M · retrying in Ss ·
reason” instead of dead air. Non-terminal: it never resolves a turn-wait.
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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe owning session.
view_cursor: StringOpaque, strictly monotonic view cursor.
source_range: SourceRangeThe durable record this event folded from (the session stream’s
mirror of the retry-scheduled task status; first == last).
turn_id: StringThe running turn whose model attempt is being retried.
attempt: u32The attempt that failed (producer-normalized, >= 1).
next_attempt: u32The attempt about to run (producer contract: attempt < nextAttempt <= maxAttempts; not a schema constraint).
max_attempts: u32The turn’s model-retry chain bound.
retry_delay_ms: u64The scheduled backoff delay in milliseconds, verbatim from the durable fact.
reason: StringThe recorded stopping reason through the shared task-detail normalization (non-empty; capped at 160 characters).
system: Option<String>The failing model attempt’s provider system, verbatim — e.g. "meta".
Absent when no model-attempt facet precedes the retry status on the task
(old logs).
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.