getSessionMetrics abstract method

SessionMetrics getSessionMetrics()

Get session metrics including token usage and performance stats.

FFI (LiteRT-LM): Returns accurate token counts from benchmark info. MediaPipe (Mobile): Returns estimated counts (uses internal metrics if available).

Call this after getResponse or getResponseAsync completes for accurate results.

Implementation

SessionMetrics getSessionMetrics();