Class: Gemini
ToolCallLLM for Gemini
Hierarchy
-
ToolCallLLM
<GeminiAdditionalChatOptions
>↳
Gemini
Constructors
constructor
• new Gemini(init?
): Gemini
Parameters
Name | Type |
---|---|
init? | GeminiConfig |
Returns
Overrides
ToolCallLLM<GeminiAdditionalChatOptions>.constructor
Defined in
packages/core/src/llm/gemini.ts:233
Properties
maxTokens
• Optional
maxTokens: number
Defined in
packages/core/src/llm/gemini.ts:230
model
• model: GEMINI_MODEL
Defined in
packages/core/src/llm/gemini.ts:227
session
• session: GeminiSession
Defined in
packages/core/src/llm/gemini.ts:231
temperature
• temperature: number
Defined in
packages/core/src/llm/gemini.ts:228
topP
• topP: number
Defined in
packages/core/src/llm/gemini.ts:229
Accessors
metadata
• get
metadata(): LLMMetadata
Returns
Overrides
ToolCallLLM.metadata
Defined in
packages/core/src/llm/gemini.ts:246
supportToolCall
• get
supportToolCall(): boolean
Returns
boolean
Overrides
ToolCallLLM.supportToolCall
Defined in
packages/core/src/llm/gemini.ts:242
Methods
chat
▸ chat(params
): Promise
<GeminiChatStreamResponse
>
Parameters
Name | Type |
---|---|
params | GeminiChatParamsStreaming |
Returns
Promise
<GeminiChatStreamResponse
>
Overrides
ToolCallLLM.chat
Defined in
packages/core/src/llm/gemini.ts:311
▸ chat(params
): Promise
<GeminiChatNonStreamResponse
>
Parameters
Name | Type |
---|---|
params | GeminiChatParamsNonStreaming |
Returns
Promise
<GeminiChatNonStreamResponse
>
Overrides
ToolCallLLM.chat
Defined in
packages/core/src/llm/gemini.ts:312
complete
▸ complete(params
): Promise
<AsyncIterable
<CompletionResponse
>>
Parameters
Name | Type |
---|---|
params | LLMCompletionParamsStreaming |
Returns
Promise
<AsyncIterable
<CompletionResponse
>>
Overrides
ToolCallLLM.complete
Defined in
packages/core/src/llm/gemini.ts:323
▸ complete(params
): Promise
<CompletionResponse
>
Parameters
Name | Type |
---|---|
params | LLMCompletionParamsNonStreaming |
Returns
Promise
<CompletionResponse
>
Overrides
ToolCallLLM.complete
Defined in
packages/core/src/llm/gemini.ts:326
nonStreamChat
▸ nonStreamChat(params
): Promise
<GeminiChatNonStreamResponse
>
Parameters
Name | Type |
---|---|
params | GeminiChatParamsNonStreaming |
Returns
Promise
<GeminiChatNonStreamResponse
>
Defined in
packages/core/src/llm/gemini.ts:282
prepareChat
▸ prepareChat(params
): Object
Parameters
Name | Type |
---|---|
params | GeminiChatParamsStreaming | GeminiChatParamsNonStreaming |
Returns
Object
Name | Type |
---|---|
chat | ChatSession |
messageContent | Part [] |
Defined in
packages/core/src/llm/gemini.ts:257
streamChat
▸ streamChat(params
): GeminiChatStreamResponse
Parameters
Name | Type |
---|---|
params | GeminiChatParamsStreaming |
Returns
GeminiChatStreamResponse