verifiers 0.2.2.dev7__py3-none-any.whl → 0.2.2.dev8__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/agent.py CHANGED
@@ -221,19 +221,19 @@ class Agent:
221
221
  task: Task,
222
222
  *,
223
223
  runtime: Runtime | None = None,
224
- shared_tools: Mapping[str, SharedToolServer] | None = None,
224
+ tools: Mapping[str, SharedToolServer] | None = None,
225
225
  on_trace: Callable[[Trace], None] | None = None,
226
226
  ) -> Trace:
227
227
  """Run this agent on `task` once and return the trace: `runtime` places it
228
- into a live borrowed box instead of provisioning one; `shared_tools` are
229
- live servers borrowed from their owner, counted in the pairing check;
228
+ into a live borrowed box instead of provisioning one; `tools` are live
229
+ servers borrowed from their owner, counted in the pairing check;
230
230
  `on_trace` observes the trace the moment it's minted, before any I/O.
231
231
  Retries whole while the trace ends with a retryable error (`config.retries`)
232
232
  — never into a borrowed box; the final trace keeps earlier attempts' errors."""
233
233
  retry = self.config.retries
234
234
  history: list = []
235
235
  for attempt in range(retry.max_retries + 1):
236
- trace = await self._run_once(task, runtime, shared_tools, on_trace)
236
+ trace = await self._run_once(task, runtime, tools, on_trace)
237
237
  if attempt == retry.max_retries or not trace_should_retry(trace, retry):
238
238
  break
239
239
  if runtime is not None:
@@ -356,7 +356,7 @@ class _EpisodeAgent(Agent):
356
356
  they're created, finished ones land in `completed` (the episode's traces),
357
357
  each run takes the eval's gate. The taskset's shared tool servers ride only
358
358
  its own tasks — on an env-minted task they'd wrongly put MCP in play
359
- (`shared_tools=` overrides)."""
359
+ (`tools=` overrides)."""
360
360
 
361
361
  def __init__(
362
362
  self,
@@ -392,7 +392,7 @@ class _EpisodeAgent(Agent):
392
392
  task: Task,
393
393
  *,
394
394
  runtime: Runtime | None = None,
395
- shared_tools: Mapping[str, SharedToolServer] | None = None,
395
+ tools: Mapping[str, SharedToolServer] | None = None,
396
396
  on_trace: Callable[[Trace], None] | None = None,
397
397
  ) -> Trace:
398
398
  last: Trace | None = None
@@ -416,9 +416,7 @@ class _EpisodeAgent(Agent):
416
416
  trace = await super().run(
417
417
  task,
418
418
  runtime=runtime,
419
- shared_tools=shared_tools
420
- if shared_tools is not None
421
- else self._shared_for(task),
419
+ tools=tools if tools is not None else self._shared_for(task),
422
420
  on_trace=watch,
423
421
  )
424
422
  self._completed.append(trace)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: verifiers
3
- Version: 0.2.2.dev7
3
+ Version: 0.2.2.dev8
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
@@ -169,7 +169,7 @@ verifiers/utils/tool_utils.py,sha256=gInWZODWQUZN4TyEMuuITyOUm9qlHJxtcvr1zZl_zJs
169
169
  verifiers/utils/usage_utils.py,sha256=GPLC0xGY_Obrr8X7huWY-2iODZ7tgX-MtO8WSDN4rXI,3904
170
170
  verifiers/utils/version_utils.py,sha256=am3hZLnlaUWTFdllGZR1VMN91hEhiiE8FDmPf1cOG1k,2642
171
171
  verifiers/v1/__init__.py,sha256=r8khgi7_KSY4AfevEefSslyxytScmMzzCBA6kjqvd1I,6653
172
- verifiers/v1/agent.py,sha256=RSBHKw-vUnXiEQk04G6HKg854p88YAQ4Kmxaeml-TlY,19472
172
+ verifiers/v1/agent.py,sha256=k6BBNSgwPkqLe5klzlRLQaNJfSFS1xwwgf_HWa8vaXI,19384
173
173
  verifiers/v1/decorators.py,sha256=XRMkUQSyvXCYP5fOwzBYV5qEOlxLg6rzYhnhrHHHTIQ,3838
174
174
  verifiers/v1/env.py,sha256=WAShpDP4m1i25CcR7KS4u50s3efynT6LOn2EbF8eId8,24788
175
175
  verifiers/v1/episode.py,sha256=XgcStr5k0N4CQ8NXvJzlwZ0y4RNp9cBsE27N47h3750,2307
@@ -316,8 +316,8 @@ verifiers/v1/utils/logging.py,sha256=OcMHA6NsYux3oIzjPuI95rDWmFBHNcHDjZeNIhXTX-Y
316
316
  verifiers/v1/utils/memory.py,sha256=ZkIvGk6uITAH5sKon65LifKPbvZr8mJ__PVc23FZpOQ,1835
317
317
  verifiers/v1/utils/sampling.py,sha256=JczGzBn6s3wsIrSY2Hy3hE8m6NreNgsNzhSjDikQqX0,1037
318
318
  verifiers/v1/utils/version.py,sha256=75ZtI2NHBmlb52KpcKLUpiSXp8q4bASr7uKeXoCKlT8,1582
319
- verifiers-0.2.2.dev7.dist-info/METADATA,sha256=XGofHtw6moKoR60FkN2wIiOs5Gh0nNh2ttkkALN1A-A,4540
320
- verifiers-0.2.2.dev7.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
321
- verifiers-0.2.2.dev7.dist-info/entry_points.txt,sha256=dF82JUYEFslR1AOW8LZfuBWeZeQoyX4wCRrduklg8-I,551
322
- verifiers-0.2.2.dev7.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
323
- verifiers-0.2.2.dev7.dist-info/RECORD,,
319
+ verifiers-0.2.2.dev8.dist-info/METADATA,sha256=2p5mQZSBInURKG2wTcVEbr2b0aUSFdjlO-MBZ0zFXXQ,4540
320
+ verifiers-0.2.2.dev8.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
321
+ verifiers-0.2.2.dev8.dist-info/entry_points.txt,sha256=dF82JUYEFslR1AOW8LZfuBWeZeQoyX4wCRrduklg8-I,551
322
+ verifiers-0.2.2.dev8.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
323
+ verifiers-0.2.2.dev8.dist-info/RECORD,,