Verdict4sClient

com.softinio.verdict4s.Verdict4sClient
See theVerdict4sClient companion trait

Constructing a client over a transport you supply.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def jev[F[_] : Temporal](client: Client[F], apiKey: ApiKey, baseUri: Uri = ..., config: ClientConfig = ...): JevClient[F]

A Jev client over a transport you supply.

A Jev client over a transport you supply.

Value parameters

apiKey

your TypeSafe API key

baseUri

override for testing or a proxy

client

any http4s client, including an in-memory fake

config

model, retry policy and timeouts

Attributes

def of[F[_] : Temporal](client: Client[F], vendor: Vendor, apiKey: ApiKey, baseUri: Option[Uri] = ..., config: ClientConfig = ...): Verdict4sClient[F]

A client for any Vendor, when the vendor is chosen at runtime.

A client for any Vendor, when the vendor is chosen at runtime.

Exposes only what every vendor shares. Use jev or openAI for a client with that vendor's own capabilities.

Value parameters

baseUri

the vendor's own address when absent. A custom vendor whose defaultBaseUrl is not a valid URI fails here, when the client is built, rather than on the first request

Attributes

def openAI[F[_] : Temporal](client: Client[F], apiKey: ApiKey, baseUri: Uri = ..., config: ClientConfig = ...): OpenAIClient[F]

An OpenAI Decisions client over a transport you supply.

An OpenAI Decisions client over a transport you supply.

Value parameters

apiKey

your OpenAI API key

baseUri

override for testing or a proxy; includes /v1

client

any http4s client, including an in-memory fake

config

model, retry policy and timeouts

Attributes

Concrete fields

Jev's address, checked at compile time.

Jev's address, checked at compile time.

Attributes

OpenAI's address, checked at compile time. It includes /v1, as it does in OpenAI's own SDKs, so a base URL configured for them works here.

OpenAI's address, checked at compile time. It includes /v1, as it does in OpenAI's own SDKs, so a base URL configured for them works here.

Attributes