TokenUsage::getThoughtTokens(): int|null

In this article

Gets the number of thought tokens, which is a subset of the completion token count.

Return

int|null The thought token count or null if not available.

Source

public function getThoughtTokens(): ?int
{
    return $this->thoughtTokens;
}

Changelog

VersionDescription
1.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.