verifiers 0.3.2.dev113__py3-none-any.whl → 0.3.2.dev114__py3-none-any.whl

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.
verifiers/v1/trace.py CHANGED
@@ -513,8 +513,10 @@ class Trace(BaseModel, Generic[DataT, StateT, AgentConfigT]):
513
513
 
514
514
  @property
515
515
  def num_total_tokens(self) -> int:
516
- """Final sequence lengths (last prompt + completion) summed across branches."""
517
- return sum(branch.num_total_tokens for branch in self.branches)
516
+ """New input plus generated tokens, counted once per call across branches.
517
+ Input is a lower bound when the engine drops tokens between calls."""
518
+ usage = self.usage
519
+ return self.num_input_tokens + (usage.completion_tokens if usage else 0)
518
520
 
519
521
  @property
520
522
  def usage(self) -> Usage | None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev113
3
+ Version: 0.3.2.dev114
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -14,7 +14,7 @@ verifiers/v1/session.py,sha256=7iarEDRH2epID_O8ai-1HwveXze_o8shnLw9pFMFX5o,18900
14
14
  verifiers/v1/state.py,sha256=EckF2bWp-vV4b1jYJ9sLI5xrfGuI5spIgYYwW926toI,595
15
15
  verifiers/v1/task.py,sha256=7iJLXQo7JKX5jG87atIwT_HZlSto_3a7yB3w__uQQQw,12427
16
16
  verifiers/v1/taskset.py,sha256=fp2E0IEhL_Ybj9cegZwljfTmW27p_30zTWHFKw_kXE4,4374
17
- verifiers/v1/trace.py,sha256=uOlrvP1-C4TYtcK3S6zcCNK6UlS78hUoL-KGvJL0IsQ,32011
17
+ verifiers/v1/trace.py,sha256=q88vHOr3ZwvhzXOneBx00ZQ82fry7UT4DCwidQnbk3Q,32120
18
18
  verifiers/v1/types.py,sha256=PH1SxRWXOjPCgQD9aZgM18_bECvFSNQ25gkCbulmTKU,9857
19
19
  verifiers/v1/acp/__init__.py,sha256=Zx5FhpkpQHETc-FB_zI3Qt4TxmuMnbv7YxxXk2npjAk,12922
20
20
  verifiers/v1/acp/runner.py,sha256=ODrvrC_8DDsAoif9jr4eYJsQzesPxDorxqqm-lo5tNY,11403
@@ -192,8 +192,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
192
192
  verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
193
193
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
194
194
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
195
- verifiers-0.3.2.dev113.dist-info/METADATA,sha256=tnWO-GA8sq0J_CpNwhbLT9_EyFuIhAPsBvzxJMERbOI,4237
196
- verifiers-0.3.2.dev113.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
197
- verifiers-0.3.2.dev113.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
198
- verifiers-0.3.2.dev113.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
199
- verifiers-0.3.2.dev113.dist-info/RECORD,,
195
+ verifiers-0.3.2.dev114.dist-info/METADATA,sha256=O6nF5B4ZhPybAPa2R4VPG50EBCEMrBfQ-EQb5kfT6pA,4237
196
+ verifiers-0.3.2.dev114.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
197
+ verifiers-0.3.2.dev114.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
198
+ verifiers-0.3.2.dev114.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
199
+ verifiers-0.3.2.dev114.dist-info/RECORD,,