SessionInformation.AITokensUsed() Method

Version: Available or changed with runtime version 14.0.

Gets the total amount of AI tokens consumed on the session, since the session started.

Note

This method is supported only in Business Central on-premises.

Syntax

AITokensUsed :=   SessionInformation.AITokensUsed()

Note

This method can be invoked using property access syntax.

Return Value

AITokensUsed
Type: BigInteger
The total amount of AI tokens consumed on the session, since the session started.

SessionInformation Data Type
Getting Started with AL
Developing Extensions