ExperimentRetryDecision
NexusLabs.Foundry.Evaluation¶
NexusLabs.Foundry.Evaluation.Experiments¶
ExperimentRetryDecision Class¶
Describes whether and when a failed execution attempt should be retried.
public sealed record ExperimentRetryDecision : System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentRetryDecision>
Inheritance System.Object 🡒 ExperimentRetryDecision
Implements System.IEquatable<ExperimentRetryDecision>
Properties¶
ExperimentRetryDecision.Delay Property¶
Gets the delay before the next attempt becomes ready.
Property Value¶
ExperimentRetryDecision.ShouldRetry Property¶
Gets a value indicating whether another attempt should be scheduled.
Property Value¶
Methods¶
ExperimentRetryDecision.DoNotRetry() Method¶
Creates a decision that stops retrying and records a zero delay.
Returns¶
ExperimentRetryDecision
A decision indicating that no further attempt should be scheduled.
ExperimentRetryDecision.RetryAfter(TimeSpan) Method¶
Creates a decision that schedules another attempt after the specified delay.
public static NexusLabs.Foundry.Evaluation.Experiments.ExperimentRetryDecision RetryAfter(System.TimeSpan delay);
Parameters¶
delay System.TimeSpan
The delay before the next attempt becomes ready. The delay must be non-negative and no greater than the maximum delay enforced by ExperimentRetryPolicy.
Returns¶
ExperimentRetryDecision
A decision indicating that another attempt should be scheduled.
Exceptions¶
System.ArgumentOutOfRangeException
delay is negative, infinite, or greater than the maximum representable
experiment retry delay.