ToolRetryPolicy

org.llm4s.toolapi.ToolRetryPolicy
See theToolRetryPolicy companion class
@Experimental

Attributes

Companion
class
Source
ToolExecutionConfig.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(maxAttempts: Int, baseDelay: FiniteDuration, backoffFactor: Double, jitter: Double, maxDelay: FiniteDuration): Result[ToolRetryPolicy]

Creates a ToolRetryPolicy, or a ValidationError naming the first value that is out of range. Named arguments are the supported way to construct one.

Creates a ToolRetryPolicy, or a ValidationError naming the first value that is out of range. Named arguments are the supported way to construct one.

Value parameters

backoffFactor

Multiplier for each subsequent delay; at least 1.0.

baseDelay

Delay after first failure before first retry; not negative.

jitter

Fraction of each delay that is randomised, from 0.0 (the default: exact delays) to 1.0.

maxAttempts

Total attempts (first try + retries); at least 1.

maxDelay

The longest wait before any retry (the default: 30 seconds); not negative.

Attributes

Source
ToolExecutionConfig.scala