Class ChatSessionHistory
-
- All Implemented Interfaces:
public final class ChatSessionHistoryHistory retention preferences returned for the session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatSessionHistory.BuilderA builder for ChatSessionHistory.
-
Method Summary
Modifier and Type Method Description final Booleanenabled()Indicates if chat history is persisted for the session. final Optional<Long>recentThreads()Number of prior threads surfaced in history views. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<Long>_recentThreads()Returns the raw JSON value of recentThreads. final Map<String, JsonValue>_additionalProperties()final ChatSessionHistory.BuildertoBuilder()final ChatSessionHistoryvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatSessionHistory.Builderbuilder()Returns a mutable builder for constructing an instance of ChatSessionHistory. -
-
Method Detail
-
recentThreads
final Optional<Long> recentThreads()
Number of prior threads surfaced in history views. Defaults to null when all history is retained.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_recentThreads
final JsonField<Long> _recentThreads()
Returns the raw JSON value of recentThreads.
Unlike recentThreads, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatSessionHistory.Builder toBuilder()
-
validate
final ChatSessionHistory 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 ChatSessionHistory.Builder builder()
Returns a mutable builder for constructing an instance of ChatSessionHistory.
The following fields are required:
.enabled() .recentThreads()
-
-
-
-