Codeunit 4314 Agent Task Log Entry

System Application, System.Agents.Troubleshooting

Source AL, 193 lines

src/System Application/App/Agent/Troubleshooting/Internal/AgentTaskLogEntry.Codeunit.allines 12 to 27 of 193, Copyright (c) Microsoft Corporation. MIT

codeunit 4314 "Agent Task Log Entry"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    procedure FormatJsonTextForRichContent(JsonText: text): text    var        Json: Codeunit Json;        FormattedJson: Text;    begin        json.InitializeCollection('[' + JsonText + ']');        FormattedJson := json.GetCollectionAsText(true);        if StrLen(FormattedJson) < 5 then            exit('<pre>' + JsonText + '</pre>');        FormattedJson := FormattedJson.Substring(4, StrLen(FormattedJson) - 4);

All 193 lines

Public procedures 7 in 29

FormatJsonTextForRichContent(JsonText: Text): Textnew in 27
ExtractPageStack(var PageStacksRecords: Record "Agent JSON Buffer" temporary; ContextRootObject: JsonObject)new in 27
ExtractAvailableTools(var AvailableToolsRecords: Record "Agent JSON Buffer" temporary; ContextRootObject: JsonObject)new in 27
ExtractMemorizedData(var MemorizedDataRecords: Record "Agent JSON Buffer" temporary; ContextRootObject: JsonObject)new in 27
ReadContext(Entry: Record "Agent Task Memory Entry"): Textnew in 27
ReadContext(Entry: Record "Agent Task Log Entry"): Textnew in 27

All 7 procedures