Package com.google.genkit.ai.session
Class Chat.SendOptions.Builder
java.lang.Object
com.google.genkit.ai.session.Chat.SendOptions.Builder
- Enclosing class:
Chat.SendOptions
Builder for SendOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the SendOptions.Sets the max turns.Sets the model name.resumeOptions(ResumeOptions resumeOptions) Sets the resume options for resuming after an interrupt.Sets the tools.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
Sets the model name.- Parameters:
model- the model name- Returns:
- this builder
-
tools
Sets the tools.- Parameters:
tools- the tools- Returns:
- this builder
-
maxTurns
Sets the max turns.- Parameters:
maxTurns- the max turns- Returns:
- this builder
-
resumeOptions
Sets the resume options for resuming after an interrupt.- Parameters:
resumeOptions- the resume options- Returns:
- this builder
-
build
Builds the SendOptions.- Returns:
- the built SendOptions
-