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