Class ChatRequest.Builder
java.lang.Object
dev.langchain4j.model.chat.request.ChatRequest.Builder
- Enclosing class:
ChatRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()frequencyPenalty(Double frequencyPenalty) maxOutputTokens(Integer maxOutputTokens) messages(ChatMessage... messages) messages(List<ChatMessage> messages) parameters(ChatRequestParameters parameters) presencePenalty(Double presencePenalty) responseFormat(ResponseFormat responseFormat) stopSequences(List<String> stopSequences) temperature(Double temperature) toolChoice(ToolChoice toolChoice) toolSpecifications(ToolSpecification... toolSpecifications) toolSpecifications(List<ToolSpecification> toolSpecifications)
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
messages
-
messages
-
parameters
-
modelName
-
temperature
-
topP
-
topK
-
frequencyPenalty
-
presencePenalty
-
maxOutputTokens
-
stopSequences
-
toolSpecifications
-
toolSpecifications
-
toolChoice
-
responseFormat
-
build
-