Skip to main content

Crate simple_agents_router

Crate simple_agents_router 

Source
Expand description

Routing implementations for SimpleAgents.

Provides routers that coordinate multiple providers with different selection strategies.

Structs§

CircuitBreaker
Circuit breaker for a provider.
CircuitBreakerConfig
Circuit breaker configuration.
CostRouter
Router that selects providers based on lowest cost.
CostRouterConfig
Configuration for cost-based routing.
FallbackRouter
Router that tries providers in order and falls back on eligible errors.
FallbackRouterConfig
Configuration for fallback routing.
HealthTracker
Health tracker for providers.
HealthTrackerConfig
Configuration for health tracking.
LatencyRouter
Router that selects providers based on observed latency.
LatencyRouterConfig
Configuration for latency-based routing.
ProviderCost
Cost metadata for a provider.
RetryPolicy
Retry policy configuration.
RoundRobinRouter
Router that selects providers using round-robin order.

Enums§

CircuitBreakerState
Public circuit breaker state.

Functions§

execute_with_retry
Execute an async operation with retry logic.