Codeunit 2012 Entity Text Impl.

System Application, System.Text

src/System Application/App/Entity Text/src/EntityTextImpl.Codeunit.al10 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

IsEnabled line 25

  1. 29callsCodeunit 7771 Azure OpenAI IsEnabled

CanSuggest line 37

  1. 42callsCodeunit 2011 Entity Text AOAI Settings IsEnabled
  2. 45callsCodeunit 2016 Entity Text Prompts HasPromptInfo

GenerateSuggestion line 49

  1. 58callsIsEnabled
  2. 60callsCanSuggest
  3. 63callsBuildFacts
  4. 64callsCodeunit 2016 Entity Text Prompts BuildPrompts
  5. 66callsGetFeatureName
  6. 68callsGenerateAndReviewCompletion

InsertSuggestion line 80

  1. 87callsSetText
  2. 89writesTable 2000000132 Entity Text Insert
  3. 90writesTable 2000000132 Entity Text Modify
  4. 92callsGetFeatureName

SetText line 95

  1. 109callsCodeunit 3960 Regex Replace
  2. 111callsCodeunit 3960 Regex Replace

BuildFacts line 154, local

  1. 178callsGetFeatureName

GenerateAndReviewCompletion line 199, local

  1. 209callsGenerateCompletion
  2. 211callsCompletionContainsPrompt
  3. 211callsIsGoodCompletion
  4. 215callsGetFeatureName
  5. 219callsGetFeatureName
  6. 221callsCodeunit 2018 Magic Function Execute

CompletionContainsPrompt line 225, local

  1. 238callsGetFeatureName

IsGoodCompletion line 247, local

  1. 259callsGetFeatureName
  2. 264callsGetFeatureName
  3. 283callsGetFeatureName
  4. 288callsCodeunit 3960 Regex Match
  5. 293callsTable 3965 Matches ReadValue
  6. 306callsGetFeatureName
  7. 312callsGetFeatureName

GenerateCompletion line 320, local

  1. 343callsCodeunit 7771 Azure OpenAI SetAuthorization
  2. 346callsCodeunit 7771 Azure OpenAI SetAuthorization
  3. 346callsCodeunit 7768 AOAI Deployments GetGPT56CeresLatest
  4. 350callsCodeunit 8703 Feature Telemetry LogError
  5. 350callsGetFeatureName
  6. 354callsCodeunit 7771 Azure OpenAI SetCopilotCapability
  7. 356callsCodeunit 7761 AOAI Chat Completion Params SetMaxTokens
  8. 357callsCodeunit 7761 AOAI Chat Completion Params SetTemperature
  9. 359callsCodeunit 7763 AOAI Chat Messages AddTool
  10. 361callsCodeunit 2017 Generate Prod Mkt Ad Function SetTextFormat
  11. 362callsCodeunit 7763 AOAI Chat Messages AddTool
  12. 363callsCodeunit 7763 AOAI Chat Messages SetToolChoice
  13. 365callsCodeunit 7763 AOAI Chat Messages SetPrimarySystemMessage
  14. 366callsCodeunit 7763 AOAI Chat Messages AddUserMessage
  15. 369callsCodeunit 7771 Azure OpenAI GenerateChatCompletion
  16. 373callsCodeunit 7770 AOAI Operation Response IsSuccess
  17. 374callsCodeunit 7770 AOAI Operation Response IsFunctionCall
  18. 375callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
  19. 376callsCodeunit 8703 Feature Telemetry LogUsage
  20. 376callsGetFeatureName
  21. 379callsCodeunit 7758 AOAI Function Response IsSuccess
  22. 380callsCodeunit 8703 Feature Telemetry LogError
  23. 380callsGetFeatureName
  24. 384callsCodeunit 7758 AOAI Function Response GetResult
  25. 386callsCodeunit 7758 AOAI Function Response GetFunctionName
  26. 386callsCodeunit 2018 Magic Function GetName
  27. 391callsCodeunit 8703 Feature Telemetry LogError
  28. 391callsGetFeatureName
  29. 395callsCodeunit 8703 Feature Telemetry LogError
  30. 395callsGetFeatureName
  31. 395callsCodeunit 7770 AOAI Operation Response GetStatusCode
  32. 398callsCodeunit 2011 Entity Text AOAI Settings ContainsWordsInDenyList