Package dev.langchain4j.model.scoring.listener
package dev.langchain4j.model.scoring.listener
-
ClassDescriptionThe context of an error of a scoring model: the error, the corresponding request, the model provider and attributes.Builder for
ScoringModelErrorContext.A listener of aScoringModel: it is notified before each scoring call, after each successful call and when a call fails.The context of a request to a scoring model: the request (the documents, the query and the parameters), the model provider and attributes.Builder forScoringModelRequestContext.The context of a response from a scoring model: the response (the scores and the metadata, such as the token usage), the corresponding request, the model provider and attributes.Builder forScoringModelResponseContext.