Class ChatResponse
java.lang.Object
dev.langchain4j.model.chat.response.ChatResponse
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatResponse.Builder
builder()
boolean
int
hashCode()
id()
metadata()
Converts the current instance ofChatResponse
into aChatResponse.Builder
, allowing modifications to the current object's fields.toString()
-
Constructor Details
-
ChatResponse
-
-
Method Details
-
aiMessage
-
toBuilder
Converts the current instance ofChatResponse
into aChatResponse.Builder
, allowing modifications to the current object's fields.- Returns:
- a new
ChatResponse.Builder
instance initialized with the current state of thisChatResponse
.
-
metadata
-
id
-
modelName
-
tokenUsage
-
finishReason
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
-