WordPress\AiClient\Results\DTO

TokenUsage::getTotalTokenspublicWP 0.1.0

Gets the total number of tokens.

Method of the class: TokenUsage{}

No Hooks.

Returns

Int. The total token count.

Usage

$TokenUsage = new TokenUsage();
$TokenUsage->getTotalTokens(): int;

Changelog

Since 0.1.0 Introduced.

TokenUsage::getTotalTokens() code WP 7.0

public function getTotalTokens(): int
{
    return $this->totalTokens;
}