Codeunit 7785 Copilot Quota

System Application, System.AI

Source AL, 98 lines

src/System Application/App/AI/src/Copilot/Consumption and Billing/CopilotQuota.Codeunit.allines 10 to 25 of 98, Copyright (c) Microsoft Corporation. MIT

codeunit 7785 "Copilot Quota"{    Access = Public;    InherentEntitlements = X;    InherentPermissions = X;    var        CopilotQuotaImpl: Codeunit "Copilot Quota Impl.";    /// <summary>    /// Try function to log usage of Copilot quota in the system. This function is only available for Microsoft Copilot features.    /// </summary>    /// <param name="CopilotCapability">The Copilot Capability to log usage for.</param>    /// <param name="Usage">The usage to log.</param>    /// <param name="CopilotQuotaUsageType">The type of Copilot Quota to log.</param>    [TryFunction]

All 98 lines

Public procedures 5 in 29

TryLogQuotaUsage(CopilotCapability: Enum "Copilot Capability"; Usage: Integer; CopilotQuotaUsageType: Enum "Copilot Quota Usage Type"): Booleannew in 26
CanConsume(): Booleannew in 26
LogAgentUserAIConsumption(CopilotCapability: Enum "Copilot Capability"; Usage: Integer; CopilotQuotaUsageType: Enum "Copilot Quota Usage Type"; AgentTaskID: BigInteger; ActionsCharged: Text[1024]; Description: Text; UniqueID: Text[1024])new in 27
IsAgentUserAIConsumptionLogged(UniqueID: Text[1024]): Booleannew in 27
LogAgentUserAIConsumption(CopilotCapability: Enum "Copilot Capability"; Usage: Integer; CopilotQuotaUsageType: Enum "Copilot Quota Usage Type"; AgentTaskID: BigInteger; ActionsCharged: Text[1024]; Description: Text; UniqueID: Text[1024]; ExcludeFromBilling: Boolean)new in 28

Changes 1 in 28

List17181920212223242526272829
Procedures21
LogAgentUserAIConsumption(CopilotCapability: Enum "Copilot Capability"; Usage: Integer; CopilotQuotaUsageType: Enum "Copilot Quota Usage Type"; AgentTaskID: BigInteger; ActionsCharged: Text[1024]; Description: Text; UniqueID: Text[1024]; ExcludeFromBilling: Boolean)new in 28
added

All 3 changes in 26-29