Expand description
Domain-specific retry adapters for VT Code.
The retry policy math (attempt budgets, backoff, jitter, category-based
decisions) lives in vtcode_commons::retry; this module re-exports the
canonical RetryPolicy / RetryDecision and layers the workspace’s
domain knowledge on top via RetryPolicyCoreExt: typed error downcasts
(VtCodeError, LLMError, tool errors), LLM Retry-After extraction,
and the tool-aware command-timeout rule.
Structs§
- Retry
Decision - Result of classifying a failure for retry handling.
- Retry
Policy - Typed retry policy shared across runtime layers.
Enums§
- Retry
Event - Lifecycle event emitted by
run_with_retryso callers can attach logging, metrics, or stats updates without re-implementing the loop. - Retry
Step - Typed step produced by
RetryPolicyCoreExt::step_for_vtcode_error.
Traits§
- Retry
Policy Core Ext - Domain-aware retry decisions layered over the shared
RetryPolicy.
Functions§
- decision_
for_ anyhow_ error - decision_
for_ vtcode_ error - run_
with_ retry - Drive a retry loop per
policy, invokingon_eventfor each lifecycle event. Returns the first successful result, or the final error if the policy gives up or all attempts are exhausted.