Class: LLMUsage
What a run's LLM calls used. Cached answers cost nothing and are counted as saved.
URI: [knowtation:class/LLMUsage](https://gitlab.tarkam.org/tarkam/knowtation/schema/class/LLMUsage)
[Integer](../types/Integer.md) | Calls sent to the provider | direct | | [cached_calls](../slots/cached_calls.md) | 0..1
[Integer](../types/Integer.md) | Batches answered from the cache | direct | | [skipped_calls](../slots/skipped_calls.md) | 0..1
[Integer](../types/Integer.md) | Batches not asked because of the cost cap | direct | | [input_tokens](../slots/input_tokens.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [output_tokens](../slots/output_tokens.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [saved_input_tokens](../slots/saved_input_tokens.md) | 0..1
[Integer](../types/Integer.md) | Tokens the cached answers cost when first asked | direct | | [saved_output_tokens](../slots/saved_output_tokens.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [cost_usd](../slots/cost_usd.md) | 0..1
[Float](../types/Float.md) | Estimated cost in US dollars; empty when the model's price is unknown | direct | ## Usages | used by | used in | type | used | | --- | --- | --- | --- | | [Run](../classes/Run.md) | [llm_usage](../slots/llm_usage.md) | range | [LLMUsage](../classes/LLMUsage.md) | ## Identifier and Mapping Information ### Schema Source * from schema: https://gitlab.tarkam.org/tarkam/knowtation/schema ## Mappings | Mapping Type | Mapped Value | | --- | --- | | self | knowtation:LLMUsage | | native | knowtation:LLMUsage | ## LinkML Source ### Direct
### Induced
classDiagram
class LLMUsage
click LLMUsage href "../../classes/LLMUsage/"
LLMUsage : cached_calls
LLMUsage : calls
LLMUsage : cost_usd
LLMUsage : input_tokens
LLMUsage : output_tokens
LLMUsage : saved_input_tokens
LLMUsage : saved_output_tokens
LLMUsage : skipped_calls
## Slots
| Name | Cardinality and Range | Description | Inheritance |
| --- | --- | --- | --- |
| [calls](../slots/calls.md) | 0..1 [Integer](../types/Integer.md) | Calls sent to the provider | direct | | [cached_calls](../slots/cached_calls.md) | 0..1
[Integer](../types/Integer.md) | Batches answered from the cache | direct | | [skipped_calls](../slots/skipped_calls.md) | 0..1
[Integer](../types/Integer.md) | Batches not asked because of the cost cap | direct | | [input_tokens](../slots/input_tokens.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [output_tokens](../slots/output_tokens.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [saved_input_tokens](../slots/saved_input_tokens.md) | 0..1
[Integer](../types/Integer.md) | Tokens the cached answers cost when first asked | direct | | [saved_output_tokens](../slots/saved_output_tokens.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [cost_usd](../slots/cost_usd.md) | 0..1
[Float](../types/Float.md) | Estimated cost in US dollars; empty when the model's price is unknown | direct | ## Usages | used by | used in | type | used | | --- | --- | --- | --- | | [Run](../classes/Run.md) | [llm_usage](../slots/llm_usage.md) | range | [LLMUsage](../classes/LLMUsage.md) | ## Identifier and Mapping Information ### Schema Source * from schema: https://gitlab.tarkam.org/tarkam/knowtation/schema ## Mappings | Mapping Type | Mapped Value | | --- | --- | | self | knowtation:LLMUsage | | native | knowtation:LLMUsage | ## LinkML Source ### Direct
name: LLMUsage
description: What a run's LLM calls used. Cached answers cost nothing and are counted
as saved.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
attributes:
calls:
name: calls
description: Calls sent to the provider.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: integer
cached_calls:
name: cached_calls
description: Batches answered from the cache.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: integer
skipped_calls:
name: skipped_calls
description: Batches not asked because of the cost cap.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: integer
input_tokens:
name: input_tokens
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: integer
output_tokens:
name: output_tokens
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: integer
saved_input_tokens:
name: saved_input_tokens
description: Tokens the cached answers cost when first asked.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: integer
saved_output_tokens:
name: saved_output_tokens
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: integer
cost_usd:
name: cost_usd
description: Estimated cost in US dollars; empty when the model's price is unknown.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- LLMUsage
range: float
name: LLMUsage
description: What a run's LLM calls used. Cached answers cost nothing and are counted
as saved.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
attributes:
calls:
name: calls
description: Calls sent to the provider.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: integer
cached_calls:
name: cached_calls
description: Batches answered from the cache.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: integer
skipped_calls:
name: skipped_calls
description: Batches not asked because of the cost cap.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: integer
input_tokens:
name: input_tokens
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: integer
output_tokens:
name: output_tokens
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: integer
saved_input_tokens:
name: saved_input_tokens
description: Tokens the cached answers cost when first asked.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: integer
saved_output_tokens:
name: saved_output_tokens
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: integer
cost_usd:
name: cost_usd
description: Estimated cost in US dollars; empty when the model's price is unknown.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: LLMUsage
domain_of:
- LLMUsage
range: float