Session
data class Session(val key: SessionKey, val state: State = State(), val events: MutableList<Event> = mutableListOf(), var lastUpdateTime: Instant = Instant.fromEpochMilliseconds(0))
A Session object that encapsulates the State and Events of a session.
Constructors
Link copied to clipboard
constructor(key: SessionKey, state: State = State(), events: MutableList<Event> = mutableListOf(), lastUpdateTime: Instant = Instant.fromEpochMilliseconds(0))
Properties
Link copied to clipboard
The events of the session, e.g. user input, model response, function call/response, etc.
Link copied to clipboard
The composite identifier of the session (SessionKey.appName, SessionKey.userId, SessionKey.id).
Link copied to clipboard
The last update time of the session. Defaults to Instant.EPOCH.