Content(IEnumerablePart, String) Constructor

Initializes a new instance of the Content class

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Content(
	IEnumerable<Part> parts,
	string? role
)

Parameters

parts  IEnumerablePart

[Missing <param name="parts"/> documentation for "M:GenerativeAI.Types.Content.#ctor(System.Collections.Generic.IEnumerable{GenerativeAI.Types.Part},System.String)"]

role  String

[Missing <param name="role"/> documentation for "M:GenerativeAI.Types.Content.#ctor(System.Collections.Generic.IEnumerable{GenerativeAI.Types.Part},System.String)"]

See Also