RetryPolicy

org.llm4s.agent.graph.RetryPolicy
See theRetryPolicy companion class
object RetryPolicy

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, initialBackoff: FiniteDuration, backoffFactor: Double, maxBackoff: FiniteDuration, retryOn: LLMError => Boolean): RetryPolicy

Throws IllegalArgumentException for an invalid value; use of for untrusted input.

Throws IllegalArgumentException for an invalid value; use of for untrusted input.

Attributes

def of(maxAttempts: Int, initialBackoff: FiniteDuration, backoffFactor: Double, maxBackoff: FiniteDuration, retryOn: LLMError => Boolean): Result[RetryPolicy]

Concrete fields

One attempt: a failed node fails the run. The default for every node.

One attempt: a failed node fails the run. The default for every node.

Attributes

val transientOnly: LLMError => Boolean

Retry what the library's one retry rule retries, so a node and an LLM call agree about an error: a recoverable error, except a client-error response and an optimistic-lock failure. See org.llm4s.reliability.RetryPolicy.isRetryable.

Retry what the library's one retry rule retries, so a node and an LLM call agree about an error: a recoverable error, except a client-error response and an optimistic-lock failure. See org.llm4s.reliability.RetryPolicy.isRetryable.

Attributes