Class GenerativeModelExtensions
- Namespace
- GenerativeAI.Live.Extensions
- Assembly
- GenerativeAI.Live.dll
Provides extension methods for GenerativeModel to create MultiModalLiveClient instances.
public static class GenerativeModelExtensions
- Inheritance
-
GenerativeModelExtensions
- Inherited Members
Methods
CreateMultiModalLiveClient(GenerativeModel, GenerationConfig?, ICollection<SafetySetting>?, string?, ILogger?)
Creates a new MultiModalLiveClient instance from the GenerativeModel.
public static MultiModalLiveClient CreateMultiModalLiveClient(this GenerativeModel generativeModel, GenerationConfig? config = null, ICollection<SafetySetting>? safetySettings = null, string? systemInstruction = null, ILogger? logger = null)
Parameters
generativeModelGenerativeModelThe GenerativeModel to create the client from.
configGenerationConfigOptional generation configuration. If null, uses the model's default config.
safetySettingsICollection<SafetySetting>Optional safety settings. If null, uses the model's default safety settings.
systemInstructionstringOptional system instruction. If null, uses the model's default system instruction.
loggerILoggerOptional logger instance.
Returns
- MultiModalLiveClient
A new MultiModalLiveClient instance.