Package com.openai.models
Class BetaThreadCreateAndRunParams.TruncationStrategy.Type
-
- All Implemented Interfaces:
-
com.openai.core.Enum
public final class BetaThreadCreateAndRunParams.TruncationStrategy.Type implements Enum
The truncation strategy to use for the thread. The default is
auto
. If set tolast_messages
, the thread will be truncated to the n most recent messages in the thread. When set toauto
, messages in the middle of the thread will be dropped to fit the context length of the model,max_prompt_tokens
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
BetaThreadCreateAndRunParams.TruncationStrategy.Type.Known
public enum
BetaThreadCreateAndRunParams.TruncationStrategy.Type.Value
-
Field Summary
Fields Modifier and Type Field Description public final static BetaThreadCreateAndRunParams.TruncationStrategy.Type
AUTO
public final static BetaThreadCreateAndRunParams.TruncationStrategy.Type
LAST_MESSAGES
-
Method Summary
Modifier and Type Method Description final JsonField<String>
_value()
final BetaThreadCreateAndRunParams.TruncationStrategy.Type.Value
value()
final BetaThreadCreateAndRunParams.TruncationStrategy.Type.Known
known()
final String
asString()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static BetaThreadCreateAndRunParams.TruncationStrategy.Type
of(String value)
-
-
Method Detail
-
of
final static BetaThreadCreateAndRunParams.TruncationStrategy.Type of(String value)
-
-
-
-