retry: add core retry types and module structure

Add the retry module with core type definitions including:
- RequestContext, RequestSignature for request deduplication
- RetryExhaustedError, AllProvidersExhaustedError for error handling
- AttemptError, AttemptErrorType for attempt tracking
- ValidationError, ValidationWarning for config validation
- Helper functions for provider extraction and hashing

Wire up pub mod retry in lib.rs.

Signed-off-by: Troy Mitchell <i@troy-y.org>
This commit is contained in:
Troy Mitchell 2026-04-28 15:47:55 +08:00
parent 6853e4d88f
commit 5a2d0aa52e
2 changed files with 805 additions and 0 deletions

View file

@ -7,6 +7,7 @@ pub mod llm_providers;
pub mod path;
pub mod pii;
pub mod ratelimit;
pub mod retry;
pub mod routing;
pub mod stats;
pub mod tokenizer;