Uses of Class
com.google.genkit.ai.agent.SessionStoreOptions
Packages that use SessionStoreOptions
Package
Description
This package provides types for the Genkit agents feature, including enums and models for agent
state snapshots, agent execution lifecycle, and agent-related operations.
DynamoDB-backed agent session persistence.
Azure Cosmos DB-backed agent session persistence.
Firestore-backed session store for Genkit agents.
MongoDB-backed agent session persistence.
PostgreSQL-backed agent session persistence.
-
Uses of SessionStoreOptions in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return SessionStoreOptionsModifier and TypeMethodDescriptionSessionStoreOptions.Builder.build()Builds a newSessionStoreOptions.static SessionStoreOptionsSessionStoreOptions.empty()Returns a default emptySessionStoreOptions.CustomAgentConfig.getStoreOptions()Returns the options forwarded to store operations.Methods in com.google.genkit.ai.agent with parameters of type SessionStoreOptionsModifier and TypeMethodDescriptionFileSessionStore.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions options) Subscribes to status changes for the snapshot identified bysnapshotId.InMemorySessionStore.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions options) Subscribes to status changes for the snapshot identified bysnapshotId.SnapshotSubscriber.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions options) Subscribes to status changes for the snapshot identified bysnapshotId.FileSessionStore.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions options) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.InMemorySessionStore.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions options) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.SnapshotWriter.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions options) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.CustomAgentConfig.Builder.storeOptions(SessionStoreOptions storeOptions) Sets the options forwarded to store operations.Constructors in com.google.genkit.ai.agent with parameters of type SessionStoreOptionsModifierConstructorDescriptionAgent(BidiActionImpl<AgentInput, AgentOutput<S>, AgentStreamChunk, AgentInit<S>> impl, SessionStore<S> store, boolean serverManaged, Action<?, ?, ?> snapshotAction, Action<?, ?, ?> abortAction, ClientTransform<S> clientTransform, SessionStoreOptions opts, String name, String description, Registry registry) Constructs an Agent.SessionRunner(Session<S> session, SessionStore<S> store, SessionStoreOptions opts) Constructs a new SessionRunner.SessionRunner(Session<S> session, SessionStore<S> store, SessionStoreOptions opts, String seedSnapshotId) Constructs a new SessionRunner seeded with the id of the snapshot the session was resumed from. -
Uses of SessionStoreOptions in com.google.genkit.ai.agent.internal
Methods in com.google.genkit.ai.agent.internal with parameters of type SessionStoreOptionsModifier and TypeMethodDescriptionstatic <S> StringDetachController.detach(SessionRunner<S> runner, SessionStore<S> store, SessionStoreOptions opts, StreamEmitter<S> emitter, AtomicBoolean abortSignal, DetachController.DetachedTurn<S> turnBody) Handles a detached turn for a server-managed agent.static <S> SessionResolver.Resolution<S> SessionResolver.resolve(SessionStore<S> store, boolean serverManaged, AgentInit<S> init, SessionStoreOptions opts) -
Uses of SessionStoreOptions in com.google.genkit.plugins.awsbedrock.session
Methods in com.google.genkit.plugins.awsbedrock.session that return types with arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionDynamoDbSessionStoreOptions.getSnapshotPathPrefix()Returns the function that derives the per-tenant partition-key prefix from the per-request store options (defaulto -> "global").Methods in com.google.genkit.plugins.awsbedrock.session with parameters of type SessionStoreOptionsModifier and TypeMethodDescriptionDynamoDbSessionStore.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions storeOpts) Subscribes to status changes for the snapshot identified bysnapshotId.DynamoDbSessionStore.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions storeOpts) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.Method parameters in com.google.genkit.plugins.awsbedrock.session with type arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionDynamoDbSessionStoreOptions.Builder.snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant partition-key prefix. -
Uses of SessionStoreOptions in com.google.genkit.plugins.azurefoundry.session
Methods in com.google.genkit.plugins.azurefoundry.session that return types with arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionCosmosSessionStoreOptions.getSnapshotPathPrefix()Returns the function that derives the per-tenant partition-key prefix from the per-request store options (defaulto -> "global").Methods in com.google.genkit.plugins.azurefoundry.session with parameters of type SessionStoreOptionsModifier and TypeMethodDescriptionCosmosSessionStore.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions storeOpts) Subscribes to status changes for the snapshot identified bysnapshotId.CosmosSessionStore.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions storeOpts) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.Method parameters in com.google.genkit.plugins.azurefoundry.session with type arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionCosmosSessionStoreOptions.Builder.snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant partition-key prefix. -
Uses of SessionStoreOptions in com.google.genkit.plugins.firebase.session
Methods in com.google.genkit.plugins.firebase.session that return types with arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionFirestoreSessionStoreOptions.getSnapshotPathPrefix()Returns the function that derives the per-tenant path prefix from the per-request store options (defaulto -> "global").Methods in com.google.genkit.plugins.firebase.session with parameters of type SessionStoreOptionsModifier and TypeMethodDescriptionFirestoreSessionStore.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions options) Subscribes to status changes for the snapshot identified bysnapshotId.FirestoreSessionStore.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions options) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.Method parameters in com.google.genkit.plugins.firebase.session with type arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionFirestoreSessionStoreOptions.Builder.snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant path prefix from the per-request store options. -
Uses of SessionStoreOptions in com.google.genkit.plugins.mongodb.session
Methods in com.google.genkit.plugins.mongodb.session that return types with arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionMongoSessionStoreOptions.getSnapshotPathPrefix()Returns the function that derives the per-tenant prefix from the per-request store options (defaulto -> "global").Methods in com.google.genkit.plugins.mongodb.session with parameters of type SessionStoreOptionsModifier and TypeMethodDescriptionMongoSessionStore.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions storeOpts) Subscribes to status changes for the snapshot identified bysnapshotId.MongoSessionStore.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions storeOpts) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.Method parameters in com.google.genkit.plugins.mongodb.session with type arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionMongoSessionStoreOptions.Builder.snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant prefix. -
Uses of SessionStoreOptions in com.google.genkit.plugins.postgresql.session
Methods in com.google.genkit.plugins.postgresql.session that return types with arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionPostgresSessionStoreOptions.getSnapshotPathPrefix()Returns the function that derives the per-tenant prefix from the per-request store options (defaulto -> "global").Methods in com.google.genkit.plugins.postgresql.session with parameters of type SessionStoreOptionsModifier and TypeMethodDescriptionPostgresSessionStore.onSnapshotStateChange(String snapshotId, Consumer<SessionSnapshot<?>> cb, SessionStoreOptions storeOpts) Subscribes to status changes for the snapshot identified bysnapshotId.PostgresSessionStore.saveSnapshot(String snapshotId, SnapshotMutator<S> mutator, SessionStoreOptions storeOpts) Atomically reads the snapshot identified bysnapshotId(or creates a new one), appliesmutator, and persists the result.Method parameters in com.google.genkit.plugins.postgresql.session with type arguments of type SessionStoreOptionsModifier and TypeMethodDescriptionPostgresSessionStoreOptions.Builder.snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant prefix.