Package com.google.genkit.ai.agent
Class GetSnapshotOptions
java.lang.Object
com.google.genkit.ai.agent.GetSnapshotOptions
Options for retrieving a session snapshot.
Exactly one of snapshotId or sessionId must be set by callers. When
snapshotId is set the store returns that specific snapshot. When sessionId is set the
store resolves and returns the latest leaf snapshot for that session.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GetSnapshotOptions.Builderbuilder()Creates a new builder forGetSnapshotOptions.Returns the session ID whose latest leaf snapshot should be retrieved, ornullif not set.Returns the specific snapshot ID to retrieve, ornullif not set.
-
Method Details
-
getSnapshotId
Returns the specific snapshot ID to retrieve, ornullif not set.- Returns:
- the snapshot ID
-
getSessionId
Returns the session ID whose latest leaf snapshot should be retrieved, ornullif not set.- Returns:
- the session ID
-
builder
Creates a new builder forGetSnapshotOptions.- Returns:
- a new builder
-