RequestExtensionsFormatSystemInstruction Method

Creates a Content object for system instructions based on the specified input string.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public static Content? FormatSystemInstruction(
	string? params
)

Parameters

params  String
The system instruction text to be formatted into the content object. If null or empty, returns null.

Return Value

Content
A new instance of Content containing the formatted input as a system role, or null if the input is null or empty.

See Also