Class ChatSessionHistory
-
- All Implemented Interfaces:
public final class ChatSessionHistory
History retention preferences returned for the session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatSessionHistory.Builder
A builder for ChatSessionHistory.
-
Method Summary
Modifier and Type Method Description final Boolean
enabled()
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.Builder
toBuilder()
final ChatSessionHistory
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatSessionHistory.Builder
builder()
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()
-
builder
final static ChatSessionHistory.Builder builder()
Returns a mutable builder for constructing an instance of ChatSessionHistory.
The following fields are required:
.enabled() .recentThreads()
-
-
-
-