Package com.openai.models.realtime
Class RealtimeTruncationRetentionRatio.TokenLimits
-
- All Implemented Interfaces:
public final class RealtimeTruncationRetentionRatio.TokenLimitsOptional custom token limits for this truncation strategy. If not provided, the model's default token limits will be used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeTruncationRetentionRatio.TokenLimits.BuilderA builder for TokenLimits.
-
Method Summary
Modifier and Type Method Description final Optional<Long>postInstructions()Maximum tokens allowed in the conversation after instructions (which including tool definitions). final JsonField<Long>_postInstructions()Returns the raw JSON value of postInstructions. final Map<String, JsonValue>_additionalProperties()final RealtimeTruncationRetentionRatio.TokenLimits.BuildertoBuilder()final RealtimeTruncationRetentionRatio.TokenLimitsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeTruncationRetentionRatio.TokenLimits.Builderbuilder()Returns a mutable builder for constructing an instance of TokenLimits. -
-
Method Detail
-
postInstructions
final Optional<Long> postInstructions()
Maximum tokens allowed in the conversation after instructions (which including tool definitions). For example, setting this to 5,000 would mean that truncation would occur when the conversation exceeds 5,000 tokens after instructions. This cannot be higher than the model's context window size minus the maximum output tokens.
-
_postInstructions
final JsonField<Long> _postInstructions()
Returns the raw JSON value of postInstructions.
Unlike postInstructions, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeTruncationRetentionRatio.TokenLimits.Builder toBuilder()
-
validate
final RealtimeTruncationRetentionRatio.TokenLimits validate()
-
builder
final static RealtimeTruncationRetentionRatio.TokenLimits.Builder builder()
Returns a mutable builder for constructing an instance of TokenLimits.
-
-
-
-