Codeunit 6195 E-Doc. AI Tool Processor
src/Apps/W1/EDocument/App/src/Processing/AI/EDocAIToolProcessor.Codeunit.al10 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
Setup line 41
- 49callsRegisterCapabilityIfNeeded
- 51callsCodeunit 7773 Copilot Capability IsCapabilityRegistered
- 53callsCodeunit 7773 Copilot Capability IsCapabilityActive
- 57callsGetChatCompletionsDeployment
- 58callsCodeunit 7771 Azure OpenAI SetAuthorization
- 59callsCodeunit 7771 Azure OpenAI SetCopilotCapability
- 62callsCodeunit 7761 AOAI Chat Completion Params SetMaxTokens
- 62callsGetDefaultMaxOutputTokens
- 63callsCodeunit 7761 AOAI Chat Completion Params SetTemperature
- 63callsGetDefaultTemperature
- 67callsSetupChatMessages
- 71callsGetDefaultMaxOutputTokens
- 72callsGetDefaultTemperature
- 74callsLogFeatureUptake
Process line 84
- 98callsCodeunit 7763 AOAI Chat Messages AddUserMessage
- 99callsCodeunit 7759 AOAI Token GetGPT4TokenCount
- 101callsGetDefaultMaxInputTokens
- 102callsLogError
- 102callsGetDefaultMaxInputTokens
- 108callsCodeunit 7771 Azure OpenAI GenerateChatCompletion
- 112callsHandleResponse
- 114callsLogResult
SetupChatMessages line 119, local
- 127callsCodeunit 9176 User Settings GetUserSettings
- 128callsCodeunit 43 Language GetWindowsLanguageName
- 131callsCodeunit 7763 AOAI Chat Messages SetPrimarySystemMessage
- 135callsCodeunit 7763 AOAI Chat Messages AddTool
- 137callsCodeunit 7763 AOAI Chat Messages SetToolChoice
HandleResponse line 149, local
- 155callsCodeunit 7770 AOAI Operation Response IsSuccess
- 156callsLogError
- 156callsCodeunit 7770 AOAI Operation Response GetStatusCode
- 156callsCodeunit 7770 AOAI Operation Response GetError
- 160callsCodeunit 7770 AOAI Operation Response GetResult
- 161callsLogError
- 165callsCodeunit 7770 AOAI Operation Response IsFunctionCall
- 166callsHandleFunctionCalls
- 168callsCodeunit 7770 AOAI Operation Response GetResult
HandleFunctionCalls line 172, local
- 182callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
- 184callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
- 185callsCodeunit 7758 AOAI Function Response IsSuccess
- 189callsCodeunit 7758 AOAI Function Response GetFunctionName
- 192callsCodeunit 7758 AOAI Function Response GetFunctionName
- 193callsLogError
- 193callsCodeunit 7758 AOAI Function Response GetFunctionName
- 199callsLogError
LogFeatureUptake line 204, local
- 206callsCodeunit 8703 Feature Telemetry LogUptake
- 207callsCodeunit 8703 Feature Telemetry LogUptake
LogResult line 210, local
- 213callsCodeunit 8703 Feature Telemetry LogUsage
- 215callsCodeunit 8703 Feature Telemetry LogError
LogError line 218, local
- 220callsCodeunit 8703 Feature Telemetry LogError
RegisterCapabilityIfNeeded line 223, local
- 229callsCodeunit 457 Environment Information IsSaaSInfrastructure
- 231callsCodeunit 7773 Copilot Capability IsCapabilityRegistered
- 232callsCodeunit 7773 Copilot Capability RegisterCapability
GetChatCompletionsDeployment line 250, internal
- 257callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
- 264callsCodeunit 7768 AOAI Deployments GetGPT56CeresLatest
- 266callsCodeunit 7768 AOAI Deployments GetGPT41Latest
- 269callsCodeunit 7768 AOAI Deployments GetGPT56CeresPreview
- 271callsCodeunit 7768 AOAI Deployments GetGPT41MiniPreview
- 273callsCodeunit 7768 AOAI Deployments GetGPT41Latest