AxAIGoogleGemini
Class: AxAIGoogleGemini
AxAIGoogleGemini: AI Service
Export
Extends
AxBaseAI
<AxAIGoogleGeminiChatRequest
,AxAIGoogleGeminiBatchEmbedRequest
,AxAIGoogleGeminiChatResponse
,AxAIGoogleGeminiChatResponseDelta
,AxAIGoogleGeminiBatchEmbedResponse
>
Constructors
new AxAIGoogleGemini()
new AxAIGoogleGemini(
__namedParameters
):AxAIGoogleGemini
Parameters
• __namedParameters: Readonly
<Omit
<AxAIGoogleGeminiArgs
, "name"
>>
Returns
Overrides
Defined in
src/ax/ai/google-gemini/api.ts:109
Properties
apiURL
protected
apiURL:string
Inherited from
Defined in
headers
protected
headers:Record
<string
,string
>
Inherited from
Defined in
name
protected
name:string
Inherited from
Defined in
supportFor
protected
supportFor:AxBaseAIFeatures
| (model
) =>AxBaseAIFeatures
Inherited from
Defined in
Methods
_chat()
_chat(
model
,chatReq
,options
?,span
?):Promise
<AxChatResponse
|ReadableStream
<AxChatResponse
>>
Parameters
• model: string
• chatReq: Readonly
<AxChatRequest
>
• options?: Readonly
<AxAIPromptConfig
& AxAIServiceActionOptions
>
• span?: AxSpan
Returns
Promise
<AxChatResponse
| ReadableStream
<AxChatResponse
>>
Inherited from
Defined in
_embed()
_embed(
embedModel
,embedReq
,options
?,span
?):Promise
<AxEmbedResponse
>
Parameters
• embedModel: string
• embedReq: Readonly
<AxEmbedRequest
>
• options?: Readonly
<AxAIServiceActionOptions
>
• span?: AxSpan
Returns
Promise
<AxEmbedResponse
>
Inherited from
Defined in
chat()
chat(
req
,options
?):Promise
<AxChatResponse
|ReadableStream
<AxChatResponse
>>
Parameters
• req: Readonly
<AxChatRequest
>
• options?: Readonly
<AxAIPromptConfig
& AxAIServiceActionOptions
>
Returns
Promise
<AxChatResponse
| ReadableStream
<AxChatResponse
>>
Inherited from
Defined in
embed()
embed(
req
,options
?):Promise
<AxEmbedResponse
>
Parameters
• req: Readonly
<AxEmbedRequest
>
• options?: Readonly
<AxAIServiceActionOptions
>
Returns
Promise
<AxEmbedResponse
>
Inherited from
Defined in
generateChatReq()
generateChatReq(
req
): [API
,AxAIGoogleGeminiChatRequest
]
Parameters
• req: Readonly
<AxInternalChatRequest
>
Returns
[API
, AxAIGoogleGeminiChatRequest
]
Overrides
AxBaseAI.generateChatReq
Defined in
src/ax/ai/google-gemini/api.ts:160
generateChatResp()
generateChatResp(
resp
):AxChatResponse
Parameters
• resp: Readonly
<AxAIGoogleGeminiChatResponse
>
Returns
Overrides
AxBaseAI.generateChatResp
Defined in
src/ax/ai/google-gemini/api.ts:377
generateChatStreamResp()
generateChatStreamResp(
resp
):AxChatResponse
Parameters
• resp: Readonly
<AxAIGoogleGeminiChatResponse
>
Returns
Overrides
AxBaseAI.generateChatStreamResp
Defined in
src/ax/ai/google-gemini/api.ts:437
generateEmbedReq()
generateEmbedReq(
req
): [API
,AxAIGoogleGeminiBatchEmbedRequest
]
Parameters
• req: Readonly
<AxInternalEmbedRequest
>
Returns
[API
, AxAIGoogleGeminiBatchEmbedRequest
]
Overrides
AxBaseAI.generateEmbedReq
Defined in
src/ax/ai/google-gemini/api.ts:350
generateEmbedResp()
generateEmbedResp(
resp
):AxEmbedResponse
Parameters
• resp: Readonly
<AxAIGoogleGeminiBatchEmbedResponse
>
Returns
Overrides
AxBaseAI.generateEmbedResp
Defined in
src/ax/ai/google-gemini/api.ts:443
getEmbedModelInfo()
getEmbedModelInfo():
undefined
|AxModelInfoWithProvider
Returns
undefined
| AxModelInfoWithProvider
Inherited from
Defined in
getFeatures()
getFeatures(
model
?):AxBaseAIFeatures
Parameters
• model?: string
Returns
Inherited from
Defined in
getModelConfig()
getModelConfig():
AxModelConfig
Returns
Overrides
Defined in
src/ax/ai/google-gemini/api.ts:150
getModelInfo()
getModelInfo():
Readonly
<AxModelInfoWithProvider
>
Returns
Readonly
<AxModelInfoWithProvider
>
Inherited from
Defined in
getModelMap()
getModelMap():
undefined
|AxAIModelMap
Returns
undefined
| AxAIModelMap
Inherited from
Defined in
getName()
getName():
string
Returns
string
Inherited from
Defined in
setAPIURL()
setAPIURL(
apiURL
):void
Parameters
• apiURL: string
Returns
void
Inherited from
Defined in
setHeaders()
setHeaders(
headers
):void
Parameters
• headers: Record
<string
, string
>
Returns
void
Inherited from
Defined in
setName()
setName(
name
):void
Parameters
• name: string
Returns
void
Inherited from
Defined in
setOptions()
setOptions(
options
):void
Parameters
• options: Readonly
<AxAIServiceOptions
>
Returns
void