TsgcAIDocumentExtractor › Methods › GetPresetInstructions

GetPresetInstructions Method

Returns the extraction instructions of a built in preset.

Syntax

class function GetPresetInstructions(aPreset: TsgcAIDocumentPreset): string;

Parameters

NameTypeDescription
aPresetTsgcAIDocumentPresetThe preset whose instructions are returned.

Return Value

The instructions text. (string)

Remarks

Class method. Returns the instructions a preset adds to the prompt, so a custom schema built from GetPresetSchema can keep them through Instructions. Returns an empty string for dpCustom.

Example

oExtractor.Instructions.Text := TsgcAIDocumentExtractor.GetPresetInstructions(dpInvoice);

Back to Methods