mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-06 15:16:56 +01:00
- add 20 agent knowledge rules with good and bad AL samples - clarify setup dialog shape, temporary persistence, permissions, profiles, instructions, capability registration, and interface wiring - add the community-owned AL agents review skill - make review fixture discovery layer-aware with custom, community, and Microsoft precedence - document layer-aware evaluation behavior
21 lines
689 B
AL
21 lines
689 B
AL
codeunit 50102 "Agent Session Events"
|
|
{
|
|
Access = Internal;
|
|
SingleInstance = true;
|
|
InherentEntitlements = X;
|
|
InherentPermissions = X;
|
|
|
|
var
|
|
GlobalAgentEvents: Codeunit "Sales Review Agent Events";
|
|
|
|
[EventSubscriber(ObjectType::Codeunit, Codeunit::"System Initialization", OnAfterInitialization, '', false, false)]
|
|
local procedure RegisterSubscribersOnAfterInitialization()
|
|
var
|
|
AgentSession: Codeunit "Agent Session";
|
|
AgentMetadataProvider: Enum "Agent Metadata Provider";
|
|
begin
|
|
if not AgentSession.IsAgentSession(AgentMetadataProvider) then
|
|
exit;
|
|
if BindSubscription(GlobalAgentEvents) then;
|
|
end;
|
|
}
|