WordPress\AiClient\Results\DTO
TokenUsage::getThoughtTokens
Gets the number of thought tokens, which is a subset of the completion token count.
Метод класса: TokenUsage{}
Хуков нет.
Возвращает
int|null. The thought token count or null if not available.
Использование
$TokenUsage = new TokenUsage(); $TokenUsage->getThoughtTokens(): ?int;
Список изменений
| С версии 1.3.0 | Введена. |
Код TokenUsage::getThoughtTokens() TokenUsage::getThoughtTokens WP 7.1.4
public function getThoughtTokens(): ?int
{
return $this->thoughtTokens;
}