verifiers 0.4.2.dev66__py3-none-any.whl → 0.4.2.dev68__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.
@@ -37,6 +37,7 @@ INSTALL = (
37
37
  + _ENSURE_UV
38
38
  + r"""
39
39
  prefix="$AGENT_PRIME_AGENT_DIR/$PRIME_AGENT_COMMIT"
40
+ rm -f "$prefix/.ready"
40
41
  if [ ! -x "$prefix/bin/prime-agent" ]; then
41
42
  case "$(uname -s)-$(uname -m)" in
42
43
  Linux-x86_64) platform=linux-x64; sha=09659961dfde201cc39f1e69b607385d708da3e591f267a4fea04970afb8b005 ;;
@@ -71,6 +72,7 @@ for pyproject in "$prefix/bin/skills/"*/pyproject.toml; do
71
72
  set -- "$@" --editable "${pyproject%/pyproject.toml}"
72
73
  done
73
74
  uv pip install --python "$PRIME_AGENT_KERNEL_VENV/bin/python" "$@"
75
+ touch "$prefix/.ready"
74
76
  """
75
77
  )
76
78
 
@@ -81,6 +83,10 @@ class PrimeAgentHarnessConfig(HarnessConfig):
81
83
 
82
84
  autonomous: bool = False
83
85
  """Enable Prime Agent's autonomous continuation loop."""
86
+ api: str | None = None
87
+ """The API Prime Agent speaks to the model's provider, e.g. `openai-completions` for an
88
+ OpenAI-compatible endpoint that serves only chat completions. Unset, Prime Agent picks the
89
+ provider's native API (Responses for `openai`)."""
84
90
  dialect: Literal["auto"] = "auto"
85
91
 
86
92
 
@@ -150,9 +156,17 @@ class PrimeAgentHarness(ACPHarness[PrimeAgentHarnessConfig]):
150
156
 
151
157
  async def setup(self, runtime: Runtime) -> None:
152
158
  logger.debug("Ensuring prime-agent %s is installed", self.config.commit)
159
+ ready = f"{PRIME_AGENT_DIR}/{self.config.commit}/.ready"
153
160
  await ensure_installed(
154
161
  runtime,
155
162
  directory=PRIME_AGENT_DIR,
163
+ # A finished install skips the script: its skills install resolves against
164
+ # the package index on every run, which a runtime reused after its network
165
+ # is restricted can no longer reach.
166
+ ready=(
167
+ f"[ -f {ready} ] && [ -x {self._bin()} ] "
168
+ f"&& [ -x {self._kernel_venv()}/bin/python ]"
169
+ ),
156
170
  install=INSTALL,
157
171
  env={
158
172
  **self.config.resolved_env,
@@ -217,6 +231,7 @@ class PrimeAgentHarness(ACPHarness[PrimeAgentHarnessConfig]):
217
231
  # The native provider owns its API path, including any version prefix.
218
232
  "baseUrl": endpoint.removesuffix("/v1"),
219
233
  "apiKey": KEY_VAR,
234
+ **({"api": self.config.api} if self.config.api else {}),
220
235
  "models": [
221
236
  {
222
237
  "id": model,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.2.dev66
3
+ Version: 0.4.2.dev68
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
@@ -104,7 +104,7 @@ verifiers/v1/harnesses/pi/__init__.py,sha256=1mSnzOf-RdEchdeg6IHtcdobG5KIpAhuTdU
104
104
  verifiers/v1/harnesses/pi/gate.mjs,sha256=vk_OqHXhRdYzQL7YMX8Teajm0fh9tokzDvLHVOd2I9o,449
105
105
  verifiers/v1/harnesses/pi/harness.py,sha256=-E7_gBp7FswP3ObGpKh-RrkxsGGsygrUt7i-UHO7AFQ,8052
106
106
  verifiers/v1/harnesses/prime_agent/__init__.py,sha256=xfPC4RrlnyYWaf38tPAOZq4YL6M55lMpj5BoRLmaK8I,171
107
- verifiers/v1/harnesses/prime_agent/harness.py,sha256=a3PbDBejqYt31sLKkCHRCjn5h0_T3FpwZdru6w6jo2Y,12617
107
+ verifiers/v1/harnesses/prime_agent/harness.py,sha256=lAs2E0mfM_nQey5z81wzvdPG3s4-cpcvMI3PzYbTIEw,13453
108
108
  verifiers/v1/harnesses/rlm/__init__.py,sha256=hwx51xTdEWzzYgMj-p4ETNcptoub3IPMDbEdJ4uB8Ns,122
109
109
  verifiers/v1/harnesses/rlm/harness.py,sha256=NZdJBsC1sFcmb0GXmIcJDl4Pi3YJDUNJ2sQ1i1tcLTQ,15839
110
110
  verifiers/v1/harnesses/stirrup/__init__.py,sha256=a-NQxX1bOwaGx8QHj2jWcRJEGiLIxdY6XUMbojr9dOk,142
@@ -188,8 +188,8 @@ verifiers/v1/utils/scope.py,sha256=zbs4pj6AVk4jywlAJ3AX0Q0_kzB9dBB02nY-9H4ELdQ,8
188
188
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
189
189
  verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
190
190
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
191
- verifiers-0.4.2.dev66.dist-info/METADATA,sha256=NRTosw67_jgDse5tSOjtlk-k1FFbUaDhqXHYhYur69Q,5116
192
- verifiers-0.4.2.dev66.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
193
- verifiers-0.4.2.dev66.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
194
- verifiers-0.4.2.dev66.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
195
- verifiers-0.4.2.dev66.dist-info/RECORD,,
191
+ verifiers-0.4.2.dev68.dist-info/METADATA,sha256=-iLG3qRgWtM_VQY5FgbybR8RTL0cmxkhBvs9VGnOmsc,5116
192
+ verifiers-0.4.2.dev68.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
193
+ verifiers-0.4.2.dev68.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
194
+ verifiers-0.4.2.dev68.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
195
+ verifiers-0.4.2.dev68.dist-info/RECORD,,