public sealed class Content| Content | Initializes a new instance of the Content class |
| Content(IEnumerablePart, String) | Initializes a new instance of the Content class |
| Parts | Ordered Parts that constitute a single message. Parts may have different MIME types. |
| Role | Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| AddInlineData |
Adds inline data (for images, audio, etc.) as a new Part to this Content.
(Defined by ContentExtensions) |
| AddInlineFile | (Defined by ContentExtensions) |
| AddPart |
Adds a single Part to this Content.
(Defined by ContentExtensions) |
| AddParts |
Adds multiple Part objects to this Content.
(Defined by ContentExtensions) |
| AddRemoteFile |
Adds a remote file to the GenerateContentRequest using its URL and MIME type.
(Defined by ContentExtensions) |
| AddRemoteFile |
Adds a remote file reference as a new Part to this Content.
(Defined by ContentExtensions) |
| AddText |
Adds a single text Part to this Content.
(Defined by ContentExtensions) |
| ExtractCodeBlocks |
Extracts all CodeBlock from the text Parts of Content object.
(Defined by ContentExtensions) |
| ExtractJsonBlocks |
Extracts all JSON string from the text Parts of Content object.
(Defined by ContentExtensions) |
| ToObjectT |
Converts the JSON content of a Content object into an instance of the specified type.
(Defined by ContentExtensions) |