Class CountTokensConfig.Builder
-
- All Implemented Interfaces:
public abstract class CountTokensConfig.BuilderBuilder for CountTokensConfig.
-
-
Constructor Summary
Constructors Constructor Description CountTokensConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract CountTokensConfig.BuilderhttpOptions(HttpOptions httpOptions)Setter for httpOptions. CountTokensConfig.BuilderhttpOptions(HttpOptions.Builder httpOptionsBuilder)Setter for httpOptions builder. CountTokensConfig.BuilderclearHttpOptions()Clears the value of httpOptions field. abstract CountTokensConfig.BuildersystemInstruction(Content systemInstruction)Setter for systemInstruction. CountTokensConfig.BuildersystemInstruction(Content.Builder systemInstructionBuilder)Setter for systemInstruction builder. CountTokensConfig.BuilderclearSystemInstruction()Clears the value of systemInstruction field. abstract CountTokensConfig.Buildertools(List<Tool> tools)Setter for tools. CountTokensConfig.Buildertools(Array<Tool> tools)Setter for tools. CountTokensConfig.Buildertools(Array<Tool.Builder> toolsBuilders)Setter for tools builder. CountTokensConfig.BuilderclearTools()Clears the value of tools field. abstract CountTokensConfig.BuildergenerationConfig(GenerationConfig generationConfig)Setter for generationConfig. CountTokensConfig.BuildergenerationConfig(GenerationConfig.Builder generationConfigBuilder)Setter for generationConfig builder. CountTokensConfig.BuilderclearGenerationConfig()Clears the value of generationConfig field. abstract CountTokensConfigbuild()-
-
Method Detail
-
httpOptions
abstract CountTokensConfig.Builder httpOptions(HttpOptions httpOptions)
Setter for httpOptions.
httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue() CountTokensConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder)
Setter for httpOptions builder.
httpOptions: Used to override HTTP request options.
-
clearHttpOptions
@CanIgnoreReturnValue() CountTokensConfig.Builder clearHttpOptions()
Clears the value of httpOptions field.
-
systemInstruction
abstract CountTokensConfig.Builder systemInstruction(Content systemInstruction)
Setter for systemInstruction.
systemInstruction: Instructions for the model to steer it toward better performance.
-
systemInstruction
@CanIgnoreReturnValue() CountTokensConfig.Builder systemInstruction(Content.Builder systemInstructionBuilder)
Setter for systemInstruction builder.
systemInstruction: Instructions for the model to steer it toward better performance.
-
clearSystemInstruction
@CanIgnoreReturnValue() CountTokensConfig.Builder clearSystemInstruction()
Clears the value of systemInstruction field.
-
tools
abstract CountTokensConfig.Builder tools(List<Tool> tools)
Setter for tools.
tools: Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.
-
tools
@CanIgnoreReturnValue() CountTokensConfig.Builder tools(Array<Tool> tools)
Setter for tools.
tools: Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.
-
tools
@CanIgnoreReturnValue() CountTokensConfig.Builder tools(Array<Tool.Builder> toolsBuilders)
Setter for tools builder.
tools: Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.
-
clearTools
@CanIgnoreReturnValue() CountTokensConfig.Builder clearTools()
Clears the value of tools field.
-
generationConfig
abstract CountTokensConfig.Builder generationConfig(GenerationConfig generationConfig)
Setter for generationConfig.
generationConfig: Configuration that the model uses to generate the response. Not supported by the Gemini Developer API.
-
generationConfig
@CanIgnoreReturnValue() CountTokensConfig.Builder generationConfig(GenerationConfig.Builder generationConfigBuilder)
Setter for generationConfig builder.
generationConfig: Configuration that the model uses to generate the response. Not supported by the Gemini Developer API.
-
clearGenerationConfig
@CanIgnoreReturnValue() CountTokensConfig.Builder clearGenerationConfig()
Clears the value of generationConfig field.
-
build
abstract CountTokensConfig build()
-
-
-
-