@wrongstack/core 0.24.0 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -918,11 +918,12 @@ function estimateRequestTokens(messages, systemPrompt, tools) {
918
918
  for (const t of tools) {
919
919
  toolsTokens += estimateToolDefTokens(t);
920
920
  }
921
+ const total = messagesTokens + systemTokens + toolsTokens;
921
922
  return {
922
923
  messages: messagesTokens,
923
924
  systemPrompt: systemTokens,
924
925
  tools: toolsTokens,
925
- total: messagesTokens + systemTokens + toolsTokens
926
+ total
926
927
  };
927
928
  }
928
929