# agentsea_gateway v0.1.0 - Table of Contents

> AgentSea gateway: strategy-based routing, circuit breaking, and failover across LLM providers.

## Modules

- [AgentSea.Gateway](AgentSea.Gateway.md): Routes completion requests across multiple providers with strategy-based
ordering, circuit breaking, and failover.
- [AgentSea.Gateway.CircuitBreaker](AgentSea.Gateway.CircuitBreaker.md): Per-provider circuit breaker on top of the battle-tested `:fuse` library.
- [AgentSea.Gateway.Config](AgentSea.Gateway.Config.md): Gateway configuration.
- [AgentSea.Gateway.Provider](AgentSea.Gateway.Provider.md): A configured provider candidate.
- [AgentSea.Gateway.Router](AgentSea.Gateway.Router.md): Routing-strategy behaviour. A strategy *orders* the available candidates; the
gateway then tries them in that order, failing over to the next when one
errors. Strategies are pure — they receive the candidates and a context
(`:counter`, live `:health`) and return a reordered list.

- [AgentSea.Gateway.Router.CostOptimized](AgentSea.Gateway.Router.CostOptimized.md): Orders candidates cheapest-model-first using `AgentSea.ModelPricing`.
- [AgentSea.Gateway.Router.Failover](AgentSea.Gateway.Router.Failover.md): Tries candidates in their configured (priority) order.
- [AgentSea.Gateway.Router.LatencyOptimized](AgentSea.Gateway.Router.LatencyOptimized.md): Orders candidates by lowest observed latency (from gateway health). Candidates
with no recorded latency yet are tried last.

- [AgentSea.Gateway.Router.RoundRobin](AgentSea.Gateway.Router.RoundRobin.md): Rotates the candidate order by a counter so load spreads across providers.

