Package com.openai.models
Class BetaThreadRunCreateParams.TruncationStrategy.Type
-
- All Implemented Interfaces:
-
com.openai.core.Enum
public final class BetaThreadRunCreateParams.TruncationStrategy.Type implements EnumThe 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 enumBetaThreadRunCreateParams.TruncationStrategy.Type.Knownpublic enumBetaThreadRunCreateParams.TruncationStrategy.Type.Value
-
Field Summary
Fields Modifier and Type Field Description public final static BetaThreadRunCreateParams.TruncationStrategy.TypeAUTOpublic final static BetaThreadRunCreateParams.TruncationStrategy.TypeLAST_MESSAGES
-
Method Summary
Modifier and Type Method Description final JsonField<String>_value()final BetaThreadRunCreateParams.TruncationStrategy.Type.Valuevalue()final BetaThreadRunCreateParams.TruncationStrategy.Type.Knownknown()final StringasString()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaThreadRunCreateParams.TruncationStrategy.Typeof(String value)-
-
Method Detail
-
value
final BetaThreadRunCreateParams.TruncationStrategy.Type.Value value()
-
known
final BetaThreadRunCreateParams.TruncationStrategy.Type.Known known()
-
of
final static BetaThreadRunCreateParams.TruncationStrategy.Type of(String value)
-
-
-
-