ProviderExchangeCall

org.llm4s.llmconnect.provider.ProviderExchangeCall
See theProviderExchangeCall companion object
@Stable
final case class ProviderExchangeCall

What a client knows about one provider call when it hands it to ProviderExchangeRecorder: who was called, when the request went out, and the bodies. The recorder adds the id, the completion time and the outcome.

Build one with ProviderExchangeCall.apply and change it with the with* setters (an Option field's setter takes the value or an Option); the constructor and copy are private, so a new field never breaks callers.

Value parameters

correlationId

the caller's id for the work the request belongs to, when it gave one

model

the model asked for, when the client names one

provider

the provider the client called

requestBody

the request as sent

requestId

the provider's id for the request, when it reported one

responseBody

the reply as received, when there was one

startedAt

when the request was sent

Attributes

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

Members list

Value members

Concrete methods

Sets the caller's correlation id.

Sets the caller's correlation id.

Attributes

Source
ProviderExchangeRecorder.scala

Sets or clears the caller's correlation id.

Sets or clears the caller's correlation id.

Attributes

Source
ProviderExchangeRecorder.scala

Sets the model.

Sets the model.

Attributes

Source
ProviderExchangeRecorder.scala

Sets or clears the model.

Sets or clears the model.

Attributes

Source
ProviderExchangeRecorder.scala

Sets the provider.

Sets the provider.

Attributes

Source
ProviderExchangeRecorder.scala

Sets the request body.

Sets the request body.

Attributes

Source
ProviderExchangeRecorder.scala

Sets the provider's request id.

Sets the provider's request id.

Attributes

Source
ProviderExchangeRecorder.scala

Sets or clears the provider's request id.

Sets or clears the provider's request id.

Attributes

Source
ProviderExchangeRecorder.scala

Sets the response body.

Sets the response body.

Attributes

Source
ProviderExchangeRecorder.scala

Sets or clears the response body.

Sets or clears the response body.

Attributes

Source
ProviderExchangeRecorder.scala

Sets when the request was sent.

Sets when the request was sent.

Attributes

Source
ProviderExchangeRecorder.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product