The Logging and Monitoring functions help you monitor and debug a conversation. They let you log messages and track token usage.
Syntax: log(level, message)
Writes a log entry to the execution logs.
Syntax: getLLMTokenUsageForSession()
Retrieves the token usage information for the conversation session. Returns null if no token usage information is available.
Syntax: setSensitiveLoggingSettings(settings)
Adjusts the masking and redaction configuration for the conversation. Last modified on June 10, 2026