Package com.openai.models.responses
Class ResponseCreateParams.ContextManagement
-
- All Implemented Interfaces:
public final class ResponseCreateParams.ContextManagement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseCreateParams.ContextManagement.BuilderA builder for ContextManagement.
-
Method Summary
Modifier and Type Method Description final Stringtype()The context management entry type. final Optional<Long>compactThreshold()Token threshold at which compaction should be triggered for this entry. final JsonField<String>_type()Returns the raw JSON value of type. final JsonField<Long>_compactThreshold()Returns the raw JSON value of compactThreshold. final Map<String, JsonValue>_additionalProperties()final ResponseCreateParams.ContextManagement.BuildertoBuilder()final ResponseCreateParams.ContextManagementvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseCreateParams.ContextManagement.Builderbuilder()Returns a mutable builder for constructing an instance of ContextManagement. -
-
Method Detail
-
type
final String type()
The context management entry type. Currently only 'compaction' is supported.
-
compactThreshold
final Optional<Long> compactThreshold()
Token threshold at which compaction should be triggered for this entry.
-
_type
final JsonField<String> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_compactThreshold
final JsonField<Long> _compactThreshold()
Returns the raw JSON value of compactThreshold.
Unlike compactThreshold, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseCreateParams.ContextManagement.Builder toBuilder()
-
validate
final ResponseCreateParams.ContextManagement validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseCreateParams.ContextManagement.Builder builder()
Returns a mutable builder for constructing an instance of ContextManagement.
The following fields are required:
.type()
-
-
-
-