pub struct ReliabilityConfig {
pub provider_retries: u32,
pub provider_backoff_ms: u64,
pub fallback_providers: Vec<String>,
pub api_keys: Vec<String>,
pub model_fallbacks: HashMap<String, Vec<String>>,
pub channel_initial_backoff_secs: u64,
pub channel_max_backoff_secs: u64,
pub scheduler_poll_secs: u64,
pub scheduler_retries: u32,
}Expand description
Reliability and supervision configuration ([reliability] section).
Controls provider retries, fallback chains, API key rotation, and channel restart backoff.
Fields§
§provider_retries: u32Retries per provider before failing over.
provider_backoff_ms: u64Base backoff (ms) for provider retry delay.
fallback_providers: Vec<String>Fallback provider chain (e.g. ["anthropic", "openai"]).
api_keys: Vec<String>Additional API keys for round-robin rotation on rate-limit (429) errors.
The primary api_key is always tried first; these are extras.
model_fallbacks: HashMap<String, Vec<String>>Per-model fallback chains. When a model fails, try these alternatives in order.
Example: { "claude-opus-4-20250514" = ["claude-sonnet-4-20250514", "gpt-4o"] }
channel_initial_backoff_secs: u64Initial backoff for channel/daemon restarts.
channel_max_backoff_secs: u64Max backoff for channel/daemon restarts.
scheduler_poll_secs: u64Scheduler polling cadence in seconds.
scheduler_retries: u32Max retries for cron job execution attempts.
Trait Implementations§
Source§impl Clone for ReliabilityConfig
impl Clone for ReliabilityConfig
Source§fn clone(&self) -> ReliabilityConfig
fn clone(&self) -> ReliabilityConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReliabilityConfig
impl Debug for ReliabilityConfig
Source§impl Default for ReliabilityConfig
impl Default for ReliabilityConfig
Source§impl<'de> Deserialize<'de> for ReliabilityConfig
impl<'de> Deserialize<'de> for ReliabilityConfig
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 JsonSchema for ReliabilityConfig
impl JsonSchema for ReliabilityConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ReliabilityConfig
impl RefUnwindSafe for ReliabilityConfig
impl Send for ReliabilityConfig
impl Sync for ReliabilityConfig
impl Unpin for ReliabilityConfig
impl UnsafeUnpin for ReliabilityConfig
impl UnwindSafe for ReliabilityConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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