Codeunit 6231 E-Document MLLM Handler

E-Document Core, Microsoft.eServices.EDocument.Format

Source AL, 356 lines

src/Apps/W1/EDocument/App/src/Processing/Import/StructureReceivedEDocument/EDocumentMLLMHandler.Codeunit.allines 18 to 33 of 356, Copyright (c) Microsoft Corporation. MIT

codeunit 6231 "E-Document MLLM Handler" implements IStructureReceivedEDocument, IStructuredFormatReader, IStructuredDataType{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        Telemetry: Codeunit Telemetry;        StructuredData: Text;        FileFormat: Enum "E-Doc. File Format";        FeatureNameLbl: Label 'E-Document MLLM Extraction', Locked = true;        FileDataLbl: Label 'data:application/pdf;base64,%1', Locked = true;        SystemPromptResourceTok: Label 'Prompts/EDocMLLMExtraction-SystemPrompt.md', Locked = true;        UserPromptLbl: Label 'Extract invoice or credit note data into this UBL JSON structure: %1. \n\nExtract ONLY visible values. Return JSON only. %2', Locked = true, Comment = '%1 = UBL JSON schema, %2 = security clause';        SecurityPromptAKVKeyTok: Label 'EDocMLLMExtraction-SecurityPromptV281', Locked = true;        MLLMExtractionStartedMsg: Label 'MLLM extraction started.', Locked = true;

All 356 lines

Public procedures 7 in 29

StructureReceivedEDocument(EDocumentDataStorage: Record "E-Doc. Data Storage"): Interface IStructuredDataTypenew in 28
GetFileFormat(): Enum "E-Doc. File Format"new in 28
GetContent(): Textnew in 28
GetReadIntoDraftImpl(): Enum "E-Doc. Read into Draft"new in 28
ReadIntoDraft(EDocument: Record "E-Document"; TempBlob: Codeunit "Temp Blob"): Enum "E-Doc. Process Draft"new in 28
View(EDocument: Record "E-Document"; TempBlob: Codeunit "Temp Blob")new in 28

All 7 procedures