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