ProviderTimeouts

org.llm4s.llmconnect.config.ProviderTimeouts
See theProviderTimeouts 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(request: Option[FiniteDuration], stream: Option[FiniteDuration]): ProviderTimeouts

Builds ProviderTimeouts without checking the values; validated checks them.

Builds ProviderTimeouts without checking the values; validated checks them.

Attributes

def validated(request: Option[FiniteDuration], stream: Option[FiniteDuration]): Result[ProviderTimeouts]

Builds ProviderTimeouts, rejecting a value that is not positive.

Builds ProviderTimeouts, rejecting a value that is not positive.

The error names the key as it is written in a section (timeouts.request), so the caller can prefix the section's path.

Value parameters

request

the request timeout, if set

stream

the stream timeout, if set

Attributes

Concrete fields

No timeout set: each client keeps its own default.

No timeout set: each client keeps its own default.

Attributes