ToolRetryPolicy

org.llm4s.toolapi.ToolRetryPolicy
See theToolRetryPolicy companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(maxAttempts: Int, baseDelay: FiniteDuration, backoffFactor: Double, jitter: Double): ToolRetryPolicy

Creates a ToolRetryPolicy. Named arguments are the supported way to construct one.

Creates a ToolRetryPolicy. Named arguments are the supported way to construct one.

Value parameters

backoffFactor

Multiplier for each subsequent delay; must be >= 1.0.

baseDelay

Delay after first failure before first retry.

jitter

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

maxAttempts

Total attempts (first try + retries); must be >= 1.

Attributes