Table of Contents

Namespace GenerativeAI.Microsoft.Extensions

Conversions between Microsoft.Extensions.AI types (messages, contents, options, tools) and Gemini request and response types.

Classes

MicrosoftExtensions

Provides extension methods for interoperability between Google_GenerativeAI and Microsoft.Extensions.AI models.

RemoteFileContent

Marker AIContent that points at a previously-uploaded Files-API asset. Produced by PromoteOversizedAttachmentsAsync(IList<ChatMessage>, GenerativeModel, CancellationToken) when a Microsoft.Extensions.AI.DataContent exceeds Gemini's 20 MB inline_data limit; ToPart(AIContent, ChatOptions?) then emits a FileData part referencing the remote URI instead of an inline blob.