Expand description
Shared retry policy and classification helpers for VT Code.
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
RetryPolicy::step_for_vtcode_error.
Functions§
- decision_
for_ anyhow_ error - decision_
for_ vtcode_ error - is_
command_ tool - 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.