Package com.openai.models.realtime
Class RealtimeTruncationRetentionRatio.TokenLimits.Builder
-
- All Implemented Interfaces:
public final class RealtimeTruncationRetentionRatio.TokenLimits.BuilderA builder for TokenLimits.
-
-
Method Summary
-
-
Method Detail
-
postInstructions
final RealtimeTruncationRetentionRatio.TokenLimits.Builder postInstructions(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 RealtimeTruncationRetentionRatio.TokenLimits.Builder postInstructions(JsonField<Long> postInstructions)
Sets Builder.postInstructions to an arbitrary JSON value.
You should usually call Builder.postInstructions with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeTruncationRetentionRatio.TokenLimits.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTruncationRetentionRatio.TokenLimits.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTruncationRetentionRatio.TokenLimits.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTruncationRetentionRatio.TokenLimits.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTruncationRetentionRatio.TokenLimits.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTruncationRetentionRatio.TokenLimits build()
Returns an immutable instance of TokenLimits.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-