Skip to main content

Module retry

Module retry 

Source
Expand description

Canonical retry policy shared across the workspace.

This module owns the retry policy math: attempt budgets, exponential backoff with an optional deterministic jitter, and category-based retry decisions built on ErrorCategory::is_retryable. Domain-specific adapters (typed error downcasts, tool-aware timeout rules, LLM Retry-After extraction) live in vtcode-core::retry as an extension trait over this policy.

Wire-level HTTP clients that only need “should I retry this call?” use RetryPolicy::classify_anyhow / RetryPolicy::classify_status; richer loops use RetryPolicy::decision_for_category.

Structs§

RetryDecision
Result of classifying a failure for retry handling.
RetryPolicy
Typed retry policy shared across runtime layers.