Table of Contents

Interface IContentsRequest

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents a request containing a collection of contents.

public interface IContentsRequest
Extension Methods

Remarks

This interface defines a property for managing multiple instances of Content. Implementations of this interface can be used to interact with and manipulate content-related requests.

Properties

Contents

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

List<Content> Contents { get; set; }

Property Value

List<Content>

Examples

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

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.