GeminiResponse

data class GeminiResponse(val generatedText: String, val totalTokensUsed: Int)

Condensed data of the Gemini API HTTP body response GenerateContentResponse

Parameters

totalTokensUsed

= promptTokenCount + responseTokenCount

Constructors

Link copied to clipboard
constructor(generatedText: String, totalTokensUsed: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard