انتقل إلى المحتوى الرئيسي

Class: Gemini

ToolCallLLM for Gemini

Hierarchy

  • ToolCallLLM<GeminiAdditionalChatOptions>

    Gemini

Constructors

constructor

new Gemini(init?): Gemini

Parameters

NameType
init?GeminiConfig

Returns

Gemini

Overrides

ToolCallLLM&lt;GeminiAdditionalChatOptions&gt;.constructor

Defined in

packages/core/src/llm/gemini.ts:221

Properties

maxTokens

Optional maxTokens: number

Defined in

packages/core/src/llm/gemini.ts:218


model

model: GEMINI_MODEL

Defined in

packages/core/src/llm/gemini.ts:215


session

session: GeminiSession

Defined in

packages/core/src/llm/gemini.ts:219


temperature

temperature: number

Defined in

packages/core/src/llm/gemini.ts:216


topP

topP: number

Defined in

packages/core/src/llm/gemini.ts:217

Accessors

metadata

get metadata(): LLMMetadata

Returns

LLMMetadata

Overrides

ToolCallLLM.metadata

Defined in

packages/core/src/llm/gemini.ts:234


supportToolCall

get supportToolCall(): boolean

Returns

boolean

Overrides

ToolCallLLM.supportToolCall

Defined in

packages/core/src/llm/gemini.ts:230

Methods

chat

chat(params): Promise<GeminiChatStreamResponse>

Parameters

NameType
paramsGeminiChatParamsStreaming

Returns

Promise<GeminiChatStreamResponse>

Overrides

ToolCallLLM.chat

Defined in

packages/core/src/llm/gemini.ts:297

chat(params): Promise<GeminiChatNonStreamResponse>

Parameters

NameType
paramsGeminiChatParamsNonStreaming

Returns

Promise<GeminiChatNonStreamResponse>

Overrides

ToolCallLLM.chat

Defined in

packages/core/src/llm/gemini.ts:298


complete

complete(params): Promise<AsyncIterable<CompletionResponse>>

Parameters

NameType
paramsLLMCompletionParamsStreaming

Returns

Promise<AsyncIterable<CompletionResponse>>

Overrides

ToolCallLLM.complete

Defined in

packages/core/src/llm/gemini.ts:309

complete(params): Promise<CompletionResponse>

Parameters

NameType
paramsLLMCompletionParamsNonStreaming

Returns

Promise<CompletionResponse>

Overrides

ToolCallLLM.complete

Defined in

packages/core/src/llm/gemini.ts:312


nonStreamChat

nonStreamChat(params): Promise<GeminiChatNonStreamResponse>

Parameters

NameType
paramsGeminiChatParamsNonStreaming

Returns

Promise<GeminiChatNonStreamResponse>

Defined in

packages/core/src/llm/gemini.ts:268


prepareChat

prepareChat(params): Object

Parameters

NameType
paramsGeminiChatParamsStreaming | GeminiChatParamsNonStreaming

Returns

Object

NameType
chatChatSession
messageContentPart[]

Defined in

packages/core/src/llm/gemini.ts:245


streamChat

streamChat(params): GeminiChatStreamResponse

Parameters

NameType
paramsGeminiChatParamsStreaming

Returns

GeminiChatStreamResponse

Defined in

packages/core/src/llm/gemini.ts:286