TsgcAIDocumentExtractor › Properties › SchemaName

SchemaName Property

Name sent to the provider together with the schema.

Syntax

property SchemaName: string read FSchemaName write FSchemaName;

Default Value

document_extraction

Remarks

The name is copied into ChatOptions.JSONSchemaName of the chat during the extraction. OpenAI, Grok and Mistral send it with the schema and Anthropic uses it as the name of the forced tool. When a Preset is selected and SchemaName still has its default value, the preset name is sent instead (invoice, receipt or id_card).

Example

oExtractor.SchemaName := 'purchase_order';

Back to Properties