Codeunit 4399 SOA Annotation

Sales Order Agent, Microsoft.Agent.SalesOrderAgent

src/Apps/W1/SalesOrderAgent/app/src/Integration/SOAAnnotation.Codeunit.al20 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

GetAgentAnnotations line 37, internal

  1. 50callsShouldAddOverProcessLimitAnnotation
  2. 51callsAddOverProcessLimitAnnotation
  3. 52callsShouldAddAccessTokenAnnotation
  4. 53callsAddAccessTokenAnnotation
  5. 55callsShouldAddAgentTaskFailureAnnotation
  6. 56callsAddAgentTaskFailureAnnotation
  7. 58callsShouldAddAgentTaskSendRepliesFailureAnnotation
  8. 59callsAddAgentTaskSendRepliesFailureAnnotation

ShouldAddOverProcessLimitAnnotation line 62, local

  1. 68callsCodeunit 4587 SOA Impl GetProcessLimitPerDay
  2. 69callsCodeunit 4396 SOA Email Setup GetEmailCountProcessedWithin24hrs

AddOverProcessLimitAnnotation line 73, local

  1. 83writesTable 2000000283 Agent Annotation Insert
  2. 84callsCodeunit 8703 Feature Telemetry LogUsage
  3. 84callsCodeunit 4400 SOA Setup GetFeatureName
  4. 86callsCodeunit 8703 Feature Telemetry LogError
  5. 86callsCodeunit 4400 SOA Setup GetFeatureName

ShouldAddAccessTokenAnnotation line 89, local

  1. 103callsGetFailedTaskLimit
  2. 106callsGetFailedTaskLimit

AddAccessTokenAnnotation line 109, local

  1. 115writesTable 2000000283 Agent Annotation Insert

ShouldAddAgentTaskFailureAnnotation line 118, local

  1. 132callsGetFailedTaskLimit
  2. 135callsGetFailedTaskLimit

AddAgentTaskFailureAnnotation line 138, local

  1. 146writesTable 2000000283 Agent Annotation Insert
  2. 147callsCodeunit 8703 Feature Telemetry LogUsage
  3. 147callsCodeunit 4400 SOA Setup GetFeatureName
  4. 149callsCodeunit 8703 Feature Telemetry LogError
  5. 149callsCodeunit 4400 SOA Setup GetFeatureName

ShouldAddAgentTaskSendRepliesFailureAnnotation line 152, local

  1. 166callsGetFailedTaskLimit
  2. 169callsGetFailedTaskLimit

AddAgentTaskSendRepliesFailureAnnotation line 172, local

  1. 180writesTable 2000000283 Agent Annotation Insert
  2. 181callsCodeunit 8703 Feature Telemetry LogUsage
  3. 181callsCodeunit 4400 SOA Setup GetFeatureName
  4. 183callsCodeunit 8703 Feature Telemetry LogError
  5. 183callsCodeunit 4400 SOA Setup GetFeatureName

GetAgentTaskMessageAnnotations line 191, internal

  1. 197callsCheckReleavanceOfAgentTaskMessage
  2. 205callsCodeunit 4321 Agent GetDisplayName
  3. 208callsCodeunit 8703 Feature Telemetry LogUsage
  4. 208callsCodeunit 4400 SOA Setup GetFeatureName
  5. 209writesTable 2000000283 Agent Annotation Insert
  6. 210callsCodeunit 8703 Feature Telemetry LogError
  7. 210callsCodeunit 4400 SOA Setup GetFeatureName

CheckReleavanceOfAgentTaskMessage line 213, local

  1. 218callsCheckIfMessageRelevant
  2. 219callsCheckIfAttachmentRelevant

CheckIfAttachmentRelevant line 228, internal

  1. 248callsProcessAttachmentForRelevance

ProcessAttachmentForRelevance line 258, local

  1. 271callsCodeunit 4421 SOA Attachment MLLM EnsureCanonicalTextContent
  2. 273callsHandleAttachmentExtractionFailed
  3. 279callsGetMaxAttachmentContentLength
  4. 280callsIgnoreAttachmentExceedsContentLength
  5. 285callsCheckIfAttachmentRelevant
  6. 288writesTable 2000000275 Agent Task Message Attachment Modify
  7. 289callsCodeunit 4590 SOA Billing LogIrrelevantAttachment
  8. 294callsGetMaxAttachmentContentLength
  9. 295callsIgnoreAttachmentExceedsContentLength
  10. 300callsCodeunit 4590 SOA Billing LogRelevantAttachment

IgnoreAttachmentExceedsContentLength line 304, local

  1. 308writesTable 2000000275 Agent Task Message Attachment Modify
  2. 309callsCodeunit 4590 SOA Billing LogIrrelevantAttachment
  3. 316callsCodeunit 8703 Feature Telemetry LogUsage
  4. 316callsCodeunit 4400 SOA Setup GetFeatureName

HandleAttachmentExtractionFailed line 320, local

  1. 324writesTable 2000000275 Agent Task Message Attachment Modify
  2. 325callsCodeunit 4590 SOA Billing LogIrrelevantAttachment
  3. 330callsCodeunit 8703 Feature Telemetry LogError
  4. 330callsCodeunit 4400 SOA Setup GetFeatureName

CheckIfAttachmentRelevant line 334, local

  1. 349callsCodeunit 7771 Azure OpenAI SetAuthorization
  2. 349callsCodeunit 7768 AOAI Deployments GetGPT56CeresLatest
  3. 353callsGetIrrelevantAttachmentPrompt
  4. 354callsCodeunit 8703 Feature Telemetry LogError
  5. 354callsCodeunit 4400 SOA Setup GetFeatureName
  6. 358callsCodeunit 7771 Azure OpenAI SetCopilotCapability
  7. 360callsCodeunit 7763 AOAI Chat Messages SetPrimarySystemMessage
  8. 361callsCodeunit 7763 AOAI Chat Messages AddTool
  9. 362callsCodeunit 7763 AOAI Chat Messages SetToolInvokePreference
  10. 364callsSetAOAIParameters
  11. 370callsCodeunit 8703 Feature Telemetry LogUsage
  12. 370callsCodeunit 4400 SOA Setup GetFeatureName
  13. 374callsCodeunit 7763 AOAI Chat Messages AddUserMessage
  14. 375callsCodeunit 7771 Azure OpenAI GenerateChatCompletion
  15. 376callsCodeunit 7770 AOAI Operation Response IsSuccess
  16. 377callsCodeunit 8703 Feature Telemetry LogError
  17. 377callsCodeunit 4400 SOA Setup GetFeatureName
  18. 377callsCodeunit 7770 AOAI Operation Response GetStatusCode
  19. 377callsCodeunit 7770 AOAI Operation Response GetError
  20. 380callsCodeunit 7770 AOAI Operation Response IsFunctionCall
  21. 381callsCodeunit 8703 Feature Telemetry LogError
  22. 381callsCodeunit 4400 SOA Setup GetFeatureName
  23. 384callsCodeunit 4302 SOA Validation Function IsIrrelevant
  24. 385callsCodeunit 8703 Feature Telemetry LogUsage
  25. 385callsCodeunit 4400 SOA Setup GetFeatureName
  26. 389callsCodeunit 8703 Feature Telemetry LogUsage
  27. 389callsCodeunit 4400 SOA Setup GetFeatureName
  28. 390callsCodeunit 4302 SOA Validation Function GetIrrelevantReason

CheckIfMessageRelevant line 394, local

  1. 409callsCodeunit 7771 Azure OpenAI SetAuthorization
  2. 409callsCodeunit 7768 AOAI Deployments GetGPT56CeresLatest
  3. 412callsGetIrrelevantMessagePrompt
  4. 413callsCodeunit 8703 Feature Telemetry LogError
  5. 413callsCodeunit 4400 SOA Setup GetFeatureName
  6. 417callsCodeunit 7771 Azure OpenAI SetCopilotCapability
  7. 419callsCodeunit 7763 AOAI Chat Messages SetPrimarySystemMessage
  8. 420callsCodeunit 7763 AOAI Chat Messages AddTool
  9. 421callsCodeunit 7763 AOAI Chat Messages SetToolInvokePreference
  10. 423callsSetAOAIParameters
  11. 435callsCodeunit 7763 AOAI Chat Messages AddUserMessage
  12. 438callsCodeunit 7763 AOAI Chat Messages AddAssistantMessage
  13. 441callsCodeunit 8703 Feature Telemetry LogUsage
  14. 441callsCodeunit 4400 SOA Setup GetFeatureName
  15. 445callsCodeunit 7771 Azure OpenAI GenerateChatCompletion
  16. 446callsCodeunit 7770 AOAI Operation Response IsSuccess
  17. 447callsCodeunit 8703 Feature Telemetry LogError
  18. 447callsCodeunit 4400 SOA Setup GetFeatureName
  19. 447callsCodeunit 7770 AOAI Operation Response GetStatusCode
  20. 447callsCodeunit 7770 AOAI Operation Response GetError
  21. 450callsCodeunit 7770 AOAI Operation Response IsFunctionCall
  22. 451callsCodeunit 8703 Feature Telemetry LogError
  23. 451callsCodeunit 4400 SOA Setup GetFeatureName
  24. 454callsCodeunit 4302 SOA Validation Function IsIrrelevant
  25. 455callsCodeunit 8703 Feature Telemetry LogUsage
  26. 455callsCodeunit 4400 SOA Setup GetFeatureName
  27. 459callsCodeunit 4302 SOA Validation Function GetIrrelevantReason

SetAOAIParameters line 463, local

  1. 465callsCodeunit 7763 AOAI Chat Messages SetHistoryLength
  2. 466callsCodeunit 7761 AOAI Chat Completion Params SetTemperature

GetIrrelevantMessagePrompt line 469, local

  1. 477callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret

GetIrrelevantAttachmentPrompt line 484, local

  1. 492callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret