Class OCICohereChatOptions
java.lang.Object
org.springframework.ai.oci.cohere.OCICohereChatOptions
- All Implemented Interfaces:
ChatOptions,ModelOptions
The configuration information for OCI chat requests.
- Author:
- Anders Swanson, Ilayaperumal Gopinathan, Alexnadros Pappas
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OCICohereChatOptions.Builderbuilder()Creates a newChatOptions.Builderto create the defaultChatOptions.copy()Returns a copy of thisChatOptions.booleanstatic OCICohereChatOptionsfromOptions(OCICohereChatOptions fromOptions) Returns the frequency penalty to use for the chat.Returns the maximum number of tokens to use for the chat.getModel()Returns the model to use for the chat.Returns the presence penalty to use for the chat.getStop()Returns the stop sequences to use for the chat.Returns the temperature to use for the chat.List<com.oracle.bmc.generativeaiinference.model.CohereTool>getTools()getTopK()Returns the top K to use for the chat.getTopP()Returns the top P to use for the chat.inthashCode()voidsetCompartment(String compartment) voidsetDocuments(List<Object> documents) voidsetFrequencyPenalty(Double frequencyPenalty) voidsetMaxTokens(Integer maxTokens) voidvoidsetPreambleOverride(String preambleOverride) voidsetPresencePenalty(Double presencePenalty) voidsetServingMode(String servingMode) voidvoidsetTemperature(Double temperature) voidvoidvoid
-
Constructor Details
-
OCICohereChatOptions
public OCICohereChatOptions()
-
-
Method Details
-
fromOptions
-
builder
Description copied from interface:ChatOptionsCreates a newChatOptions.Builderto create the defaultChatOptions.- Returns:
- Returns a new
ChatOptions.Builder.
-
setPresencePenalty
-
setFrequencyPenalty
-
setTopK
-
setTopP
-
setTemperature
-
getPreambleOverride
-
setPreambleOverride
-
getServingMode
-
setServingMode
-
getCompartment
-
setCompartment
-
setMaxTokens
-
setModel
-
getStop
-
setStop
-
getDocuments
-
setDocuments
-
getTools
-
setTools
-
getModel
Description copied from interface:ChatOptionsReturns the model to use for the chat.- Specified by:
getModelin interfaceChatOptions- Returns:
- the model to use for the chat
-
getFrequencyPenalty
Description copied from interface:ChatOptionsReturns the frequency penalty to use for the chat.- Specified by:
getFrequencyPenaltyin interfaceChatOptions- Returns:
- the frequency penalty to use for the chat
-
getMaxTokens
Description copied from interface:ChatOptionsReturns the maximum number of tokens to use for the chat.- Specified by:
getMaxTokensin interfaceChatOptions- Returns:
- the maximum number of tokens to use for the chat
-
getPresencePenalty
Description copied from interface:ChatOptionsReturns the presence penalty to use for the chat.- Specified by:
getPresencePenaltyin interfaceChatOptions- Returns:
- the presence penalty to use for the chat
-
getStopSequences
Description copied from interface:ChatOptionsReturns the stop sequences to use for the chat.- Specified by:
getStopSequencesin interfaceChatOptions- Returns:
- the stop sequences to use for the chat
-
getTemperature
Description copied from interface:ChatOptionsReturns the temperature to use for the chat.- Specified by:
getTemperaturein interfaceChatOptions- Returns:
- the temperature to use for the chat
-
getTopK
Description copied from interface:ChatOptionsReturns the top K to use for the chat.- Specified by:
getTopKin interfaceChatOptions- Returns:
- the top K to use for the chat
-
getTopP
Description copied from interface:ChatOptionsReturns the top P to use for the chat.- Specified by:
getTopPin interfaceChatOptions- Returns:
- the top P to use for the chat
-
copy
Description copied from interface:ChatOptionsReturns a copy of thisChatOptions.- Specified by:
copyin interfaceChatOptions- Returns:
- a copy of this
ChatOptions
-
hashCode
public int hashCode() -
equals
-