Codeunit 6163 E-Doc. PO Copilot Matching
src/Apps/W1/EDocument/App/src/Processing/OrderMatching/Copilot/EDocPOCopilotMatching.Codeunit.al10 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
MatchWithCopilot line 38
- 45callsCodeunit 8703 Feature Telemetry LogUptake
- 45callsFeatureName
- 50callsGetSystemPrompt
- 54callsApproximateTokenCount
- 59callsBuildUserPrompt
- 62callsApproximateTokenCount
- 62callsApproximateTokenCount
- 63callsPromptSizeThreshold
- 65callsPreparePrompt
- 66callsMatch
- 76callsPreparePrompt
- 77callsMatch
- 84callsGroundCopilotMatching
Match line 105
- 114callsFeatureName
- 117callsCodeunit 7771 Azure OpenAI SetAuthorization
- 117callsCodeunit 7768 AOAI Deployments GetGPT41Latest
- 118callsCodeunit 7771 Azure OpenAI SetCopilotCapability
- 120callsCodeunit 7761 AOAI Chat Completion Params SetMaxTokens
- 120callsMaxTokens
- 121callsCodeunit 7761 AOAI Chat Completion Params SetTemperature
- 123callsCodeunit 6167 E-Doc. PO AOAI Function SetRecords
- 125callsCodeunit 7763 AOAI Chat Messages AddTool
- 126callsCodeunit 7763 AOAI Chat Messages SetFunctionAsToolChoice
- 126callsCodeunit 6167 E-Doc. PO AOAI Function GetName
- 128callsCodeunit 7763 AOAI Chat Messages SetPrimarySystemMessage
- 129callsCodeunit 7763 AOAI Chat Messages AddUserMessage
- 131callsCodeunit 7771 Azure OpenAI GenerateChatCompletion
- 132callsCodeunit 7770 AOAI Operation Response IsSuccess
- 133callsFeatureName
- 135callsCodeunit 7770 AOAI Operation Response IsFunctionCall
- 136callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
- 137callsCodeunit 7758 AOAI Function Response IsSuccess
- 138callsCodeunit 7758 AOAI Function Response GetResult
- 139callsFeatureName
- 141callsCodeunit 8703 Feature Telemetry LogError
- 141callsFeatureName
- 141callsCodeunit 7758 AOAI Function Response GetFunctionName
- 143callsCodeunit 8703 Feature Telemetry LogError
- 143callsFeatureName
- 146callsCodeunit 7770 AOAI Operation Response GetStatusCode
- 146callsCodeunit 7770 AOAI Operation Response GetError
- 146callsFeatureName
SumUnitCostForAIMatches line 151
- 160callsCodeunit 6109 E-Document Import Helper GetCurrencyRoundingPrecision
RegisterAICapability line 167
- 172callsCodeunit 457 Environment Information IsSaaSInfrastructure
- 175callsCodeunit 7773 Copilot Capability IsCapabilityRegistered
- 176callsCodeunit 7773 Copilot Capability RegisterCapability
- 177callsCodeunit 8703 Feature Telemetry LogUptake
- 177callsFeatureName
GroundCopilotMatching line 190, local
- 201callsCodeunit 6164 E-Doc. Line Matching MatchOneToOne
- 205writesTable 6163 E-Doc. PO Match Prop. Buffer Modify
- 207writesTable 6163 E-Doc. PO Match Prop. Buffer Delete
- 209writesTable 6163 E-Doc. PO Match Prop. Buffer Delete
BuildUserPrompt line 214, local
- 219callsPotentialMatchingPurchaseOrderLine
- 220callsPrepareEDocumentLineStatement
- 221callsPreparePurchaseOrderLineStatement
PotentialMatchingPurchaseOrderLine line 226, local
- 231callsIsPOLineWithinCostThreshold
- 231callsDoesLinesHaveQuantityToMatch
- 233writesTable 39 Purchase Line Insert
GetSystemPrompt line 279, local
- 284callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
- 287callsFeatureName