Class: Gemini
ToolCallLLM for Gemini
Extends
ToolCallLLM
<GeminiAdditionalChatOptions
>
Constructors
new Gemini()
new Gemini(
init
?):Gemini
Parameters
• init?: GeminiConfig
Returns
Overrides
Defined in
packages/llamaindex/src/llm/gemini/base.ts:193
Properties
maxTokens?
optional
maxTokens:number
Defined in
packages/llamaindex/src/llm/gemini/base.ts:190
model
model:
GEMINI_MODEL
Defined in
packages/llamaindex/src/llm/gemini/base.ts:187
session
session:
IGeminiSession
Defined in
packages/llamaindex/src/llm/gemini/base.ts:191
temperature
temperature:
number
Defined in
packages/llamaindex/src/llm/gemini/base.ts:188
topP
topP:
number
Defined in
packages/llamaindex/src/llm/gemini/base.ts:189
Accessors
metadata
get
metadata():LLMMetadata
Returns
Overrides
Defined in
packages/llamaindex/src/llm/gemini/base.ts:206
supportToolCall
get
supportToolCall():boolean
Returns
boolean
Overrides
Defined in
packages/llamaindex/src/llm/gemini/base.ts:202
Methods
chat()
chat(params)
chat(
params
):Promise
<GeminiChatStreamResponse
>
Get a chat response from the LLM
Parameters
• params: GeminiChatParamsStreaming
Returns
Promise
<GeminiChatStreamResponse
>
Overrides
Defined in
packages/llamaindex/src/llm/gemini/base.ts:287
chat(params)
chat(
params
):Promise
<GeminiChatNonStreamResponse
>
Get a chat response from the LLM
Parameters
• params: GeminiChatParamsNonStreaming
Returns
Promise
<GeminiChatNonStreamResponse
>
Overrides
Defined in
packages/llamaindex/src/llm/gemini/base.ts:288
complete()
complete(params)
complete(
params
):Promise
<AsyncIterable
<CompletionResponse
>>
Get a prompt completion from the LLM
Parameters
• params: LLMCompletionParamsStreaming
Returns
Promise
<AsyncIterable
<CompletionResponse
>>
Overrides
Defined in
packages/llamaindex/src/llm/gemini/base.ts:299
complete(params)
complete(
params
):Promise
<CompletionResponse
>
Get a prompt completion from the LLM
Parameters
• params: LLMCompletionParamsNonStreaming
Returns
Promise
<CompletionResponse
>
Overrides
Defined in
packages/llamaindex/src/llm/gemini/base.ts:302
nonStreamChat()
protected
nonStreamChat(params
):Promise
<GeminiChatNonStreamResponse
>
Parameters
• params: GeminiChatParamsNonStreaming
Returns
Promise
<GeminiChatNonStreamResponse
>
Defined in
packages/llamaindex/src/llm/gemini/base.ts:217
streamChat()
protected
streamChat(params
):GeminiChatStreamResponse
Parameters
• params: GeminiChatParamsStreaming
Returns
GeminiChatStreamResponse