Enum CohereLlmInferenceRequest.Truncate
- java.lang.Object
- 
- java.lang.Enum<CohereLlmInferenceRequest.Truncate>
- 
- com.oracle.bmc.generativeaiinference.model.CohereLlmInferenceRequest.Truncate
 
 
- 
- All Implemented Interfaces:
- BmcEnum,- Serializable,- Comparable<CohereLlmInferenceRequest.Truncate>
 - Enclosing class:
- CohereLlmInferenceRequest
 
 public static enum CohereLlmInferenceRequest.Truncate extends Enum<CohereLlmInferenceRequest.Truncate> implements BmcEnum For an input that’s longer than the maximum token length, specifies which part of the input text will be truncated.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CohereLlmInferenceRequest.Truncatecreate(String key)StringgetValue()static CohereLlmInferenceRequest.TruncatevalueOf(String name)Returns the enum constant of this type with the specified name.static CohereLlmInferenceRequest.Truncate[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
Nonepublic static final CohereLlmInferenceRequest.Truncate None 
 - 
Startpublic static final CohereLlmInferenceRequest.Truncate Start 
 - 
Endpublic static final CohereLlmInferenceRequest.Truncate End 
 
- 
 - 
Method Detail- 
valuespublic static CohereLlmInferenceRequest.Truncate[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CohereLlmInferenceRequest.Truncate c : CohereLlmInferenceRequest.Truncate.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static CohereLlmInferenceRequest.Truncate valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
createpublic static CohereLlmInferenceRequest.Truncate create(String key) 
 
- 
 
-