Class RealtimeTruncation.RetentionRatioTruncation.Builder
-
- All Implemented Interfaces:
public final class RealtimeTruncation.RetentionRatioTruncation.Builder
A builder for RetentionRatioTruncation.
-
-
Method Summary
-
-
Method Detail
-
retentionRatio
final RealtimeTruncation.RetentionRatioTruncation.Builder retentionRatio(Double retentionRatio)
Fraction of pre-instruction conversation tokens to retain (0.0 - 1.0).
-
retentionRatio
final RealtimeTruncation.RetentionRatioTruncation.Builder retentionRatio(JsonField<Double> retentionRatio)
Sets Builder.retentionRatio to an arbitrary JSON value.
You should usually call Builder.retentionRatio with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeTruncation.RetentionRatioTruncation.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("retention_ratio")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
postInstructionsTokenLimit
final RealtimeTruncation.RetentionRatioTruncation.Builder postInstructionsTokenLimit(Long postInstructionsTokenLimit)
Optional cap on tokens allowed after the instructions.
-
postInstructionsTokenLimit
final RealtimeTruncation.RetentionRatioTruncation.Builder postInstructionsTokenLimit(Long postInstructionsTokenLimit)
Alias for Builder.postInstructionsTokenLimit.
This unboxed primitive overload exists for backwards compatibility.
-
postInstructionsTokenLimit
final RealtimeTruncation.RetentionRatioTruncation.Builder postInstructionsTokenLimit(Optional<Long> postInstructionsTokenLimit)
Alias for calling Builder.postInstructionsTokenLimit with
postInstructionsTokenLimit.orElse(null)
.
-
postInstructionsTokenLimit
final RealtimeTruncation.RetentionRatioTruncation.Builder postInstructionsTokenLimit(JsonField<Long> postInstructionsTokenLimit)
Sets Builder.postInstructionsTokenLimit to an arbitrary JSON value.
You should usually call Builder.postInstructionsTokenLimit 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 RealtimeTruncation.RetentionRatioTruncation.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTruncation.RetentionRatioTruncation.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTruncation.RetentionRatioTruncation.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTruncation.RetentionRatioTruncation.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTruncation.RetentionRatioTruncation.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTruncation.RetentionRatioTruncation build()
Returns an immutable instance of RetentionRatioTruncation.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.retentionRatio()
-
-
-
-