Expand description
Routing implementations for SimpleAgents.
Provides routers that coordinate multiple providers with different selection strategies.
Structs§
- Circuit
Breaker - Circuit breaker for a provider.
- Circuit
Breaker Config - Circuit breaker configuration.
- Cost
Router - Router that selects providers based on lowest cost.
- Cost
Router Config - Configuration for cost-based routing.
- Fallback
Router - Router that tries providers in order and falls back on eligible errors.
- Fallback
Router Config - Configuration for fallback routing.
- Health
Tracker - Health tracker for providers.
- Health
Tracker Config - Configuration for health tracking.
- Latency
Router - Router that selects providers based on observed latency.
- Latency
Router Config - Configuration for latency-based routing.
- Provider
Cost - Cost metadata for a provider.
- Retry
Policy - Retry policy configuration.
- Round
Robin Router - Router that selects providers using round-robin order.
Enums§
- Circuit
Breaker State - Public circuit breaker state.
Functions§
- execute_
with_ retry - Execute an async operation with retry logic.