RequestExtensionsFormatSystemInstruction Method
Creates a
Content object for system instructions based on the specified input string.
Namespace: GenerativeAIAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public static Content? FormatSystemInstruction(
string? params
)
- params String
- The system instruction text to be formatted into the content object. If null or empty, returns null.
ContentA new instance of
Content containing the formatted input as a system role, or null if the input is null or empty.