Class RealtimeTruncationRetentionRatio.Builder
-
- All Implemented Interfaces:
public final class RealtimeTruncationRetentionRatio.Builder
A builder for RealtimeTruncationRetentionRatio.
-
-
Method Summary
-
-
Method Detail
-
retentionRatio
final RealtimeTruncationRetentionRatio.Builder retentionRatio(Double retentionRatio)
Fraction of post-instruction conversation tokens to retain (0.0 - 1.0) when the conversation exceeds the input token limit.
-
retentionRatio
final RealtimeTruncationRetentionRatio.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 RealtimeTruncationRetentionRatio.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.
-
additionalProperties
final RealtimeTruncationRetentionRatio.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTruncationRetentionRatio.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTruncationRetentionRatio.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTruncationRetentionRatio.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTruncationRetentionRatio.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTruncationRetentionRatio build()
Returns an immutable instance of RealtimeTruncationRetentionRatio.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.retentionRatio()
-
-
-
-