CountTokensConfig

@Serializable
data class CountTokensConfig(val httpOptions: HttpOptions? = null, val systemInstruction: Content? = null, val tools: List<Tool>? = null, val generationConfig: GenerationConfig? = null)

Config for the count_tokens method.

Constructors

Link copied to clipboard
constructor(httpOptions: HttpOptions? = null, systemInstruction: Content? = null, tools: List<Tool>? = null, generationConfig: GenerationConfig? = null)

Properties

Link copied to clipboard

Configuration that the model uses to generate the response. Not supported by the Gemini Developer API.

Link copied to clipboard

Used to override HTTP request options.

Link copied to clipboard

Instructions for the model to steer it toward better performance.

Link copied to clipboard
val tools: List<Tool>? = null

Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.