Class ChatRequest
java.lang.Object
dev.langchain4j.model.chat.request.ChatRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatRequest.Builderbuilder()booleaninthashCode()messages()Transforms this instance to aChatRequest.Builderwith all of the same field values.topK()topP()toString()
-
Constructor Details
-
ChatRequest
-
-
Method Details
-
messages
-
parameters
-
modelName
-
temperature
-
topP
-
topK
-
frequencyPenalty
-
presencePenalty
-
maxOutputTokens
-
stopSequences
-
toolSpecifications
-
toolChoice
-
responseFormat
-
equals
-
hashCode
-
toString
-
toBuilder
Transforms this instance to aChatRequest.Builderwith all of the same field values.Individual setters on the returned
ChatRequest.Builder(e.g.,ChatRequest.Builder.modelName(String),ChatRequest.Builder.temperature(Double), etc.) can be used to override specific fields of the existingparameters()without rebuilding them from scratch. For example:
SeeChatRequest modified = chatRequest.toBuilder() .temperature(0.0) .build();ChatRequest.Builderfor details on the override semantics. -
builder
-