RequestExtensions Class

A static class providing extension methods for formatting request contents used in generative AI models.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public static class RequestExtensions
Inheritance
Object    RequestExtensions

Methods

FormatGenerateContentInput(IEnumerablePart, String) Creates a Content object based on the specified collection of Part instances and role.
FormatGenerateContentInput(IEnumerableString, String) Creates a Content object using the specified parts of a request and role.
FormatGenerateContentInput(String, String) Creates a Content object based on the specified input text and role.
FormatSystemInstruction Creates a Content object for system instructions based on the specified input string.

See Also