public static enum CohereChatRequest.PromptTruncation extends Enum<CohereChatRequest.PromptTruncation> implements BmcEnum
Defaults to OFF. Dictates how the prompt will be constructed. With promptTruncation
set to AUTO_PRESERVE_ORDER, some elements from chatHistory
and documents
will
be dropped to construct a prompt that fits within the model’s context length limit. During
this process the order of the documents and chat history will be preserved. With prompt_truncation
set to OFF, no elements will be dropped.
Enum Constant and Description |
---|
AutoPreserveOrder |
Off |
Modifier and Type | Method and Description |
---|---|
static CohereChatRequest.PromptTruncation |
create(String key) |
String |
getValue() |
static CohereChatRequest.PromptTruncation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CohereChatRequest.PromptTruncation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CohereChatRequest.PromptTruncation Off
public static final CohereChatRequest.PromptTruncation AutoPreserveOrder
public static CohereChatRequest.PromptTruncation[] values()
for (CohereChatRequest.PromptTruncation c : CohereChatRequest.PromptTruncation.values()) System.out.println(c);
public static CohereChatRequest.PromptTruncation 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 CohereChatRequest.PromptTruncation create(String key)
Copyright © 2016–2024. All rights reserved.