IContentsRequestContents Property

Represents a collection of content items within an object that implements the IContentsRequest interface.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
List<Content> Contents { get; set; }

Property Value

ListContent

Remarks

The Contents property provides access to a list of Content objects. Each Content represents multi-part content with a specified role and data parts.

Example

This property can be used to store and manipulate a collection of content items, such as messages or data associated with requests or responses.

See Also