wp-includes/php-ai-client/src/Results/DTO/TokenUsage.php:126WordPress\AiClient\Results\DTO\TokenUsageArrayShape public function toArray(): array { $data = [self::KEY_PROMPT_TOKENS => $this->promptTokens, self::KEY_COMPLETION_TOKENS => $this->completionTokens, self::KEY_TOTAL_TOKENS => $this->totalTokens]; if ($this->thoughtTokens !== null) { $data[self::KEY_THOUGHT_TOKENS] = $this->thoughtTokens; } return $data; }Introduced in 0.1.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/src/Results/DTO/TokenUsage.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.