Class SessionOptions.Builder<S>

java.lang.Object
com.google.genkit.ai.session.SessionOptions.Builder<S>
Type Parameters:
S - the state type
Enclosing class:
SessionOptions<S>

public static class SessionOptions.Builder<S> extends Object
Builder for SessionOptions.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • store

      public SessionOptions.Builder<S> store(SessionStore<S> store)
      Sets the session store.
      Parameters:
      store - the session store
      Returns:
      this builder
    • initialState

      public SessionOptions.Builder<S> initialState(S initialState)
      Sets the initial state.
      Parameters:
      initialState - the initial state
      Returns:
      this builder
    • sessionId

      public SessionOptions.Builder<S> sessionId(String sessionId)
      Sets the session ID.
      Parameters:
      sessionId - the session ID
      Returns:
      this builder
    • build

      public SessionOptions<S> build()
      Builds the SessionOptions.
      Returns:
      the built SessionOptions