Skip to main content

Class: GeminiOptions

Defined in: src/ai/AIOptions.ts:21

Constructors​

Constructor​

new GeminiOptions(): GeminiOptions

Returns​

GeminiOptions

Properties​

apiKey​

apiKey: string = ''

Defined in: src/ai/AIOptions.ts:22


config​

config: GeminiInteractionConfig = {}

Defined in: src/ai/AIOptions.ts:35


enabled​

enabled: boolean = false

Defined in: src/ai/AIOptions.ts:32


keyValid​

keyValid: boolean = false

Defined in: src/ai/AIOptions.ts:31


liveModel​

liveModel: string = GEMINI_DEFAULT_LIVE_MODEL

Defined in: src/ai/AIOptions.ts:34


model​

model: string = GEMINI_DEFAULT_FLASH_MODEL

Defined in: src/ai/AIOptions.ts:33


tokenProvider?​

optional tokenProvider: GeminiTokenProvider

Defined in: src/ai/AIOptions.ts:29

Optional async provider for Gemini Live ephemeral tokens. The returned string should be the name from authTokens.create() (for example, auth_tokens/...). It is called for every new Live session; it does not replace apiKey for queries or image generation.


urlParam​

urlParam: string = 'geminiKey'

Defined in: src/ai/AIOptions.ts:30