ClientConfig

com.softinio.verdict4s.algebra.ClientConfig
See theClientConfig companion object
final case class ClientConfig(model: Option[Model] = ..., retry: RetryPolicy = ..., requestTimeout: FiniteDuration = ...)

Settings a client applies to every request.

Deliberately carries no base URL. org.http4s.Uri is not available in the effect-free core, and holding the address as a String here would push a parse failure into the happy path at runtime; the base URL comes from the vendor's com.softinio.verdict4s.Vendor or the client's constructor.

Value parameters

model

the model used when a request does not name one; None uses the vendor's own default (jev-latest for Jev, gpt-6-luna for OpenAI)

requestTimeout

ceiling on one HTTP attempt, from sending to having read the body. Exceeding it fails the call with a com.softinio.verdict4s.Verdict4sError.Transport, and is not retried.

retry

how to back off and retry

Attributes

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

Members list

Value members

Concrete methods

A copy using a different default model.

A copy using a different default model.

Attributes

A copy with a different ceiling on each HTTP attempt.

A copy with a different ceiling on each HTTP attempt.

Attributes

A copy using a different retry policy.

A copy using a different retry policy.

Attributes

A copy that never retries.

A copy that never retries.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product