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.
Modifier and Type | Method and Description |
---|---|
static CohereLlmInferenceRequest.Truncate |
create(String key) |
String |
getValue() |
static CohereLlmInferenceRequest.Truncate |
valueOf(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.
|
public static final CohereLlmInferenceRequest.Truncate None
public static final CohereLlmInferenceRequest.Truncate Start
public static final CohereLlmInferenceRequest.Truncate End
public static CohereLlmInferenceRequest.Truncate[] values()
for (CohereLlmInferenceRequest.Truncate c : CohereLlmInferenceRequest.Truncate.values()) System.out.println(c);
public static CohereLlmInferenceRequest.Truncate valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CohereLlmInferenceRequest.Truncate create(String key)
Copyright © 2016–2024. All rights reserved.