org.llm4s.llmconnect.provider.ProviderExchangeCall
See theProviderExchangeCall companion object
@Stable
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
Members list
In this article
