Interface IGenerativeAiService
- Namespace
- GenerativeAI.Web
- Assembly
- GenerativeAI.Web.dll
Interface for GenerativeAI service that provides access to AI models.
public interface IGenerativeAiService
- Extension Methods
Properties
Platform
Gets the underlying GenerativeAI platform instance.
IGenerativeAI Platform { get; }
Property Value
Methods
CreateInstance(string?)
Creates a generative model instance.
IGenerativeModel CreateInstance(string? modelName = null)
Parameters
modelNamestringThe name of the model to create. When omitted, Model is used, falling back to DefaultGeminiModel.
Returns
- IGenerativeModel
A generative model instance.