# Uses of Class
com.google.adk.sessions.SessionKey

Packages that use SessionKey
Package
Description
com.google.adk.artifacts
com.google.adk.runner
com.google.adk.sessions

- ## Uses of SessionKey in com.google.adk.artifacts

  Methods in com.google.adk.artifacts with parameters of type SessionKey
  Modifier and Type
  Method
  Description
  `default io.reactivex.rxjava3.core.Completable`
  BaseArtifactService.`deleteArtifact(SessionKey sessionKey, String filename)`
  `default io.reactivex.rxjava3.core.Single<ListArtifactsResponse>`
  BaseArtifactService.`listArtifactKeys(SessionKey sessionKey)`
  `default io.reactivex.rxjava3.core.Single<com.google.common.collect.ImmutableList<Integer>>`
  BaseArtifactService.`listVersions(SessionKey sessionKey, String filename)`
  `default io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Part>`
  BaseArtifactService.`loadArtifact(SessionKey sessionKey, String filename)`
  Loads the latest version of an artifact from the service.
  `default io.reactivex.rxjava3.core.Maybe<com.google.genai.types.Part>`
  BaseArtifactService.`loadArtifact(SessionKey sessionKey, String filename, int version)`
  `default io.reactivex.rxjava3.core.Single<com.google.genai.types.Part>`
  BaseArtifactService.`saveAndReloadArtifact(SessionKey sessionKey, String filename, com.google.genai.types.Part artifact)`
  Saves an artifact and returns it with fileData if available.
  `default io.reactivex.rxjava3.core.Single<Integer>`
  BaseArtifactService.`saveArtifact(SessionKey sessionKey, String filename, com.google.genai.types.Part artifact)`
  Saves an artifact.

- ## Uses of SessionKey in com.google.adk.runner

  Methods in com.google.adk.runner with parameters of type SessionKey
  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String,Object> stateDelta)`
  See `Runner.runAsync(String, String, Content, RunConfig, Map)`.
  `io.reactivex.rxjava3.core.Flowable<Event>`
  Runner.`runLive(SessionKey sessionKey, LiveRequestQueue liveRequestQueue, RunConfig runConfig)`
  Retrieves the session and runs the agent in live mode.

- ## Uses of SessionKey in com.google.adk.sessions

  Methods in com.google.adk.sessions that return SessionKey
  Modifier and Type
  Method
  Description
  `static SessionKey`
  SessionKey.`fromJson(String json)`
  `SessionKey`
  Session.`sessionKey()`
  Returns the session key.
  Methods in com.google.adk.sessions with parameters of type SessionKey
  Modifier and Type
  Method
  Description
  `static Session.Builder`
  Session.`builder(SessionKey sessionKey)`
  Creates a new `Session.Builder` with the given session key.
  `default io.reactivex.rxjava3.core.Single<Session>`
  BaseSessionService.`createSession(SessionKey sessionKey)`
  Creates a new session with the specified application name and user ID, using a default state (null) and allowing the service to generate a unique session ID.
  `default io.reactivex.rxjava3.core.Single<Session>`
  BaseSessionService.`createSession(SessionKey sessionKey, @Nullable Map<String,Object> state)`
  Creates a new session with the specified parameters.
  `default io.reactivex.rxjava3.core.Completable`
  BaseSessionService.`deleteSession(SessionKey sessionKey)`
  Deletes a specific session.
  `default io.reactivex.rxjava3.core.Maybe<Session>`
  BaseSessionService.`getSession(SessionKey sessionKey, @Nullable GetSessionConfig config)`
  Retrieves a specific session, optionally filtering the events included.
  `default io.reactivex.rxjava3.core.Single<ListEventsResponse>`
  BaseSessionService.`listEvents(SessionKey sessionKey)`
  Lists the events within a specific session.
  `default io.reactivex.rxjava3.core.Single<ListSessionsResponse>`
  BaseSessionService.`listSessions(SessionKey sessionKey)`
  Lists sessions associated with a specific application and user.
  `Session.Builder`
  Session.Builder.`sessionKey(SessionKey sessionKey)`
  Sets the session key.
  Constructors in com.google.adk.sessions with parameters of type SessionKey
  Modifier
  Constructor
  Description
  ``
  `Builder(SessionKey sessionKey)`
  Creates a new `Session.Builder` with the given session key.