verifiers 0.3.2.dev91__py3-none-any.whl → 0.3.2.dev93__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/acp/__init__.py +1 -0
- verifiers/v1/acp/runner.py +10 -1
- verifiers/v1/configs/harness.py +18 -0
- {verifiers-0.3.2.dev91.dist-info → verifiers-0.3.2.dev93.dist-info}/METADATA +1 -1
- {verifiers-0.3.2.dev91.dist-info → verifiers-0.3.2.dev93.dist-info}/RECORD +8 -8
- {verifiers-0.3.2.dev91.dist-info → verifiers-0.3.2.dev93.dist-info}/WHEEL +0 -0
- {verifiers-0.3.2.dev91.dist-info → verifiers-0.3.2.dev93.dist-info}/entry_points.txt +0 -0
- {verifiers-0.3.2.dev91.dist-info → verifiers-0.3.2.dev93.dist-info}/licenses/LICENSE +0 -0
verifiers/v1/acp/__init__.py
CHANGED
|
@@ -264,6 +264,7 @@ class ACPHarnessSession(HarnessSession):
|
|
|
264
264
|
"command": self.config.command,
|
|
265
265
|
"user_contents": user_contents,
|
|
266
266
|
"mcp_urls": self.mcp_urls,
|
|
267
|
+
"mcp_headers": self.harness.config.resolve_mcp_headers(self.mcp_urls),
|
|
267
268
|
"system_prompt": self.config.system_prompt or "",
|
|
268
269
|
"session_meta": self.config.session_meta or {},
|
|
269
270
|
"client_capabilities": self.config.client_capabilities or {},
|
verifiers/v1/acp/runner.py
CHANGED
|
@@ -27,6 +27,7 @@ from acp.schema import (
|
|
|
27
27
|
AllowedOutcome,
|
|
28
28
|
ClientCapabilities,
|
|
29
29
|
DeniedOutcome,
|
|
30
|
+
HttpHeader,
|
|
30
31
|
HttpMcpServer,
|
|
31
32
|
PermissionOption,
|
|
32
33
|
RequestPermissionResponse,
|
|
@@ -132,7 +133,15 @@ def user_content_blocks(contents: list, supports_images: bool) -> list:
|
|
|
132
133
|
|
|
133
134
|
def mcp_servers(config: dict) -> list[HttpMcpServer]:
|
|
134
135
|
return [
|
|
135
|
-
HttpMcpServer(
|
|
136
|
+
HttpMcpServer(
|
|
137
|
+
type="http",
|
|
138
|
+
name=name,
|
|
139
|
+
url=url,
|
|
140
|
+
headers=[
|
|
141
|
+
HttpHeader(name=key, value=value)
|
|
142
|
+
for key, value in config.get("mcp_headers", {}).get(name, {}).items()
|
|
143
|
+
],
|
|
144
|
+
)
|
|
136
145
|
for name, url in config["mcp_urls"].items()
|
|
137
146
|
]
|
|
138
147
|
|
verifiers/v1/configs/harness.py
CHANGED
|
@@ -23,6 +23,24 @@ class HarnessConfig(BaseConfig):
|
|
|
23
23
|
"""Extra program variables; harness-owned variables take precedence."""
|
|
24
24
|
forward_env: list[str] = Field(default_factory=list)
|
|
25
25
|
"""Host variables to forward without writing secrets into config; explicit `env` wins."""
|
|
26
|
+
mcp_header_env: dict[str, dict[str, str]] = Field(default_factory=dict)
|
|
27
|
+
"""ACP MCP headers by server name: header values are read from host env vars."""
|
|
28
|
+
|
|
29
|
+
def resolve_mcp_headers(self, servers: dict[str, str]) -> dict[str, dict[str, str]]:
|
|
30
|
+
resolved = {}
|
|
31
|
+
for name, headers in self.mcp_header_env.items():
|
|
32
|
+
if name not in servers:
|
|
33
|
+
continue
|
|
34
|
+
resolved[name] = {}
|
|
35
|
+
for header, variable in headers.items():
|
|
36
|
+
value = os.environ.get(variable)
|
|
37
|
+
if not value:
|
|
38
|
+
raise ValueError(
|
|
39
|
+
f"MCP header environment variable {variable!r} is missing"
|
|
40
|
+
)
|
|
41
|
+
resolved[name][header] = value
|
|
42
|
+
return resolved
|
|
43
|
+
|
|
26
44
|
tool_timeout: FiniteFloat = Field(600.0, gt=0)
|
|
27
45
|
"""Seconds a single MCP tool call may take; raise it for tools that boot a VM."""
|
|
28
46
|
disabled_tools: list[str] | None = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.3.2.
|
|
3
|
+
Version: 0.3.2.dev93
|
|
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
|
|
@@ -16,8 +16,8 @@ verifiers/v1/task.py,sha256=9YhllEDgoHSz72-1fcYwBADl-rOzASnrSVimLheWmwI,12237
|
|
|
16
16
|
verifiers/v1/taskset.py,sha256=fp2E0IEhL_Ybj9cegZwljfTmW27p_30zTWHFKw_kXE4,4374
|
|
17
17
|
verifiers/v1/trace.py,sha256=dBrStZXoEhVIKtcUzG6lZN0SEAjATOqBZCrgbaPdIXw,30398
|
|
18
18
|
verifiers/v1/types.py,sha256=PH1SxRWXOjPCgQD9aZgM18_bECvFSNQ25gkCbulmTKU,9857
|
|
19
|
-
verifiers/v1/acp/__init__.py,sha256=
|
|
20
|
-
verifiers/v1/acp/runner.py,sha256=
|
|
19
|
+
verifiers/v1/acp/__init__.py,sha256=Zx5FhpkpQHETc-FB_zI3Qt4TxmuMnbv7YxxXk2npjAk,12922
|
|
20
|
+
verifiers/v1/acp/runner.py,sha256=ODrvrC_8DDsAoif9jr4eYJsQzesPxDorxqqm-lo5tNY,11403
|
|
21
21
|
verifiers/v1/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
verifiers/v1/cli/debug.py,sha256=x3bqOwwbwwfwQQpxHrZeKdxsW3ZVtUT9cAn_r4aOro4,11631
|
|
23
23
|
verifiers/v1/cli/gepa.py,sha256=zyUbZ0ykTEq6c-YlPUSk0kqsbkzqR-mkeW4Cl0WGeJo,4180
|
|
@@ -45,7 +45,7 @@ verifiers/v1/configs/__init__.py,sha256=X7u6X7B3ieD1HZl79Tv1kg-yPHbT0QLvAebaGqxV
|
|
|
45
45
|
verifiers/v1/configs/agent.py,sha256=L5P6ombAi4U5wwsspMHAuM8111sB9AVdm8q6B5iV1lw,3251
|
|
46
46
|
verifiers/v1/configs/client.py,sha256=E7ZxeWBFV_AP8MyfxXncTZs-Yn-QKdDS57HCAzqVTrQ,4437
|
|
47
47
|
verifiers/v1/configs/env.py,sha256=-Bcdd4MEPfekVc_fnpiwsb9UDwCNdNCKrAHGoQuuXu8,7784
|
|
48
|
-
verifiers/v1/configs/harness.py,sha256=
|
|
48
|
+
verifiers/v1/configs/harness.py,sha256=OetAXz5ErJPvNxUd2_6iiP0JItCnJl5eS9aH6VoNywE,2569
|
|
49
49
|
verifiers/v1/configs/judge.py,sha256=CBmGgyHXVpcBctvrFD5GlW75wpeFXVFajq_xiMaAVDk,2142
|
|
50
50
|
verifiers/v1/configs/retries.py,sha256=-nPlgmz7J_NZ4GOYG6oCc3thXo4La2SufBmvQGvvPGo,821
|
|
51
51
|
verifiers/v1/configs/runtime.py,sha256=IBX3FxiJ2RJaiX2aKghQ15clFHvJpPUXy8GWQOpNhYM,2967
|
|
@@ -188,8 +188,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
|
|
|
188
188
|
verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
|
|
189
189
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
190
190
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
191
|
-
verifiers-0.3.2.
|
|
192
|
-
verifiers-0.3.2.
|
|
193
|
-
verifiers-0.3.2.
|
|
194
|
-
verifiers-0.3.2.
|
|
195
|
-
verifiers-0.3.2.
|
|
191
|
+
verifiers-0.3.2.dev93.dist-info/METADATA,sha256=n7z1_ZyHBNCdB6lnl0IV3qXKW6igSF6yzwWWf4KLTzo,4237
|
|
192
|
+
verifiers-0.3.2.dev93.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
193
|
+
verifiers-0.3.2.dev93.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
|
|
194
|
+
verifiers-0.3.2.dev93.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
195
|
+
verifiers-0.3.2.dev93.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|