Class: GeminiVertexSession
Implements
IGeminiSession
Constructors
new GeminiVertexSession()
new GeminiVertexSession(
options
?):GeminiVertexSession
Parameters
• options?: Partial
<VertexGeminiSessionOptions
>
Returns
Source
packages/llamaindex/src/llm/gemini/vertex.ts:43
Properties
preview
private
preview:boolean
=false
Source
packages/llamaindex/src/llm/gemini/vertex.ts:41
vertex
private
vertex:VertexAI
Source
packages/llamaindex/src/llm/gemini/vertex.ts:40
Methods
getChatStream()
getChatStream(
result
):GeminiChatStreamResponse
Parameters
• result: StreamGenerateContentResult
Returns
GeminiChatStreamResponse
Implementation of
IGeminiSession.getChatStream
Source
packages/llamaindex/src/llm/gemini/vertex.ts:83
getCompletionStream()
getCompletionStream(
result
):AsyncIterable
<CompletionResponse
>
Parameters
• result: StreamGenerateContentResult
Returns
AsyncIterable
<CompletionResponse
>
Implementation of
IGeminiSession.getCompletionStream
Source
packages/llamaindex/src/llm/gemini/vertex.ts:99
getGenerativeModel()
getGenerativeModel(
metadata
):GenerativeModelPreview
|GenerativeModel
Parameters
• metadata: ModelParams
Returns
GenerativeModelPreview
| GenerativeModel
Implementation of
IGeminiSession.getGenerativeModel
Source
packages/llamaindex/src/llm/gemini/vertex.ts:59
getResponseText()
getResponseText(
response
):string
Parameters
• response: GenerateContentResponse
Returns
string
Implementation of
IGeminiSession.getResponseText
Source
packages/llamaindex/src/llm/gemini/vertex.ts:66
getToolsFromResponse()
getToolsFromResponse(
response
):undefined
|ToolCall
[]
Parameters
• response: GenerateContentResponse
Returns
undefined
| ToolCall
[]
Implementation of
IGeminiSession.getToolsFromResponse