Table of Contents

Class VertexAIModel

Namespace
GenerativeAI
Assembly
GenerativeAI.dll

VertexAIModel is a specialized class for interacting with Google's Vertex AI generative models. It extends the functionality of the GenerativeModel class and serves as a concrete implementation for initializing and utilizing Vertex AI's capabilities for content generation tasks.

public class VertexAIModel : GenerativeModel, IGenerativeModel
Inheritance
VertexAIModel
Implements
Inherited Members
Extension Methods

Examples

This class does not include direct examples or usage. Refer to the GenerativeModel class for generalized behavior, or see related documentation for leveraging the Vertex AI platform.

Remarks

VertexAIModel provides constructors to configure the model with various parameters such as API keys, model specifications, and optional settings like safety rules or system-wide instructions. It allows integration with Vertex AI for advanced generative use cases.

Constructors

VertexAIModel(IPlatformAdapter, string, GenerationConfig?, ICollection<SafetySetting>?, string?, HttpClient?, ILogger?)

public VertexAIModel(IPlatformAdapter platform, string model, GenerationConfig? config = null, ICollection<SafetySetting>? safetySettings = null, string? systemInstruction = null, HttpClient? httpClient = null, ILogger? logger = null)

Parameters

platform IPlatformAdapter
model string
config GenerationConfig
safetySettings ICollection<SafetySetting>
systemInstruction string
httpClient HttpClient
logger ILogger

VertexAIModel(string?, string?, string?, string?, GenerationConfig?, ICollection<SafetySetting>?, string?, bool, string?, IGoogleAuthenticator?, HttpClient?, ILogger?)

public VertexAIModel(string? model = null, string? projectId = null, string? region = null, string? accessToken = null, GenerationConfig? config = null, ICollection<SafetySetting>? safetySettings = null, string? systemInstruction = null, bool expressMode = false, string? apiKey = null, IGoogleAuthenticator? authenticator = null, HttpClient? httpClient = null, ILogger? logger = null)

Parameters

model string
projectId string
region string
accessToken string
config GenerationConfig
safetySettings ICollection<SafetySetting>
systemInstruction string
expressMode bool
apiKey string
authenticator IGoogleAuthenticator
httpClient HttpClient
logger ILogger

See Also