ReliableClient

org.llm4s.reliability.ReliableClient
See theReliableClient companion class

Attributes

Companion
class
Source
ReliableClient.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(underlying: LLMClient, providerName: String, config: ReliabilityConfig): ReliableClient

A client that adds retries, a circuit breaker, a deadline and a local rate limit to underlying.

A client that adds retries, a circuit breaker, a deadline and a local rate limit to underlying.

Value parameters

config

what to retry, when to open the circuit, the deadline and the rate limit

providerName

the provider label of this client's metrics and the provider its own errors name. It is a label, not a vendor id: often the provider's id, but any stable name the caller chooses (a configuration section, a pipeline)

underlying

the client to wrap

Attributes

Source
ReliableClient.scala