RerankingUsage
class RerankingUsage extends Usage
Methods
__construct(int $inputTokens = 0, float|null $searchUnits = null)
Create reranking usage data.
array
toArray()
Get the instance as an array.
Details
at line 15
__construct(int $inputTokens = 0, float|null $searchUnits = null)
Create reranking usage data.
in
Usage at line 24
int
totalTokens()
Get the total number of input and output tokens.
at line 25
array
toArray()
Get the instance as an array.
in
Usage at line 43
array
jsonSerialize()
Get the JSON serializable representation of the instance.