ContentExtensions Class

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

Definition

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

Methods

AddInlineData Adds inline data (for images, audio, etc.) as a new Part to this Content.
AddInlineFile 
AddPart Adds a single Part to this Content.
AddParts Adds multiple Part objects to this Content.
AddRemoteFile(Content, RemoteFile) Adds a remote file to the GenerateContentRequest using its URL and MIME type.
AddRemoteFile(Content, String, String) Adds a remote file reference as a new Part to this Content.
AddText Adds a single text Part to this Content.
ExtractCodeBlocks Extracts all CodeBlock from the text Parts of Content object.
ExtractJsonBlocks Extracts all JSON string from the text Parts of Content object.
ToObjectT Converts the JSON content of a Content object into an instance of the specified type.

See Also