Class CountTokensConfig.Builder
- Enclosing class:
- CountTokensConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CountTokensConfig
build()
abstract CountTokensConfig.Builder
generationConfig
(GenerationConfig generationConfig) Setter for generationConfig.generationConfig
(GenerationConfig.Builder generationConfigBuilder) Setter for generationConfig builder.abstract CountTokensConfig.Builder
httpOptions
(HttpOptions httpOptions) Setter for httpOptions.httpOptions
(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract CountTokensConfig.Builder
systemInstruction
(Content systemInstruction) Setter for systemInstruction.systemInstruction
(Content.Builder systemInstructionBuilder) Setter for systemInstruction builder.Setter for tools.tools
(Tool.Builder... toolsBuilders) Setter for tools builder.abstract CountTokensConfig.Builder
Setter for tools.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
systemInstruction
Setter for systemInstruction.systemInstruction: Instructions for the model to steer it toward better performance.
-
systemInstruction
Setter for systemInstruction builder.systemInstruction: Instructions for the model to steer it toward better performance.
-
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
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
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.
-
generationConfig
Setter for generationConfig.generationConfig: Configuration that the model uses to generate the response. Not supported by the Gemini Developer API.
-
generationConfig
Setter for generationConfig builder.generationConfig: Configuration that the model uses to generate the response. Not supported by the Gemini Developer API.
-
build
-