RequestExtensionsFormatGenerateContentInput(IEnumerableString, String) Method
Creates a
Content object using the specified parts of a request and role.
Namespace: GenerativeAIAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public static Content FormatGenerateContentInput(
IEnumerable<string> request,
string role = "user"
)
- request IEnumerableString
- A collection of strings representing individual parts of the request.
- role String (Optional)
- The role associated with the content. Defaults to "user".
ContentA new instance of
Content containing the specified parts and role.