Table of Contents

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

IGenerativeAI

Methods

CreateInstance(string?)

Creates a generative model instance.

IGenerativeModel CreateInstance(string? modelName = null)

Parameters

modelName string

The name of the model to create. When omitted, Model is used, falling back to DefaultGeminiModel.

Returns

IGenerativeModel

A generative model instance.