# SessionInformation data type
> Version: _Available or changed with runtime version 4.0._
Is a complex data type for exposing Session information into AL.
## Static methods
The following methods are available on the SessionInformation data type.
Method name|Description
sessioninformation-aitokensused-method|Gets the total amount of AI tokens consumed on the session, since the session started.
sessioninformation-callstack-method|Gets the current callstack.
sessioninformation-sqlrowsread-method|Gets the amount of SQL rows read on the session, since the session started.
sessioninformation-sqlstatementsexecuted-method|Gets the amount of SQL statements executed on the session, since the session started.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/sessioninformation/sessioninformation-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/sessioninformation/sessioninformation-data-type/
