MCPcopy Create free account
hub / github.com/idank/explainshell / TokenUsage

Class TokenUsage

explainshell/extraction/llm/providers/__init__.py:9–22  ·  view source on GitHub ↗

Simple container for token counts.

Source from the content-addressed store, hash-verified

7
8
9class TokenUsage:
10 """Simple container for token counts."""
11
12 __slots__ = ("input_tokens", "output_tokens", "reasoning_tokens")
13
14 def __init__(
15 self,
16 input_tokens: int = 0,
17 output_tokens: int = 0,
18 reasoning_tokens: int = 0,
19 ) -> None:
20 self.input_tokens = input_tokens
21 self.output_tokens = output_tokens
22 self.reasoning_tokens = reasoning_tokens
23
24
25class LLMProvider(Protocol):

Callers 15

_process_one_batchFunction · 0.90
finalizeMethod · 0.90
callMethod · 0.90
collect_resultsMethod · 0.90
_parse_jsonlFunction · 0.90
callMethod · 0.90
collect_resultsMethod · 0.90
_make_batch_providerFunction · 0.90

Calls

no outgoing calls