Class Chat.SendOptions

java.lang.Object
com.google.genkit.ai.session.Chat.SendOptions
Enclosing class:
Chat<S>

public static class Chat.SendOptions extends Object
Options for individual send operations.
  • Constructor Details

    • SendOptions

      public SendOptions()
      Default constructor.
  • Method Details

    • getModel

      public String getModel()
      Gets the model name.
      Returns:
      the model name
    • setModel

      public void setModel(String model)
      Sets the model name.
      Parameters:
      model - the model name
    • getTools

      public List<Tool<?,?>> getTools()
      Gets the tools.
      Returns:
      the tools
    • setTools

      public void setTools(List<Tool<?,?>> tools)
      Sets the tools.
      Parameters:
      tools - the tools
    • getMaxTurns

      public Integer getMaxTurns()
      Gets the max turns.
      Returns:
      the max turns
    • setMaxTurns

      public void setMaxTurns(Integer maxTurns)
      Sets the max turns.
      Parameters:
      maxTurns - the max turns
    • getResumeOptions

      public ResumeOptions getResumeOptions()
      Gets the resume options.
      Returns:
      the resume options
    • setResumeOptions

      public void setResumeOptions(ResumeOptions resumeOptions)
      Sets the resume options.
      Parameters:
      resumeOptions - the resume options
    • builder

      public static Chat.SendOptions.Builder builder()
      Creates a builder for SendOptions.
      Returns:
      a new builder