pub struct SessionErrorData {
pub eligible_for_auto_switch: Option<bool>,
pub error_code: Option<String>,
pub error_type: String,
pub message: String,
pub provider_call_id: Option<String>,
pub stack: Option<String>,
pub status_code: Option<i64>,
pub url: Option<String>,
}Expand description
Error details for timeline display including message and optional diagnostic information
Fields§
§eligible_for_auto_switch: Option<bool>Only set on errorType: "rate_limit". When true, the runtime will follow this error with an auto_mode_switch.requested event (or silently switch if continueOnAutoMode is enabled). UI clients can use this flag to suppress duplicate rendering of the rate-limit error when they show their own auto-mode-switch prompt.
error_code: Option<String>Fine-grained error code from the upstream provider, when available. For errorType: "rate_limit", this is one of the RateLimitErrorCode values (e.g., "user_weekly_rate_limited", "user_global_rate_limited", "rate_limited", "user_model_rate_limited", "integration_rate_limited").
error_type: StringCategory of error (e.g., “authentication”, “authorization”, “quota”, “rate_limit”, “context_limit”, “query”)
message: StringHuman-readable error message
provider_call_id: Option<String>GitHub request tracing ID (x-github-request-id header) for correlating with server-side logs
stack: Option<String>Error stack trace, when available
status_code: Option<i64>HTTP status code from the upstream request, if applicable
url: Option<String>Optional URL associated with this error that the user can open in a browser
Trait Implementations§
Source§impl Clone for SessionErrorData
impl Clone for SessionErrorData
Source§fn clone(&self) -> SessionErrorData
fn clone(&self) -> SessionErrorData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more