GoogleVertexProvider
Namespace: Vercel.AI.Google
public sealed class GoogleVertexProvider : GoogleProvider, IBatchProviderGoogle Vertex AI provider.
Inheritance: object → ProviderBase → GoogleProvider
Implements: IBatchProvider
Constructors
Section titled “Constructors”GoogleVertexProvider(HttpClient, VertexOptions?)
Section titled “GoogleVertexProvider(HttpClient, VertexOptions?)”public GoogleVertexProvider(HttpClient httpClient, VertexOptions? options = null)Creates a Vertex provider.
Parameters
| Name | Type | Description |
|---|---|---|
httpClient |
HttpClient | |
options |
VertexOptions |
Properties
Section titled “Properties”Vertex
Section titled “Vertex”public VertexOptions Vertex { get; }Vertex options.
Value: VertexOptions
Methods
Section titled “Methods”Create(VertexOptions?, HttpMessageHandler?)
Section titled “Create(VertexOptions?, HttpMessageHandler?)”public static GoogleVertexProvider Create(VertexOptions? options = null, HttpMessageHandler? handler = null)Creates a provider.
Parameters
| Name | Type | Description |
|---|---|---|
options |
VertexOptions | |
handler |
HttpMessageHandler |
Returns: GoogleVertexProvider
Interactions(string)
Section titled “Interactions(string)”public override ILanguageModel Interactions(string modelId)Interactions use the location resource and reject Express Mode.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
Interactions(GoogleInteractionsAgent)
Section titled “Interactions(GoogleInteractionsAgent)”public override ILanguageModel Interactions(GoogleInteractionsAgent agent)Interactions use the location resource and reject Express Mode.
Parameters
| Name | Type | Description |
|---|---|---|
agent |
GoogleInteractionsAgent |
Returns: ILanguageModel
LanguageModel(string)
Section titled “LanguageModel(string)”public override ILanguageModel LanguageModel(string modelId)Tuned endpoints/ models reject Express Mode and omit /publishers/google.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
SpeechModel(string)
Section titled “SpeechModel(string)”public override ISpeechModel SpeechModel(string modelId)Chirp speech models use Cloud Text-to-Speech. Gemini speech models use generateContent.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ISpeechModel
TranscriptionModel(string)
Section titled “TranscriptionModel(string)”public override ITranscriptionModel TranscriptionModel(string modelId)Gemini transcription ids use generateContent. Other ids use Cloud Speech-to-Text.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ITranscriptionModel
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product