Codeunit 6177 E-Doc. Historical Matching

E-Document Core, Microsoft.eServices.EDocument.Processing.AI

Source AL, 684 lines

src/Apps/W1/EDocument/App/src/Processing/AI/Tools/EDocHistoricalMatching.Codeunit.allines 18 to 33 of 684, Copyright (c) Microsoft Corporation. MIT

codeunit 6177 "E-Doc. Historical Matching" implements "AOAI Function", IEDocAISystem{    Access = Internal;    TableNo = "E-Document Purchase Line";    EventSubscriberInstance = Manual;    InherentPermissions = X;    InherentEntitlements = X;    var        TempEDocLineMatchBuffer: Record "EDoc Line Match Buffer" temporary;        TempHistoricalMatchBuffer: Record "EDoc Historical Match Buffer" temporary;        EDocSimilarDescriptions: Codeunit "E-Doc. Similar Descriptions";        Telemetry: Codeunit Telemetry;        EDocumentNo: Integer;        HistoricalDataLoadFailedErr: Label 'Failed to load historical data for e-document line %1. Error: %2', Comment = '%1 = E-Document System Id, %2 = Error message', Locked = true;        AIHistoricalDataLoadEventTok: Label 'Historical Data Load', Locked = true;

All 684 lines

Events 2 in 29

[IntegrationEvent] OnGetHistoricalMatchFunctionResponse(TempEDocLineMatchBuffer: Record "EDoc Line Match Buffer" temporary)new in 27
[IntegrationEvent] OnUserMessageCreated(UserMessageTxt: Text)new in 27

Public procedures 6 in 29

GetPrompt(): JsonObjectnew in 27
Execute(Arguments: JsonObject): Variantnew in 27
GetName(): Textnew in 27
GetSystemPrompt(UserLanguage: Text): SecretTextnew in 27
GetTools(): Listnew in 27
GetFeatureName(): Textnew in 27