Package com.google.genkit.ai.session
Class Chat.SendOptions
java.lang.Object
com.google.genkit.ai.session.Chat.SendOptions
Options for individual send operations.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Chat.SendOptions.Builderbuilder()Creates a builder for SendOptions.Gets the max turns.getModel()Gets the model name.Gets the resume options.getTools()Gets the tools.voidsetMaxTurns(Integer maxTurns) Sets the max turns.voidSets the model name.voidsetResumeOptions(ResumeOptions resumeOptions) Sets the resume options.voidSets the tools.
-
Constructor Details
-
SendOptions
public SendOptions()Default constructor.
-
-
Method Details
-
getModel
Gets the model name.- Returns:
- the model name
-
setModel
Sets the model name.- Parameters:
model- the model name
-
getTools
Gets the tools.- Returns:
- the tools
-
setTools
Sets the tools.- Parameters:
tools- the tools
-
getMaxTurns
Gets the max turns.- Returns:
- the max turns
-
setMaxTurns
Sets the max turns.- Parameters:
maxTurns- the max turns
-
getResumeOptions
Gets the resume options.- Returns:
- the resume options
-
setResumeOptions
Sets the resume options.- Parameters:
resumeOptions- the resume options
-
builder
Creates a builder for SendOptions.- Returns:
- a new builder
-