ToolRetryPolicy

org.llm4s.toolapi.ToolRetryPolicy
case class ToolRetryPolicy(maxAttempts: Int, baseDelay: FiniteDuration, backoffFactor: Double)

Simple retry policy with exponential backoff.

Value parameters

backoffFactor

Multiplier for each subsequent delay (e.g. 2.0 => baseDelay, 2baseDelay, 4baseDelay).

baseDelay

Delay after first failure before first retry.

maxAttempts

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

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product