Class: GeminiVertexSession
Implements
IGeminiSession
Constructors
new GeminiVertexSession()
new GeminiVertexSession(
options
?):GeminiVertexSession
Parameters
• options?: Partial
<VertexGeminiSessionOptions
>
Returns
Source
packages/core/src/llm/gemini/vertex.ts:38
Properties
preview
private
preview:boolean
=false
Source
packages/core/src/llm/gemini/vertex.ts:36
vertex
private
vertex:VertexAI
Source
packages/core/src/llm/gemini/vertex.ts:35
Methods
getChatStream()
getChatStream(
result
):GeminiChatStreamResponse
Parameters
• result: StreamGenerateContentResult
Returns
GeminiChatStreamResponse
Implementation of
IGeminiSession.getChatStream
Source
packages/core/src/llm/gemini/vertex.ts:65
getCompletionStream()
getCompletionStream(
result
):AsyncIterable
<CompletionResponse
>
Parameters
• result: StreamGenerateContentResult
Returns
AsyncIterable
<CompletionResponse
>
Implementation of
IGeminiSession.getCompletionStream
Source
packages/core/src/llm/gemini/vertex.ts:73
getGenerativeModel()
getGenerativeModel(
metadata
):GenerativeModelPreview
|GenerativeModel
Parameters
• metadata: ModelParams
Returns
GenerativeModelPreview
| GenerativeModel
Implementation of
IGeminiSession.getGenerativeModel
Source
packages/core/src/llm/gemini/vertex.ts:54
getResponseText()
getResponseText(
response
):string
Parameters
• response: GenerateContentResponse
Returns
string
Implementation of
IGeminiSession.getResponseText