ProviderBuildContext

org.llm4s.llmconnect.spi.ProviderBuildContext
See theProviderBuildContext companion object
@Stable
final case class ProviderBuildContext

What ProviderDescriptor.build is given besides the config itself.

Value parameters

modelRegistry

the model registry the client looks model metadata up in; a client's constructor usually takes it as a using parameter, so a descriptor passes it on with given ModelRegistryService = context.modelRegistry

options

the caller's client options: metrics, exchange logging and their own HTTP client

Attributes

Companion
object
Source
ProviderContext.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Whether, and where, provider exchanges are logged: options.exchangeLogging.

Whether, and where, provider exchanges are logged: options.exchangeLogging.

Attributes

Source
ProviderContext.scala

The HTTP client to send requests through, when the caller supplied one: options.httpClient. The caller owns it, so the provider's client does not close it.

The HTTP client to send requests through, when the caller supplied one: options.httpClient. The caller owns it, so the provider's client does not close it.

Attributes

Source
ProviderContext.scala

The collector the client reports request metrics to: options.metrics.

The collector the client reports request metrics to: options.metrics.

Attributes

Source
ProviderContext.scala

Sets the model registry.

Sets the model registry.

Attributes

Source
ProviderContext.scala

Sets the caller's client options.

Sets the caller's client options.

Attributes

Source
ProviderContext.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product