Class: Gemini
ToolCallLLM for Gemini
Extends
ToolCallLLM
<GeminiAdditionalChatOptions
>
Constructors
new Gemini()
new Gemini(
init
?):Gemini
Parameters
• init?: GeminiConfig
Returns
Overrides
Source
packages/llamaindex/src/llm/gemini/base.ts:188
Properties
maxTokens?
optional
maxTokens:number
Source
packages/llamaindex/src/llm/gemini/base.ts:185
model
model:
GEMINI_MODEL
Source
packages/llamaindex/src/llm/gemini/base.ts:182
session
session:
IGeminiSession
Source
packages/llamaindex/src/llm/gemini/base.ts:186
temperature
temperature:
number
Source
packages/llamaindex/src/llm/gemini/base.ts:183
topP
topP:
number
Source
packages/llamaindex/src/llm/gemini/base.ts:184
Accessors
metadata
get
metadata():LLMMetadata
Returns
Source
packages/llamaindex/src/llm/gemini/base.ts:201
supportToolCall
get
supportToolCall():boolean
Returns
boolean
Source
packages/llamaindex/src/llm/gemini/base.ts:197
Methods
chat()
chat(params)
chat(
params
):Promise
<GeminiChatStreamResponse
>
Parameters
• params: GeminiChatParamsStreaming
Returns
Promise
<GeminiChatStreamResponse
>
Overrides
Source
packages/llamaindex/src/llm/gemini/base.ts:266
chat(params)
chat(
params
):Promise
<GeminiChatNonStreamResponse
>
Parameters
• params: GeminiChatParamsNonStreaming
Returns
Promise
<GeminiChatNonStreamResponse
>
Overrides
Source
packages/llamaindex/src/llm/gemini/base.ts:267
complete()
complete(params)
complete(
params
):Promise
<AsyncIterable
<CompletionResponse
>>
Parameters
• params: LLMCompletionParamsStreaming
Returns
Promise
<AsyncIterable
<CompletionResponse
>>
Overrides
Source
packages/llamaindex/src/llm/gemini/base.ts:278
complete(params)
complete(
params
):Promise
<CompletionResponse
>
Parameters
• params: LLMCompletionParamsNonStreaming
Returns
Promise
<CompletionResponse
>
Overrides
Source
packages/llamaindex/src/llm/gemini/base.ts:281
nonStreamChat()
protected
nonStreamChat(params
):Promise
<GeminiChatNonStreamResponse
>
Parameters
• params: GeminiChatParamsNonStreaming
Returns
Promise
<GeminiChatNonStreamResponse
>
Source
packages/llamaindex/src/llm/gemini/base.ts:212
streamChat()
protected
streamChat(params
):GeminiChatStreamResponse
Parameters
• params: GeminiChatParamsStreaming
Returns
GeminiChatStreamResponse