Class OCICohereChatOptions
java.lang.Object
org.springframework.ai.oci.cohere.OCICohereChatOptions
- All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions,org.springframework.ai.model.ModelOptions
public class OCICohereChatOptions
extends Object
implements org.springframework.ai.chat.prompt.ChatOptions
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()org.springframework.ai.chat.prompt.ChatOptionscopy()booleanstatic OCICohereChatOptionsfromOptions(OCICohereChatOptions fromOptions) getModel()getStop()List<com.oracle.bmc.generativeaiinference.model.CohereTool>getTools()getTopK()getTopP()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
-
setPresencePenalty
-
setFrequencyPenalty
-
setTopK
-
setTopP
-
setTemperature
-
getPreambleOverride
-
setPreambleOverride
-
getServingMode
-
setServingMode
-
getCompartment
-
setCompartment
-
setMaxTokens
-
setModel
-
getStop
-
setStop
-
getDocuments
-
setDocuments
-
getTools
-
setTools
-
getModel
- Specified by:
getModelin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getFrequencyPenalty
- Specified by:
getFrequencyPenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getMaxTokens
- Specified by:
getMaxTokensin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getPresencePenalty
- Specified by:
getPresencePenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getStopSequences
- Specified by:
getStopSequencesin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getTemperature
- Specified by:
getTemperaturein interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getTopK
- Specified by:
getTopKin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getTopP
- Specified by:
getTopPin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
copy
public org.springframework.ai.chat.prompt.ChatOptions copy()- Specified by:
copyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
hashCode
public int hashCode() -
equals
-