Class ChatModelResponse
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelResponse
A response from the
ChatLanguageModel
or StreamingChatLanguageModel
,
intended to be used with ChatModelListener
.-
Constructor Summary
ConstructorsConstructorDescriptionChatModelResponse
(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage) -
Method Summary
-
Constructor Details
-
ChatModelResponse
public ChatModelResponse(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage)
-
-
Method Details
-
id
-
model
-
tokenUsage
-
finishReason
-
aiMessage
-