Package com.google.genkit.ai.session
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>
Builder for SessionOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the SessionOptions.initialState(S initialState) Sets the initial state.Sets the session ID.store(SessionStore<S> store) Sets the session store.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
store
Sets the session store.- Parameters:
store- the session store- Returns:
- this builder
-
initialState
Sets the initial state.- Parameters:
initialState- the initial state- Returns:
- this builder
-
sessionId
Sets the session ID.- Parameters:
sessionId- the session ID- Returns:
- this builder
-
build
Builds the SessionOptions.- Returns:
- the built SessionOptions
-