IContentRequest_Extensions Class

[Missing <summary> documentation for "T:GenerativeAI.IContentRequest_Extensions"]

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public static class IContentRequest_Extensions
Inheritance
Object    IContentRequest_Extensions

Methods

AddContent Adds a new Content object to the IContentsRequest.
AddInlineData Adds inline data such as an image or audio file into the latest Content in the IContentsRequest and associates it with the specified role.
AddInlineFile Adds a new Content that includes an inline file as a Part to the IContentsRequest.
AddPart Adds a specific Part to the latest Content in the IContentsRequest. If no Content exists, a new one is created with the provided Part.
AddParts Adds a collection of Part objects to the latest Content in the IContentsRequest with the specified role. If no Content exists, a new one is created with the provided Part collection.
AddRemoteFile(GenerateContentRequest, RemoteFile, Boolean, String) Adds a remote file to the IContentsRequest using a RemoteFile object.
AddRemoteFile(IContentsRequest, RemoteFile, Boolean, String) Adds a remote file to the IContentsRequest using a RemoteFile object.
AddRemoteFile(IContentsRequest, String, String, Boolean, String) Adds a remote file to the IContentsRequest using a URL and MIME type.
AddText Adds a single text Part to the IContentsRequest with the specified role.

See Also