WordPress\AiClient\Results\DTO
TokenUsage::getThoughtTokens
Gets the number of thought tokens, which is a subset of the completion token count.
Method of the class: TokenUsage{}
No Hooks.
Returns
Int|null. The thought token count or null if not available.
Usage
$TokenUsage = new TokenUsage(); $TokenUsage->getThoughtTokens(): ?int;
Changelog
| Since 1.3.0 | Introduced. |
TokenUsage::getThoughtTokens() TokenUsage::getThoughtTokens code WP 7.0
public function getThoughtTokens(): ?int
{
return $this->thoughtTokens;
}