Class: GeminiSession
Gemini Session to manage the connection to the Gemini API
Implements
IGeminiSession
Constructors
new GeminiSession()
new GeminiSession(
options
):GeminiSession
Parameters
• options: GoogleGeminiSessionOptions
Returns
Source
packages/core/src/llm/gemini/base.ts:71
Properties
gemini
private
gemini:GoogleGenerativeAI
Source
packages/core/src/llm/gemini/base.ts:69
Methods
getChatStream()
getChatStream(
result
):GeminiChatStreamResponse
Parameters
• result: GenerateContentStreamResult
Returns
GeminiChatStreamResponse
Implementation of
IGeminiSession.getChatStream