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"): Boolean | new in 26 |
| CanConsume(): Boolean | new 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]): Boolean | new 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
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Procedures | | | | | | | | | | | 2 | 1 | |
|---|
| 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