class LLMTokenUsage extends AbstractObject implements IdAble

Properties

$lastQuery from  AbstractObject

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

id()

A unique identifier for this LLMTokenUsage.

int
inputTokens()

No description

int
outputTokens()

No description

int
totalTokens()

No description

Details

in AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

AbstractClient $client
QueryBuilderChain $queryBuilderChain

in AbstractObject at line 19
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

QueryBuilder $leafQueryBuilder
string $leafKey

Return Value

null|array|string|int|float|bool

at line 16
AbstractId id()

A unique identifier for this LLMTokenUsage.

Return Value

AbstractId

at line 22
int inputTokens()

No description

Return Value

int

at line 28
int outputTokens()

No description

Return Value

int

at line 34
int totalTokens()

No description

Return Value

int