MCPcopy Create free account
hub / github.com/OperationT00/T-Code / tokens

Method tokens

src/main/java/com/tcode/render/StatusInfo.java:50–72  ·  view source on GitHub ↗
(String model,
                                    long contextWindow,
                                    long inputTokens,
                                    long outputTokens,
                                    long cachedInputTokens,
                                    String estimatedCost,
                                    boolean hitlEnabled,
                                    long elapsedMillis,
                                    String phase)

Source from the content-addressed store, hash-verified

48 }
49
50 public static StatusInfo tokens(String model,
51 long contextWindow,
52 long inputTokens,
53 long outputTokens,
54 long cachedInputTokens,
55 String estimatedCost,
56 boolean hitlEnabled,
57 long elapsedMillis,
58 String phase) {
59 long total = Math.max(0L, inputTokens) + Math.max(0L, outputTokens);
60 return new StatusInfo(
61 model,
62 total,
63 contextWindow,
64 Math.max(0L, inputTokens),
65 Math.max(0L, outputTokens),
66 Math.max(0L, cachedInputTokens),
67 estimatedCost,
68 hitlEnabled,
69 elapsedMillis,
70 phase == null || phase.isBlank() ? "running" : phase
71 );
72 }
73
74 public StatusInfo withEnvironment(String mcpSummary, String skillSummary) {
75 return new StatusInfo(

Calls

no outgoing calls