Class: GeminiVertexSession
Implements
IGeminiSession
Constructors
new GeminiVertexSession()
new GeminiVertexSession(
options
?):GeminiVertexSession
Parameters
• options?: Partial
<VertexGeminiSessionOptions
>
Returns
Defined in
packages/llamaindex/src/llm/gemini/vertex.ts:43
Methods
getChatStream()
getChatStream(
result
):GeminiChatStreamResponse
Parameters
• result: StreamGenerateContentResult
Returns
GeminiChatStreamResponse
Implementation of
IGeminiSession.getChatStream
Defined in
packages/llamaindex/src/llm/gemini/vertex.ts:91
getCompletionStream()
getCompletionStream(
result
):AsyncIterable
<CompletionResponse
,any
,any
>
Parameters
• result: StreamGenerateContentResult
Returns
AsyncIterable
<CompletionResponse
, any
, any
>
Implementation of
IGeminiSession.getCompletionStream
Defined in
packages/llamaindex/src/llm/gemini/vertex.ts:107
getGenerativeModel()
getGenerativeModel(
metadata
):GenerativeModelPreview
|GenerativeModel
Parameters
• metadata: ModelParams
Returns
GenerativeModelPreview
| GenerativeModel
Implementation of
IGeminiSession.getGenerativeModel
Defined in
packages/llamaindex/src/llm/gemini/vertex.ts:59
getResponseText()
getResponseText(
response
):string
Parameters
• response: GenerateContentResponse
Returns
string
Implementation of
IGeminiSession.getResponseText
Defined in
packages/llamaindex/src/llm/gemini/vertex.ts:74
getToolsFromResponse()
getToolsFromResponse(
response
):undefined
|ToolCall
[]
Parameters
• response: GenerateContentResponse
Returns
undefined
| ToolCall
[]
Implementation of
IGeminiSession.getToolsFromResponse