Codeunit 324 No. Series Copilot Impl.

Business Foundation, Microsoft.Foundation.NoSeries

src/Business Foundation/App/NoSeriesCopilot/src/Copilot/NoSeriesCopilotImpl.Codeunit.al30 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

GetNoSeriesSuggestions line 34

  1. 39callsCodeunit 327 No. Series Copilot Register RegisterCapability
  2. 40callsCodeunit 7771 Azure OpenAI IsEnabled
  3. 43callsCodeunit 389 No. Series Copilot Telemetry LogFeatureDiscovery
  4. 45runsPage 332 No. Series Generation

Generate line 48

  1. 55callsGetToolsSelectionSystemPrompt
  2. 57callsCodeunit 7759 AOAI Token GetGPT35TokenCount
  3. 57callsCodeunit 7759 AOAI Token GetGPT35TokenCount
  4. 58callsMaxInputTokens
  5. 59callsGenerateNoSeries
  6. 60callsCheckIfCompletionMeetAllRequirements
  7. 61callsSaveGenerationHistory
  8. 62callsCreateNoSeries
  9. 66callsSendNotification
  10. 66callsGetChatCompletionResponseErr

ApplyGeneratedNoSeries line 69

  1. 74callsInsertNoSeriesWithLines
  2. 75callsApplyNoSeriesToSetup

InsertNoSeriesWithLines line 79, local

  1. 81callsInsertNoSeries
  2. 82callsInsertNoSeriesLine

InsertNoSeries line 85, local

  1. 94writesTable 308 No. Series Insert(true)
  2. 95writesTable 308 No. Series Modify(true)

InsertNoSeriesLine line 98, local

  1. 105callsGetNoSeriesLineNo
  2. 106validatesTable 309 No. Series Line Starting Date
  3. 107validatesTable 309 No. Series Line Starting No.
  4. 108validatesTable 309 No. Series Line Ending No.
  5. 110validatesTable 309 No. Series Line Warning No.
  6. 111validatesTable 309 No. Series Line Increment-by No.
  7. 112validatesTable 309 No. Series Line Implementation
  8. 113writesTable 309 No. Series Line Insert(true)
  9. 114writesTable 309 No. Series Line Modify(true)

GetNoSeriesLineNo line 117, local

  1. 122callsCodeunit 310 No. Series GetNoSeriesLine

GetToolsSelectionSystemPrompt line 146, local

  1. 152callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  2. 153callsCodeunit 8711 Telemetry LogMessage

GenerateNoSeries line 160, local

  1. 172callsCodeunit 7771 Azure OpenAI IsEnabled
  2. 175callsCodeunit 7771 Azure OpenAI SetAuthorization
  3. 175callsCodeunit 7768 AOAI Deployments GetGPT56CeresLatest
  4. 176callsCodeunit 7771 Azure OpenAI SetCopilotCapability
  5. 177callsCodeunit 7761 AOAI Chat Completion Params SetMaxTokens
  6. 177callsMaxOutputTokens
  7. 178callsCodeunit 7761 AOAI Chat Completion Params SetTemperature
  8. 179callsCodeunit 7763 AOAI Chat Messages SetPrimarySystemMessage
  9. 180callsCodeunit 7763 AOAI Chat Messages AddUserMessage
  10. 182callsCodeunit 7763 AOAI Chat Messages AddTool
  11. 183callsCodeunit 7763 AOAI Chat Messages AddTool
  12. 184callsCodeunit 7763 AOAI Chat Messages AddTool
  13. 186callsCodeunit 389 No. Series Copilot Telemetry ResetDurationTracking
  14. 187callsCodeunit 389 No. Series Copilot Telemetry StartDurationTracking
  15. 188callsCodeunit 7771 Azure OpenAI GenerateChatCompletion
  16. 189callsCodeunit 389 No. Series Copilot Telemetry StopDurationTracking
  17. 190callsCodeunit 7770 AOAI Operation Response IsSuccess
  18. 191callsCodeunit 7770 AOAI Operation Response GetError
  19. 193callsCodeunit 7763 AOAI Chat Messages GetLastMessage
  20. 195callsCodeunit 7770 AOAI Operation Response IsFunctionCall
  21. 196callsGenerateNoSeriesUsingToolResult
  22. 196callsCodeunit 331 No. Series Cop. Add Intent GetExistingNoSeries
  23. 198callsCodeunit 389 No. Series Copilot Telemetry LogToolNotInvoked

GenerateNoSeriesUsingToolResult line 204, local

  1. 221callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
  2. 224callsCodeunit 7758 AOAI Function Response IsSuccess
  3. 225callsCodeunit 7758 AOAI Function Response GetError
  4. 227callsCodeunit 7758 AOAI Function Response GetResult
  5. 230callsCodeunit 336 No. Series Cop. Tools Impl. ExtractAreaWithPrefix
  6. 232callsCodeunit 7761 AOAI Chat Completion Params SetTemperature
  7. 233callsCodeunit 7761 AOAI Chat Completion Params SetMaxTokens
  8. 233callsMaxOutputTokens
  9. 234callsCodeunit 7763 AOAI Chat Messages SetPrimarySystemMessage
  10. 235callsCodeunit 7763 AOAI Chat Messages AddUserMessage
  11. 236callsCodeunit 7763 AOAI Chat Messages AddTool
  12. 237callsCodeunit 7763 AOAI Chat Messages SetToolChoice
  13. 237callsCodeunit 339 No. Series Cop. Generate GetDefaultToolChoice
  14. 240callsGenerateAndReviewToolCompletionWithRetry
  15. 240callsGetExpectedNoSeriesCount
  16. 249callsConcatenateToolResponse

GenerateAndReviewToolCompletionWithRetry line 258, local

  1. 267callsCodeunit 389 No. Series Copilot Telemetry ResetDurationTracking
  2. 268callsCodeunit 389 No. Series Copilot Telemetry StartDurationTracking
  3. 269callsCodeunit 7771 Azure OpenAI GenerateChatCompletion
  4. 270callsCodeunit 389 No. Series Copilot Telemetry StopDurationTracking
  5. 271callsCodeunit 7770 AOAI Operation Response IsSuccess
  6. 272callsCodeunit 7770 AOAI Operation Response GetError
  7. 274callsCodeunit 7770 AOAI Operation Response IsFunctionCall
  8. 277callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
  9. 278callsCodeunit 7758 AOAI Function Response IsSuccess
  10. 279callsCodeunit 7758 AOAI Function Response GetError
  11. 281callsCodeunit 7758 AOAI Function Response GetResult
  12. 282callsCheckIfValidResult
  13. 282callsCodeunit 7758 AOAI Function Response GetFunctionName
  14. 283callsCodeunit 389 No. Series Copilot Telemetry LogGenerationCompletion
  15. 283callsReadGeneratedNumberSeriesJArray
  16. 287callsCodeunit 7763 AOAI Chat Messages DeleteMessage
  17. 287callsCodeunit 7763 AOAI Chat Messages GetHistory

CheckIfValidResult line 294, local

  1. 298callsCheckIfCompletionMeetAllRequirements
  2. 301callsCodeunit 331 No. Series Cop. Add Intent GetName
  3. 302callsCheckIfExpectedNoSeriesCount

CheckIfExpectedNoSeriesCount line 308, local

  1. 313callsReadGeneratedNumberSeriesJArray
  2. 320callsMinimumAccuracy

ConcatenateToolResponse line 324, local

  1. 333callsReadGeneratedNumberSeriesJArray

CheckIfCompletionMeetAllRequirements line 344, local

  1. 351callsReadGeneratedNumberSeriesJArray
  2. 352callsCodeunit 5460 Json InitializeCollection
  3. 353callsCheckIfArrayIsNotEmpty
  4. 353callsCodeunit 5460 Json GetCollectionCount
  5. 355callsCodeunit 5460 Json GetCollectionCount
  6. 356callsCodeunit 5460 Json GetObjectFromCollectionByIndex
  7. 357callsCodeunit 5460 Json InitializeObject
  8. 358callsCheckMandatoryProperties

CheckMandatoryProperties line 362, local

  1. 364callsCheckIfNumberSeriesIsGenerated
  2. 367callsCheckJsonTextProperty
  3. 368callsCheckMaximumLengthOfPropertyValue
  4. 369callsCheckJsonTextProperty
  5. 370callsCheckJsonTextProperty
  6. 371callsCheckMaximumLengthOfPropertyValue
  7. 372callsCheckJsonTextProperty
  8. 373callsCheckMaximumLengthOfPropertyValue
  9. 374callsCheckJsonTextProperty
  10. 375callsCheckMaximumLengthOfPropertyValue
  11. 376callsCheckJsonIntegerProperty
  12. 377callsCheckJsonIntegerProperty
  13. 378callsCheckJsonIntegerProperty

CheckIfNumberSeriesIsGenerated line 381, local

  1. 385callsCodeunit 5460 Json GetBoolPropertyValueFromJObjectByName

CheckJsonTextProperty line 395, local

  1. 399callsCodeunit 5460 Json GetStringPropertyValueByName

CheckJsonIntegerProperty line 409, local

  1. 413callsCodeunit 5460 Json GetIntegerPropertyValueFromJObjectByName

CheckMaximumLengthOfPropertyValue line 423, local

  1. 427callsCodeunit 5460 Json GetStringPropertyValueByName

SaveGenerationHistory line 440, local

  1. 444callsTable 391 No. Series Generation SetInputText
  2. 445writesTable 391 No. Series Generation Insert(true)

CreateNoSeries line 448, local

  1. 455callsReadGeneratedNumberSeriesJArray
  2. 456callsReassembleDuplicates
  3. 458callsCodeunit 5460 Json InitializeCollection
  4. 460callsCodeunit 5460 Json GetCollectionCount
  5. 461callsCodeunit 5460 Json GetObjectFromCollectionByIndex
  6. 463callsInsertGeneratedNoSeries

ReassembleDuplicates line 467, local

  1. 473callsCodeunit 5460 Json InitializeCollection
  2. 475callsCodeunit 5460 Json GetCollectionCount
  3. 476callsProcessNoSeries
  4. 478callsCodeunit 5460 Json GetCollectionAsText

ProcessNoSeries line 481, local

  1. 486callsCodeunit 5460 Json GetObjectFromCollectionByIndex
  2. 487callsCodeunit 5460 Json InitializeObject
  3. 488callsCodeunit 5460 Json GetStringPropertyValueByName
  4. 490callsCheckIfNumberSeriesIsGenerated
  5. 491callsCodeunit 5460 Json RemoveJObjectFromCollection

InsertGeneratedNoSeries line 497, local

  1. 502callsCodeunit 5460 Json InitializeObject
  2. 506callsSetGenerationNo
  3. 507callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  4. 508callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  5. 509callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  6. 510callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  7. 511callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  8. 512callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  9. 513callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  10. 514callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  11. 515callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  12. 516callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  13. 517callsCodeunit 5460 Json GetValueAndSetToRecFieldNo
  14. 520callsValidateGeneratedNoSeries

ValidateGeneratedNoSeries line 523, local

  1. 527callsValidateRecFieldNo

MaxInputTokens line 552, local

  1. 554callsMaxModelTokens
  2. 554callsMaxOutputTokens

IsCopilotVisible line 567

  1. 571callsCodeunit 7773 Copilot Capability IsCapabilityRegistered

RecallNotification line 584

  1. 588callsGetNotificationId

SendNotification line 592

  1. 596callsGetNotificationId