TsgcAIDocumentExtractor › Methods › GetPresetInstructions
Returns the extraction instructions of a built in preset.
class function GetPresetInstructions(aPreset: TsgcAIDocumentPreset): string;
| Name | Type | Description |
|---|---|---|
aPreset | TsgcAIDocumentPreset | The preset whose instructions are returned. |
The instructions text. (string)
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.
oExtractor.Instructions.Text := TsgcAIDocumentExtractor.GetPresetInstructions(dpInvoice);