Class ChatModelResponse
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelResponse
Deprecated, for removal: This API element is subject to removal in a future version.
A response from the
ChatLanguageModel
or StreamingChatLanguageModel
,
intended to be used with ChatModelListener
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionChatModelResponse
(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.builder()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.id()
Deprecated, for removal: This API element is subject to removal in a future version.model()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ChatModelResponse
public ChatModelResponse(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version. -
id
Deprecated, for removal: This API element is subject to removal in a future version. -
model
Deprecated, for removal: This API element is subject to removal in a future version. -
tokenUsage
Deprecated, for removal: This API element is subject to removal in a future version. -
finishReason
Deprecated, for removal: This API element is subject to removal in a future version. -
aiMessage
Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.
-
ChatResponse