Class Chat.SendOptions.Builder

java.lang.Object
com.google.genkit.ai.session.Chat.SendOptions.Builder
Enclosing class:
Chat.SendOptions

public static class Chat.SendOptions.Builder extends Object
Builder for SendOptions.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • model

      public Chat.SendOptions.Builder model(String model)
      Sets the model name.
      Parameters:
      model - the model name
      Returns:
      this builder
    • tools

      public Chat.SendOptions.Builder tools(List<Tool<?,?>> tools)
      Sets the tools.
      Parameters:
      tools - the tools
      Returns:
      this builder
    • maxTurns

      public Chat.SendOptions.Builder maxTurns(Integer maxTurns)
      Sets the max turns.
      Parameters:
      maxTurns - the max turns
      Returns:
      this builder
    • resumeOptions

      public Chat.SendOptions.Builder resumeOptions(ResumeOptions resumeOptions)
      Sets the resume options for resuming after an interrupt.
      Parameters:
      resumeOptions - the resume options
      Returns:
      this builder
    • build

      public Chat.SendOptions build()
      Builds the SendOptions.
      Returns:
      the built SendOptions