MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / ApiErrorInfo

Class ApiErrorInfo

crates/opencode-session/src/retry.rs:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54#[derive(Debug, Clone)]
55pub struct ApiErrorInfo {
56 pub message: String,
57 pub is_retryable: bool,
58 pub response_headers: Option<std::collections::HashMap<String, String>>,
59 pub response_body: Option<String>,
60}
61
62pub fn retryable(error: &crate::MessageError) -> Option<String> {
63 match error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected