Skip to main content
The Logging and Monitoring functions help you monitor and debug a conversation. They let you log messages and track token usage.

log

Syntax: log(level, message) Writes a log entry to the execution logs.

getLLMTokenUsageForSession

Syntax: getLLMTokenUsageForSession() Retrieves the token usage information for the conversation session. Returns null if no token usage information is available.

setSensitiveLoggingSettings

Syntax: setSensitiveLoggingSettings(settings) Adjusts the masking and redaction configuration for the conversation.
I