Package com.google.genkit.ai.agent
Class GetSnapshotOptions.Builder
java.lang.Object
com.google.genkit.ai.agent.GetSnapshotOptions.Builder
- Enclosing class:
GetSnapshotOptions
Builder for
GetSnapshotOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newGetSnapshotOptions.Sets the session ID whose latest leaf snapshot should be retrieved.snapshotId(String snapshotId) Sets the specific snapshot ID to retrieve.
-
Method Details
-
snapshotId
Sets the specific snapshot ID to retrieve.- Parameters:
snapshotId- the snapshot ID- Returns:
- this builder
-
sessionId
Sets the session ID whose latest leaf snapshot should be retrieved.- Parameters:
sessionId- the session ID- Returns:
- this builder
-
build
Builds a newGetSnapshotOptions.- Returns:
- a new
GetSnapshotOptions
-