Class GetSnapshotOptions.Builder

java.lang.Object
com.google.genkit.ai.agent.GetSnapshotOptions.Builder
Enclosing class:
GetSnapshotOptions

public static final class GetSnapshotOptions.Builder extends Object
Builder for GetSnapshotOptions.
  • Method Details

    • snapshotId

      public GetSnapshotOptions.Builder snapshotId(String snapshotId)
      Sets the specific snapshot ID to retrieve.
      Parameters:
      snapshotId - the snapshot ID
      Returns:
      this builder
    • sessionId

      public GetSnapshotOptions.Builder sessionId(String sessionId)
      Sets the session ID whose latest leaf snapshot should be retrieved.
      Parameters:
      sessionId - the session ID
      Returns:
      this builder
    • build

      public GetSnapshotOptions build()
      Builds a new GetSnapshotOptions.
      Returns:
      a new GetSnapshotOptions