verifiers 0.3.2.dev81__py3-none-any.whl → 0.3.2.dev82__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.
@@ -14,7 +14,6 @@ from openai import APIStatusError, AsyncOpenAI
14
14
  if TYPE_CHECKING:
15
15
  # The harness bundles this module into the generated script before execution.
16
16
  from verifiers.v1.harnesses.utils.compaction import ( # noqa: TC004
17
- CompactionFailed,
18
17
  Compactor,
19
18
  bound_tool_message,
20
19
  compactable,
@@ -226,10 +225,6 @@ async def run_chat_loop(
226
225
  while True:
227
226
  try:
228
227
  completion, messages = await compactor.complete(messages)
229
- except CompactionFailed:
230
- # The context is exhausted and could not be summarized: end the run
231
- # cleanly with what the conversation holds - still a trainable sample.
232
- return
233
228
  except APIStatusError as error:
234
229
  # Null cannot compact, so context exhaustion ends it with the transcript so far.
235
230
  if args.bash or not is_context_overflow(error):
@@ -310,10 +305,7 @@ async def run_chat_loop(
310
305
  messages.append(tool_message)
311
306
  tool_result_tokens += estimated_tokens(str(tool_message["content"]))
312
307
  if compactor.reached(completion, tool_result_tokens) and compactable(messages):
313
- try:
314
- messages = await compactor.compact(messages)
315
- except CompactionFailed:
316
- return
308
+ messages = await compactor.compact(messages)
317
309
 
318
310
 
319
311
  def parse_args() -> argparse.Namespace:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev81
3
+ Version: 0.3.2.dev82
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
@@ -118,7 +118,7 @@ verifiers/v1/harnesses/terminus_2/harness.py,sha256=DMTY1bzvydyjHqzmvBSBGKJsmUzY
118
118
  verifiers/v1/harnesses/terminus_2/program.py,sha256=X8MZdyItU3gbXGXnGOlJ9LWcUTnqIDaxlhkZvoRiqKY,2703
119
119
  verifiers/v1/harnesses/utils/__init__.py,sha256=eTS-Ft2HwoLiYn5u1t_KueLmaZB_W12cdYmcVsE-G5A,364
120
120
  verifiers/v1/harnesses/utils/compaction.py,sha256=DeY6CYLEsv7-vJm26sT2mRaPHu3W2ywiZhvFr_pi6Hg,10495
121
- verifiers/v1/harnesses/utils/core.py,sha256=x3znrq2CkXmdXRCOtamhHN86fI5EaD6zr7krV6n0BnI,15221
121
+ verifiers/v1/harnesses/utils/core.py,sha256=LS02ZCK7X7xdgHJQGr1BlASkKWclr1pgICS9ZY7d7P8,14899
122
122
  verifiers/v1/harnesses/utils/install.py,sha256=BDkkUVZ1brSzCrbQOvMO5mVIE2DsV2pE7rTC5yROYUw,2992
123
123
  verifiers/v1/harnesses/utils/launch.py,sha256=RqPuUY-kT2XVuLSGtXW7kRQEaP-o2KzkiJ7vcoo2neM,2883
124
124
  verifiers/v1/harnesses/utils/mcp.py,sha256=oNhKfLjAW-wScJcDIsW_HfuvKY-JkaGBBZrRLqgRK1g,7355
@@ -190,8 +190,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
190
190
  verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
191
191
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
192
192
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
193
- verifiers-0.3.2.dev81.dist-info/METADATA,sha256=TN6AKnKbh-zqiYkXiNxGvUQDEFFYDE3qFqlBglfX3-g,4237
194
- verifiers-0.3.2.dev81.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
- verifiers-0.3.2.dev81.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
196
- verifiers-0.3.2.dev81.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
- verifiers-0.3.2.dev81.dist-info/RECORD,,
193
+ verifiers-0.3.2.dev82.dist-info/METADATA,sha256=TZDqlOxOUbjo3X-q61lFyZvugNoLuYhwaEeXwLCCWV4,4237
194
+ verifiers-0.3.2.dev82.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
+ verifiers-0.3.2.dev82.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
196
+ verifiers-0.3.2.dev82.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
+ verifiers-0.3.2.dev82.dist-info/RECORD,,