Package dev.langchain4j.model.bedrock
Class BedrockChatRequestParameters
java.lang.Object
dev.langchain4j.model.chat.request.DefaultChatRequestParameters
dev.langchain4j.model.bedrock.BedrockChatRequestParameters
- All Implemented Interfaces:
ChatRequestParameters
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a newChatRequestParameters
by combining the current parameters with the specified ones.Methods inherited from class dev.langchain4j.model.chat.request.DefaultChatRequestParameters
equals, frequencyPenalty, hashCode, maxOutputTokens, modelName, presencePenalty, responseFormat, stopSequences, temperature, toolChoice, toolSpecifications, topK, topP, toString
-
Method Details
-
overrideWith
Description copied from interface:ChatRequestParameters
Creates a newChatRequestParameters
by combining the current parameters with the specified ones. Values from the specified parameters override values from the current parameters when there is overlap. Neither the current nor the specifiedChatRequestParameters
objects are modified.Example:
Current parameters: temperature = 1.0 maxOutputTokens = 100 Specified parameters: temperature = 0.5 modelName = my-model Result: temperature = 0.5 // Overridden from specified maxOutputTokens = 100 // Preserved from current modelName = my-model // Added from specified
- Specified by:
overrideWith
in interfaceChatRequestParameters
- Overrides:
overrideWith
in classDefaultChatRequestParameters
- Parameters:
that
- the parameters whose values will override the current ones- Returns:
- a new
ChatRequestParameters
instance combining both sets of parameters
-
builder
-
additionalModelRequestFields
-