verifiers 0.3.2.dev17__py3-none-any.whl → 0.3.2.dev19__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/legacy/envs/experimental/mcp_env.py +14 -17
- verifiers/v1/harnesses/bash/program.py +21 -23
- verifiers/v1/harnesses/browser_use/program.py +23 -25
- verifiers/v1/harnesses/codex/harness.py +1 -1
- verifiers/v1/harnesses/null/program.py +22 -24
- verifiers/v1/mcp/server.py +36 -17
- verifiers/v1/mcp/toolset.py +2 -2
- verifiers/v1/tasksets/nemo_gym/server.py +30 -0
- verifiers/v1/tasksets/nemo_gym/taskset.py +3 -8
- verifiers/v1/tasksets/nemo_gym/toolset.py +29 -31
- {verifiers-0.3.2.dev17.dist-info → verifiers-0.3.2.dev19.dist-info}/METADATA +3 -5
- {verifiers-0.3.2.dev17.dist-info → verifiers-0.3.2.dev19.dist-info}/RECORD +15 -15
- {verifiers-0.3.2.dev17.dist-info → verifiers-0.3.2.dev19.dist-info}/WHEEL +0 -0
- {verifiers-0.3.2.dev17.dist-info → verifiers-0.3.2.dev19.dist-info}/entry_points.txt +0 -0
- {verifiers-0.3.2.dev17.dist-info → verifiers-0.3.2.dev19.dist-info}/licenses/LICENSE +0 -0
|
@@ -6,7 +6,7 @@ import threading
|
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
from typing import Callable, Dict, List, Optional, cast
|
|
8
8
|
|
|
9
|
-
from mcp import
|
|
9
|
+
from mcp import Client, StdioServerParameters
|
|
10
10
|
from mcp.client.stdio import stdio_client
|
|
11
11
|
from mcp.types import TextContent, Tool as MCPTool
|
|
12
12
|
|
|
@@ -27,7 +27,7 @@ class MCPServerConnection:
|
|
|
27
27
|
def __init__(self, config: MCPServerConfig, logger: logging.Logger):
|
|
28
28
|
self.config = config
|
|
29
29
|
self.logger = logger
|
|
30
|
-
self.
|
|
30
|
+
self.client: Optional[Client] = None
|
|
31
31
|
self.tools: Dict[str, MCPTool] = {}
|
|
32
32
|
|
|
33
33
|
self._connection_task: Optional[asyncio.Task] = None
|
|
@@ -54,21 +54,18 @@ class MCPServerConnection:
|
|
|
54
54
|
env=self.config.env,
|
|
55
55
|
)
|
|
56
56
|
|
|
57
|
-
async with stdio_client(server_params) as
|
|
58
|
-
|
|
59
|
-
self.session = session
|
|
57
|
+
async with Client(stdio_client(server_params)) as client:
|
|
58
|
+
self.client = client
|
|
60
59
|
|
|
61
|
-
|
|
60
|
+
tools_response = await client.list_tools()
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
for tool in tools_response.tools:
|
|
63
|
+
self.tools[tool.name] = tool
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
self.tools[tool.name] = tool
|
|
65
|
+
self._ready.set()
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
while True:
|
|
71
|
-
await asyncio.sleep(1)
|
|
67
|
+
while True:
|
|
68
|
+
await asyncio.sleep(1)
|
|
72
69
|
|
|
73
70
|
except asyncio.CancelledError:
|
|
74
71
|
raise
|
|
@@ -76,14 +73,14 @@ class MCPServerConnection:
|
|
|
76
73
|
self._error = e
|
|
77
74
|
self._ready.set()
|
|
78
75
|
finally:
|
|
79
|
-
self.
|
|
76
|
+
self.client = None
|
|
80
77
|
self.tools = {}
|
|
81
78
|
|
|
82
79
|
async def call_tool(self, tool_name: str, arguments: dict) -> str:
|
|
83
|
-
assert self.
|
|
80
|
+
assert self.client is not None, f"Server '{self.config.name}' not connected"
|
|
84
81
|
assert self.loop is not None, "Connection loop not initialized"
|
|
85
82
|
fut = asyncio.run_coroutine_threadsafe(
|
|
86
|
-
self.
|
|
83
|
+
self.client.call_tool(tool_name, arguments=arguments), self.loop
|
|
87
84
|
)
|
|
88
85
|
result = await asyncio.wrap_future(fut)
|
|
89
86
|
|
|
@@ -130,7 +127,7 @@ class MCPToolWrapper:
|
|
|
130
127
|
"""Convert the MCP tool metadata directly to vf.Tool."""
|
|
131
128
|
parameters = cast(
|
|
132
129
|
dict[str, object],
|
|
133
|
-
self.tool.
|
|
130
|
+
self.tool.input_schema or {"type": "object", "properties": {}},
|
|
134
131
|
)
|
|
135
132
|
return Tool(
|
|
136
133
|
name=self.__name__,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# /// script
|
|
2
2
|
# requires-python = ">=3.10"
|
|
3
|
-
# dependencies = ["openai", "mcp
|
|
3
|
+
# dependencies = ["openai", "mcp==2.0.0", "httpx", "httpx2", "tenacity"]
|
|
4
4
|
# ///
|
|
5
5
|
"""Secrets arrive through argv so local tool subprocesses do not inherit them."""
|
|
6
6
|
|
|
@@ -187,12 +187,14 @@ async def chat(
|
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
@asynccontextmanager
|
|
190
|
-
async def
|
|
191
|
-
"""One fresh
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
replay
|
|
195
|
-
|
|
190
|
+
async def mcp_client(spec: dict):
|
|
191
|
+
"""One fresh MCP client, negotiating the newest protocol and falling back for old servers.
|
|
192
|
+
|
|
193
|
+
It is opened and closed within the caller's task so AnyIO cancellation scopes stay correctly
|
|
194
|
+
nested. Closing noise after a completed body cannot fail or replay an answered call.
|
|
195
|
+
"""
|
|
196
|
+
import httpx2
|
|
197
|
+
from mcp import Client
|
|
196
198
|
from mcp.client.streamable_http import (
|
|
197
199
|
create_mcp_http_client,
|
|
198
200
|
streamable_http_client,
|
|
@@ -203,22 +205,18 @@ async def mcp_session(spec: dict):
|
|
|
203
205
|
http_client = await stack.enter_async_context(
|
|
204
206
|
create_mcp_http_client(
|
|
205
207
|
headers=spec.get("headers") or None,
|
|
206
|
-
timeout=
|
|
208
|
+
timeout=httpx2.Timeout(spec.get("timeout", MCP_TIMEOUT), connect=5.0),
|
|
207
209
|
)
|
|
208
210
|
)
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
)
|
|
212
|
-
session = await stack.enter_async_context(ClientSession(read, write))
|
|
213
|
-
await session.initialize()
|
|
214
|
-
yield session
|
|
211
|
+
transport = streamable_http_client(spec["url"], http_client=http_client)
|
|
212
|
+
yield await stack.enter_async_context(Client(transport))
|
|
215
213
|
finally:
|
|
216
214
|
with suppress(Exception):
|
|
217
215
|
await stack.aclose()
|
|
218
216
|
|
|
219
217
|
|
|
220
218
|
async def with_retry(call):
|
|
221
|
-
"""Run one
|
|
219
|
+
"""Run one client operation, retrying transient failures with backoff. A call whose
|
|
222
220
|
response was lost may be replayed — MCP has no idempotency key, so tools should tolerate
|
|
223
221
|
at-least-once delivery (a tool that fails reports through its result, not an exception)."""
|
|
224
222
|
async for attempt in AsyncRetrying(
|
|
@@ -235,7 +233,7 @@ async def connect_mcp(
|
|
|
235
233
|
) -> tuple[list[dict], dict, dict]:
|
|
236
234
|
"""Enumerate each configured MCP server's tools (a streamable-HTTP `url`); return (tool schemas,
|
|
237
235
|
dispatch mapping `<server>_<tool>` -> (server name, raw tool name), servers mapping name -> spec).
|
|
238
|
-
No session is held
|
|
236
|
+
No protocol session is held; a fresh client handles each call."""
|
|
239
237
|
tool_schemas: list[dict] = []
|
|
240
238
|
dispatch: dict[str, tuple] = {}
|
|
241
239
|
servers: dict[str, dict] = {}
|
|
@@ -243,8 +241,8 @@ async def connect_mcp(
|
|
|
243
241
|
servers[name] = spec
|
|
244
242
|
|
|
245
243
|
async def list_tools(spec: dict = spec):
|
|
246
|
-
async with
|
|
247
|
-
return (await
|
|
244
|
+
async with mcp_client(spec) as client:
|
|
245
|
+
return (await client.list_tools()).tools
|
|
248
246
|
|
|
249
247
|
for tool in await with_retry(list_tools):
|
|
250
248
|
# A server named "" (TOOL_PREFIX = None) advertises its tools bare.
|
|
@@ -259,7 +257,7 @@ async def connect_mcp(
|
|
|
259
257
|
"function": {
|
|
260
258
|
"name": full,
|
|
261
259
|
"description": tool.description or "",
|
|
262
|
-
"parameters": tool.
|
|
260
|
+
"parameters": tool.input_schema,
|
|
263
261
|
},
|
|
264
262
|
}
|
|
265
263
|
)
|
|
@@ -273,7 +271,7 @@ def mcp_content_to_chat_content(blocks) -> str | list[dict]:
|
|
|
273
271
|
if block.type == "text":
|
|
274
272
|
parts.append({"type": "text", "text": block.text})
|
|
275
273
|
elif block.type == "image":
|
|
276
|
-
url = f"data:{block.
|
|
274
|
+
url = f"data:{block.mime_type};base64,{block.data}"
|
|
277
275
|
parts.append({"type": "image_url", "image_url": {"url": url}})
|
|
278
276
|
else:
|
|
279
277
|
parts.append({"type": "text", "text": str(block)})
|
|
@@ -287,13 +285,13 @@ def mcp_content_to_chat_content(blocks) -> str | list[dict]:
|
|
|
287
285
|
async def call_mcp(
|
|
288
286
|
servers: dict, dispatch: dict, name: str, arguments: dict
|
|
289
287
|
) -> str | list[dict]:
|
|
290
|
-
"""Call a tool
|
|
288
|
+
"""Call a tool with a fresh client per attempt — see `with_retry` for replay semantics.
|
|
291
289
|
The result is converted outside the retry so a conversion failure fails once."""
|
|
292
290
|
server_name, raw = dispatch[name]
|
|
293
291
|
|
|
294
292
|
async def call():
|
|
295
|
-
async with
|
|
296
|
-
return await
|
|
293
|
+
async with mcp_client(servers[server_name]) as client:
|
|
294
|
+
return await client.call_tool(raw, arguments)
|
|
297
295
|
|
|
298
296
|
result = await with_retry(call)
|
|
299
297
|
return mcp_content_to_chat_content(result.content)
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# /// script
|
|
2
|
-
# requires-python = ">=3.
|
|
2
|
+
# requires-python = ">=3.11"
|
|
3
3
|
# dependencies = [
|
|
4
4
|
# "browser-harness==0.1.8",
|
|
5
5
|
# "openai",
|
|
6
|
-
# "mcp
|
|
6
|
+
# "mcp==2.0.0",
|
|
7
7
|
# "httpx",
|
|
8
|
+
# "httpx2",
|
|
8
9
|
# "tenacity",
|
|
9
10
|
# ]
|
|
10
11
|
# ///
|
|
@@ -31,7 +32,6 @@ from pathlib import Path
|
|
|
31
32
|
from typing import Any, cast
|
|
32
33
|
from urllib.parse import urlsplit
|
|
33
34
|
|
|
34
|
-
import httpx
|
|
35
35
|
from openai import AsyncOpenAI
|
|
36
36
|
from tenacity import AsyncRetrying, stop_after_attempt, wait_exponential_jitter
|
|
37
37
|
|
|
@@ -188,12 +188,14 @@ async def chat(
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
@asynccontextmanager
|
|
191
|
-
async def
|
|
192
|
-
"""One fresh
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
replay
|
|
196
|
-
|
|
191
|
+
async def mcp_client(spec: dict):
|
|
192
|
+
"""One fresh MCP client, negotiating the newest protocol and falling back for old servers.
|
|
193
|
+
|
|
194
|
+
It is opened and closed within the caller's task so AnyIO cancellation scopes stay correctly
|
|
195
|
+
nested. Closing noise after a completed body cannot fail or replay an answered call.
|
|
196
|
+
"""
|
|
197
|
+
import httpx2
|
|
198
|
+
from mcp import Client
|
|
197
199
|
from mcp.client.streamable_http import (
|
|
198
200
|
create_mcp_http_client,
|
|
199
201
|
streamable_http_client,
|
|
@@ -204,22 +206,18 @@ async def mcp_session(spec: dict):
|
|
|
204
206
|
http_client = await stack.enter_async_context(
|
|
205
207
|
create_mcp_http_client(
|
|
206
208
|
headers=spec.get("headers") or None,
|
|
207
|
-
timeout=
|
|
209
|
+
timeout=httpx2.Timeout(spec.get("timeout", MCP_TIMEOUT), connect=5.0),
|
|
208
210
|
)
|
|
209
211
|
)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
)
|
|
213
|
-
session = await stack.enter_async_context(ClientSession(read, write))
|
|
214
|
-
await session.initialize()
|
|
215
|
-
yield session
|
|
212
|
+
transport = streamable_http_client(spec["url"], http_client=http_client)
|
|
213
|
+
yield await stack.enter_async_context(Client(transport))
|
|
216
214
|
finally:
|
|
217
215
|
with suppress(Exception):
|
|
218
216
|
await stack.aclose()
|
|
219
217
|
|
|
220
218
|
|
|
221
219
|
async def with_retry(call):
|
|
222
|
-
"""Run one
|
|
220
|
+
"""Run one client operation, retrying transient failures with backoff. A call whose
|
|
223
221
|
response was lost may be replayed — MCP has no idempotency key, so tools should tolerate
|
|
224
222
|
at-least-once delivery (a tool that fails reports through its result, not an exception)."""
|
|
225
223
|
async for attempt in AsyncRetrying(
|
|
@@ -236,7 +234,7 @@ async def connect_mcp(
|
|
|
236
234
|
) -> tuple[list[dict], dict, dict]:
|
|
237
235
|
"""Enumerate each configured MCP server's tools (a streamable-HTTP `url`); return (tool schemas,
|
|
238
236
|
dispatch mapping `<server>_<tool>` -> (server name, raw tool name), servers mapping name -> spec).
|
|
239
|
-
No session is held
|
|
237
|
+
No protocol session is held; a fresh client handles each call."""
|
|
240
238
|
tool_schemas: list[dict] = []
|
|
241
239
|
dispatch: dict[str, tuple] = {}
|
|
242
240
|
servers: dict[str, dict] = {}
|
|
@@ -244,8 +242,8 @@ async def connect_mcp(
|
|
|
244
242
|
servers[name] = spec
|
|
245
243
|
|
|
246
244
|
async def list_tools(spec: dict = spec):
|
|
247
|
-
async with
|
|
248
|
-
return (await
|
|
245
|
+
async with mcp_client(spec) as client:
|
|
246
|
+
return (await client.list_tools()).tools
|
|
249
247
|
|
|
250
248
|
for tool in await with_retry(list_tools):
|
|
251
249
|
# A server named "" (TOOL_PREFIX = None) advertises its tools bare.
|
|
@@ -260,7 +258,7 @@ async def connect_mcp(
|
|
|
260
258
|
"function": {
|
|
261
259
|
"name": full,
|
|
262
260
|
"description": tool.description or "",
|
|
263
|
-
"parameters": tool.
|
|
261
|
+
"parameters": tool.input_schema,
|
|
264
262
|
},
|
|
265
263
|
}
|
|
266
264
|
)
|
|
@@ -274,7 +272,7 @@ def mcp_content_to_chat_content(blocks) -> str | list[dict]:
|
|
|
274
272
|
if block.type == "text":
|
|
275
273
|
parts.append({"type": "text", "text": block.text})
|
|
276
274
|
elif block.type == "image":
|
|
277
|
-
url = f"data:{block.
|
|
275
|
+
url = f"data:{block.mime_type};base64,{block.data}"
|
|
278
276
|
parts.append({"type": "image_url", "image_url": {"url": url}})
|
|
279
277
|
else:
|
|
280
278
|
parts.append({"type": "text", "text": str(block)})
|
|
@@ -288,13 +286,13 @@ def mcp_content_to_chat_content(blocks) -> str | list[dict]:
|
|
|
288
286
|
async def call_mcp(
|
|
289
287
|
servers: dict, dispatch: dict, name: str, arguments: dict
|
|
290
288
|
) -> str | list[dict]:
|
|
291
|
-
"""Call a tool
|
|
289
|
+
"""Call a tool with a fresh client per attempt — see `with_retry` for replay semantics.
|
|
292
290
|
The result is converted outside the retry so a conversion failure fails once."""
|
|
293
291
|
server_name, raw = dispatch[name]
|
|
294
292
|
|
|
295
293
|
async def call():
|
|
296
|
-
async with
|
|
297
|
-
return await
|
|
294
|
+
async with mcp_client(servers[server_name]) as client:
|
|
295
|
+
return await client.call_tool(raw, arguments)
|
|
298
296
|
|
|
299
297
|
result = await with_retry(call)
|
|
300
298
|
return mcp_content_to_chat_content(result.content)
|
|
@@ -138,7 +138,7 @@ class CodexHarness(ACPHarness[CodexHarnessConfig]):
|
|
|
138
138
|
f"failed to create Codex home: {created.stderr.strip()[-500:]}"
|
|
139
139
|
)
|
|
140
140
|
|
|
141
|
-
mcp_config = (
|
|
141
|
+
mcp_config = "features={mcp_2026_07_28=true}\n" + (
|
|
142
142
|
"mcp_servers={"
|
|
143
143
|
+ ",".join(
|
|
144
144
|
f"{json.dumps(name, ensure_ascii=False)}="
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# /// script
|
|
2
2
|
# requires-python = ">=3.11"
|
|
3
|
-
# dependencies = ["openai", "mcp
|
|
3
|
+
# dependencies = ["openai", "mcp==2.0.0", "httpx", "httpx2", "tenacity"]
|
|
4
4
|
# ///
|
|
5
5
|
"""The interception endpoint and secret arrive through argv rather than the environment."""
|
|
6
6
|
|
|
@@ -59,12 +59,14 @@ async def chat(
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
@asynccontextmanager
|
|
62
|
-
async def
|
|
63
|
-
"""One fresh
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
replay
|
|
67
|
-
|
|
62
|
+
async def mcp_client(spec: dict):
|
|
63
|
+
"""One fresh MCP client, negotiating the newest protocol and falling back for old servers.
|
|
64
|
+
|
|
65
|
+
It is opened and closed within the caller's task so AnyIO cancellation scopes stay correctly
|
|
66
|
+
nested. Closing noise after a completed body cannot fail or replay an answered call.
|
|
67
|
+
"""
|
|
68
|
+
import httpx2
|
|
69
|
+
from mcp import Client
|
|
68
70
|
from mcp.client.streamable_http import (
|
|
69
71
|
create_mcp_http_client,
|
|
70
72
|
streamable_http_client,
|
|
@@ -75,22 +77,18 @@ async def mcp_session(spec: dict):
|
|
|
75
77
|
http_client = await stack.enter_async_context(
|
|
76
78
|
create_mcp_http_client(
|
|
77
79
|
headers=spec.get("headers") or None,
|
|
78
|
-
timeout=
|
|
80
|
+
timeout=httpx2.Timeout(spec.get("timeout", MCP_TIMEOUT), connect=5.0),
|
|
79
81
|
)
|
|
80
82
|
)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
)
|
|
84
|
-
session = await stack.enter_async_context(ClientSession(read, write))
|
|
85
|
-
await session.initialize()
|
|
86
|
-
yield session
|
|
83
|
+
transport = streamable_http_client(spec["url"], http_client=http_client)
|
|
84
|
+
yield await stack.enter_async_context(Client(transport))
|
|
87
85
|
finally:
|
|
88
86
|
with suppress(Exception):
|
|
89
87
|
await stack.aclose()
|
|
90
88
|
|
|
91
89
|
|
|
92
90
|
async def with_retry(call):
|
|
93
|
-
"""Run one
|
|
91
|
+
"""Run one client operation, retrying transient failures with backoff. A call whose
|
|
94
92
|
response was lost may be replayed — MCP has no idempotency key, so tools should tolerate
|
|
95
93
|
at-least-once delivery (a tool that fails reports through its result, not an exception)."""
|
|
96
94
|
async for attempt in AsyncRetrying(
|
|
@@ -105,7 +103,7 @@ async def with_retry(call):
|
|
|
105
103
|
async def connect_mcp(config: dict) -> tuple[list[dict], dict, dict]:
|
|
106
104
|
"""Enumerate each configured MCP server's tools (a streamable-HTTP `url`); return (tool schemas,
|
|
107
105
|
dispatch mapping advertised name -> (server name, raw tool name), servers mapping name -> spec).
|
|
108
|
-
No session is held
|
|
106
|
+
No protocol session is held; a fresh client handles each call. Tools are advertised as
|
|
109
107
|
`<server>_<tool>`; a server named `""` (TOOL_PREFIX = None) advertises its tools bare, so names
|
|
110
108
|
must be unique across the rollout's servers."""
|
|
111
109
|
tool_schemas: list[dict] = []
|
|
@@ -115,8 +113,8 @@ async def connect_mcp(config: dict) -> tuple[list[dict], dict, dict]:
|
|
|
115
113
|
servers[name] = spec
|
|
116
114
|
|
|
117
115
|
async def list_tools(spec: dict = spec):
|
|
118
|
-
async with
|
|
119
|
-
return (await
|
|
116
|
+
async with mcp_client(spec) as client:
|
|
117
|
+
return (await client.list_tools()).tools
|
|
120
118
|
|
|
121
119
|
for tool in await with_retry(list_tools):
|
|
122
120
|
full = f"{name}_{tool.name}" if name else tool.name
|
|
@@ -130,7 +128,7 @@ async def connect_mcp(config: dict) -> tuple[list[dict], dict, dict]:
|
|
|
130
128
|
"function": {
|
|
131
129
|
"name": full,
|
|
132
130
|
"description": tool.description or "",
|
|
133
|
-
"parameters": tool.
|
|
131
|
+
"parameters": tool.input_schema,
|
|
134
132
|
},
|
|
135
133
|
}
|
|
136
134
|
)
|
|
@@ -144,7 +142,7 @@ def mcp_content_to_chat_content(blocks) -> str | list[dict]:
|
|
|
144
142
|
if block.type == "text":
|
|
145
143
|
parts.append({"type": "text", "text": block.text})
|
|
146
144
|
elif block.type == "image":
|
|
147
|
-
url = f"data:{block.
|
|
145
|
+
url = f"data:{block.mime_type};base64,{block.data}"
|
|
148
146
|
parts.append({"type": "image_url", "image_url": {"url": url}})
|
|
149
147
|
else:
|
|
150
148
|
parts.append({"type": "text", "text": str(block)})
|
|
@@ -158,13 +156,13 @@ def mcp_content_to_chat_content(blocks) -> str | list[dict]:
|
|
|
158
156
|
async def call_mcp(
|
|
159
157
|
servers: dict, dispatch: dict, name: str, arguments: dict
|
|
160
158
|
) -> str | list[dict]:
|
|
161
|
-
"""Call a tool
|
|
159
|
+
"""Call a tool with a fresh client per attempt — see `with_retry` for replay semantics.
|
|
162
160
|
The result is converted outside the retry so a conversion failure fails once."""
|
|
163
161
|
server_name, raw = dispatch[name]
|
|
164
162
|
|
|
165
163
|
async def call():
|
|
166
|
-
async with
|
|
167
|
-
return await
|
|
164
|
+
async with mcp_client(servers[server_name]) as client:
|
|
165
|
+
return await client.call_tool(raw, arguments)
|
|
168
166
|
|
|
169
167
|
result = await with_retry(call)
|
|
170
168
|
return mcp_content_to_chat_content(result.content)
|
|
@@ -197,7 +195,7 @@ async def main() -> None:
|
|
|
197
195
|
)
|
|
198
196
|
config = json.loads(args.mcp_config or "{}")
|
|
199
197
|
if config.get("mcpServers"):
|
|
200
|
-
# Bound only tool enumeration; each
|
|
198
|
+
# Bound only tool enumeration; each client is opened and closed within this task.
|
|
201
199
|
async with asyncio.timeout(60):
|
|
202
200
|
tools, dispatch, servers = await connect_mcp(config)
|
|
203
201
|
else:
|
verifiers/v1/mcp/server.py
CHANGED
|
@@ -10,6 +10,7 @@ import logging
|
|
|
10
10
|
import os
|
|
11
11
|
from collections.abc import Callable
|
|
12
12
|
from typing import TYPE_CHECKING, ClassVar, Generic, TypeVar
|
|
13
|
+
from urllib.parse import parse_qs
|
|
13
14
|
|
|
14
15
|
from pydantic import TypeAdapter, ValidationError
|
|
15
16
|
from pydantic_config import BaseConfig
|
|
@@ -19,7 +20,7 @@ from verifiers.v1.utils.generic import concrete_type
|
|
|
19
20
|
|
|
20
21
|
if TYPE_CHECKING:
|
|
21
22
|
from httpx import AsyncClient, Response
|
|
22
|
-
from mcp.server.
|
|
23
|
+
from mcp.server.mcpserver import MCPServer
|
|
23
24
|
|
|
24
25
|
ConfigT = TypeVar("ConfigT", bound=BaseConfig)
|
|
25
26
|
logger = logging.getLogger(__name__)
|
|
@@ -95,18 +96,14 @@ def state_signature(secret: str, url: str, route: str) -> str:
|
|
|
95
96
|
_call_state: contextvars.ContextVar[State | None] = contextvars.ContextVar(
|
|
96
97
|
"vf_call_state", default=None
|
|
97
98
|
)
|
|
99
|
+
_request_query_params: contextvars.ContextVar[dict[str, list[str]] | None] = (
|
|
100
|
+
contextvars.ContextVar("vf_request_query_params", default=None)
|
|
101
|
+
)
|
|
98
102
|
|
|
99
103
|
|
|
100
104
|
def _request_query(name: str) -> str | None:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
try:
|
|
104
|
-
request = request_ctx.get().request
|
|
105
|
-
except LookupError:
|
|
106
|
-
return None
|
|
107
|
-
if request is None:
|
|
108
|
-
return None
|
|
109
|
-
values = request.query_params.getlist(name)
|
|
105
|
+
params = _request_query_params.get()
|
|
106
|
+
values = params.get(name, []) if params else []
|
|
110
107
|
if len(values) > 1:
|
|
111
108
|
raise ValueError(f"duplicate {name!r} state coordinate")
|
|
112
109
|
return values[0] if values else None
|
|
@@ -248,7 +245,7 @@ class ServerBase(Generic[ConfigT, StateT]):
|
|
|
248
245
|
finally:
|
|
249
246
|
_call_state.reset(token)
|
|
250
247
|
|
|
251
|
-
#
|
|
248
|
+
# MCPServer must advertise the wrapped tool's parameters, not `*args, **kwargs`.
|
|
252
249
|
wrapper.__signature__ = inspect.signature(fn) # type: ignore[attr-defined]
|
|
253
250
|
return wrapper
|
|
254
251
|
|
|
@@ -266,7 +263,7 @@ class ServerBase(Generic[ConfigT, StateT]):
|
|
|
266
263
|
async def setup_task(self, task) -> None:
|
|
267
264
|
"""Initialize per-task state; taskset-scoped servers skip this hook."""
|
|
268
265
|
|
|
269
|
-
def register(self, mcp:
|
|
266
|
+
def register(self, mcp: MCPServer) -> None:
|
|
270
267
|
"""Register this server's MCP handlers."""
|
|
271
268
|
raise NotImplementedError
|
|
272
269
|
|
|
@@ -276,7 +273,9 @@ class ServerBase(Generic[ConfigT, StateT]):
|
|
|
276
273
|
from pathlib import Path
|
|
277
274
|
|
|
278
275
|
import uvicorn
|
|
279
|
-
from mcp.server.
|
|
276
|
+
from mcp.server.mcpserver import MCPServer
|
|
277
|
+
|
|
278
|
+
from verifiers import __version__
|
|
280
279
|
|
|
281
280
|
_die_with_parent()
|
|
282
281
|
host = os.environ.get("MCP_HOST", "127.0.0.1")
|
|
@@ -306,14 +305,34 @@ class ServerBase(Generic[ConfigT, StateT]):
|
|
|
306
305
|
security = TransportSecuritySettings(
|
|
307
306
|
enable_dns_rebinding_protection=False
|
|
308
307
|
)
|
|
309
|
-
mcp =
|
|
310
|
-
self.server_name,
|
|
308
|
+
mcp = MCPServer(
|
|
309
|
+
self.server_name or type(self).__name__,
|
|
310
|
+
version=__version__,
|
|
311
|
+
)
|
|
312
|
+
self.register(mcp)
|
|
313
|
+
# Modern HTTP is inherently sessionless. Keep the legacy leg stateless too so
|
|
314
|
+
# older agent clients can use the same reconnect-per-call endpoint.
|
|
315
|
+
mcp_app = mcp.streamable_http_app(
|
|
311
316
|
json_response=True,
|
|
312
317
|
stateless_http=True,
|
|
313
318
|
transport_security=security,
|
|
314
319
|
)
|
|
315
|
-
|
|
316
|
-
app
|
|
320
|
+
|
|
321
|
+
async def app(scope, receive, send):
|
|
322
|
+
query = (
|
|
323
|
+
parse_qs(
|
|
324
|
+
scope.get("query_string", b"").decode(),
|
|
325
|
+
keep_blank_values=True,
|
|
326
|
+
)
|
|
327
|
+
if scope["type"] == "http"
|
|
328
|
+
else None
|
|
329
|
+
)
|
|
330
|
+
token = _request_query_params.set(query)
|
|
331
|
+
try:
|
|
332
|
+
await mcp_app(scope, receive, send)
|
|
333
|
+
finally:
|
|
334
|
+
_request_query_params.reset(token)
|
|
335
|
+
|
|
317
336
|
server = uvicorn.Server(uvicorn.Config(app, log_level="critical"))
|
|
318
337
|
await server.serve(sockets=[sock])
|
|
319
338
|
finally:
|
verifiers/v1/mcp/toolset.py
CHANGED
|
@@ -10,7 +10,7 @@ from verifiers.v1.state import StateT
|
|
|
10
10
|
from verifiers.v1.utils.decorators import discover_decorated
|
|
11
11
|
|
|
12
12
|
if TYPE_CHECKING:
|
|
13
|
-
from mcp.server.
|
|
13
|
+
from mcp.server.mcpserver import MCPServer
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class ToolsetConfig(BaseConfig):
|
|
@@ -25,7 +25,7 @@ class SharedToolsetConfig(BaseConfig):
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class Toolset(ServerBase[ConfigT, StateT]):
|
|
28
|
-
def register(self, mcp:
|
|
28
|
+
def register(self, mcp: MCPServer) -> None:
|
|
29
29
|
for fn in discover_decorated(self, "tool"):
|
|
30
30
|
mcp.add_tool(
|
|
31
31
|
self._with_state(fn),
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.12,<3.14"
|
|
3
|
+
# dependencies = ["nemo-gym==0.4.0"]
|
|
4
|
+
#
|
|
5
|
+
# [[tool.uv.dependency-metadata]]
|
|
6
|
+
# name = "nemo-gym"
|
|
7
|
+
# version = "0.4.0"
|
|
8
|
+
# requires-python = ">=3.12"
|
|
9
|
+
# requires-dist = [
|
|
10
|
+
# "aiohttp>=3.14.1",
|
|
11
|
+
# "fastapi",
|
|
12
|
+
# "gprof2dot",
|
|
13
|
+
# "hydra-core",
|
|
14
|
+
# "itsdangerous",
|
|
15
|
+
# "mcp>=1.27,<2",
|
|
16
|
+
# "omegaconf",
|
|
17
|
+
# "openai>=2.9",
|
|
18
|
+
# "orjson",
|
|
19
|
+
# "pandas",
|
|
20
|
+
# "pydantic",
|
|
21
|
+
# "pydot",
|
|
22
|
+
# "ray>=2.55.1",
|
|
23
|
+
# "requests",
|
|
24
|
+
# "rich",
|
|
25
|
+
# "typing-extensions",
|
|
26
|
+
# "uvicorn",
|
|
27
|
+
# "wandb",
|
|
28
|
+
# "yappi",
|
|
29
|
+
# ]
|
|
30
|
+
# ///
|
|
1
31
|
"""Serve one resource-server class from the published NeMo Gym package."""
|
|
2
32
|
|
|
3
33
|
import os
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"""NeMo Gym resource-server tasks driven by Verifiers harnesses."""
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
|
-
import importlib.util
|
|
5
4
|
import json
|
|
6
|
-
import sys
|
|
7
5
|
from collections.abc import Iterator
|
|
8
6
|
from pathlib import Path
|
|
9
7
|
from typing import Any, ClassVar, cast
|
|
@@ -131,19 +129,16 @@ class NeMoGymEnv(SingleAgentEnv):
|
|
|
131
129
|
config = taskset.config.task
|
|
132
130
|
if config.resources_url is not None:
|
|
133
131
|
return
|
|
134
|
-
if importlib.util.find_spec("nemo_gym") is None:
|
|
135
|
-
raise RuntimeError(
|
|
136
|
-
"Managed NeMo Gym tasksets require the `nemo-gym` extra. "
|
|
137
|
-
"Install it with: `uv sync --python 3.12 --extra nemo-gym`"
|
|
138
|
-
)
|
|
139
132
|
entrypoint = taskset.resource_server
|
|
140
133
|
if entrypoint is None:
|
|
141
134
|
raise ValueError("set --env.taskset.task.resources-url")
|
|
142
135
|
|
|
143
136
|
runtime = self._nemo_runtime = make_runtime(SubprocessConfig())
|
|
144
137
|
await runtime.start()
|
|
138
|
+
server = Path(__file__).with_name("server.py")
|
|
139
|
+
program = await runtime.prepare_uv_script(server.read_bytes())
|
|
145
140
|
await runtime.run_background(
|
|
146
|
-
|
|
141
|
+
program,
|
|
147
142
|
{"NEMO_GYM_RESOURCE_SERVER": entrypoint},
|
|
148
143
|
"nemo_gym.log",
|
|
149
144
|
)
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from collections.abc import AsyncIterator
|
|
4
4
|
from contextlib import AsyncExitStack, asynccontextmanager, suppress
|
|
5
|
-
from typing import Any
|
|
5
|
+
from typing import Any, cast
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
|
-
from mcp import
|
|
9
|
-
from mcp.client.streamable_http import
|
|
10
|
-
|
|
11
|
-
streamable_http_client,
|
|
12
|
-
)
|
|
13
|
-
from mcp.server.fastmcp import FastMCP
|
|
8
|
+
from mcp import Client
|
|
9
|
+
from mcp.client.streamable_http import create_mcp_http_client, streamable_http_client
|
|
10
|
+
from mcp.server.mcpserver import Context, MCPServer
|
|
14
11
|
from mcp.types import CallToolResult, TextContent, Tool
|
|
15
12
|
from pydantic import Field
|
|
16
13
|
|
|
@@ -40,23 +37,17 @@ class NeMoGymState(State):
|
|
|
40
37
|
return await client.post(f"{self.resources_url}/{path}", json=body)
|
|
41
38
|
|
|
42
39
|
@asynccontextmanager
|
|
43
|
-
async def
|
|
44
|
-
"""Open an upstream MCP
|
|
40
|
+
async def mcp_client(self) -> AsyncIterator[Client]:
|
|
41
|
+
"""Open an upstream MCP client using this rollout's credentials."""
|
|
45
42
|
assert self.mcp_url is not None
|
|
46
43
|
stack = AsyncExitStack()
|
|
47
44
|
try:
|
|
48
|
-
|
|
49
|
-
create_mcp_http_client(
|
|
50
|
-
headers=self.mcp_headers,
|
|
51
|
-
timeout=httpx.Timeout(self.request_timeout),
|
|
52
|
-
)
|
|
53
|
-
)
|
|
54
|
-
read, write, *_ = await stack.enter_async_context(
|
|
55
|
-
streamable_http_client(self.mcp_url, http_client=client)
|
|
45
|
+
http_client = await stack.enter_async_context(
|
|
46
|
+
create_mcp_http_client(headers=self.mcp_headers)
|
|
56
47
|
)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
yield
|
|
48
|
+
http_client.timeout = self.request_timeout
|
|
49
|
+
transport = streamable_http_client(self.mcp_url, http_client=http_client)
|
|
50
|
+
yield await stack.enter_async_context(Client(transport))
|
|
60
51
|
finally:
|
|
61
52
|
with suppress(Exception):
|
|
62
53
|
await stack.aclose()
|
|
@@ -67,31 +58,38 @@ class NeMoGymToolset(Toolset[SharedToolsetConfig, NeMoGymState]):
|
|
|
67
58
|
|
|
68
59
|
TOOL_PREFIX = None
|
|
69
60
|
|
|
70
|
-
def register(self, mcp:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
server
|
|
61
|
+
def register(self, mcp: MCPServer) -> None:
|
|
62
|
+
# MCPServer's protocol handlers call these public methods, so replacing them keeps the
|
|
63
|
+
# dynamic, rollout-specific catalog without registering a fake static tool schema.
|
|
64
|
+
server = cast(Any, mcp)
|
|
65
|
+
server.list_tools = self._with_state(self.list_tools)
|
|
66
|
+
server.call_tool = self._with_state(self.call_tool)
|
|
74
67
|
|
|
75
68
|
async def list_tools(self) -> list[Tool]:
|
|
76
69
|
if self.state.mcp_url is not None:
|
|
77
|
-
async with self.state.
|
|
78
|
-
tools = (await
|
|
70
|
+
async with self.state.mcp_client() as client:
|
|
71
|
+
tools = (await client.list_tools()).tools
|
|
79
72
|
else:
|
|
80
73
|
tools = [
|
|
81
74
|
Tool(
|
|
82
75
|
name=spec["name"],
|
|
83
76
|
description=spec.get("description") or None,
|
|
84
|
-
|
|
77
|
+
input_schema=spec.get("parameters") or {},
|
|
85
78
|
)
|
|
86
79
|
for spec in self.state.direct_tools.values()
|
|
87
80
|
]
|
|
88
81
|
self.state.tool_names = [tool.name for tool in tools]
|
|
89
82
|
return tools
|
|
90
83
|
|
|
91
|
-
async def call_tool(
|
|
84
|
+
async def call_tool(
|
|
85
|
+
self,
|
|
86
|
+
name: str,
|
|
87
|
+
arguments: dict[str, Any],
|
|
88
|
+
context: Context | None = None,
|
|
89
|
+
) -> CallToolResult:
|
|
92
90
|
if self.state.mcp_url is not None:
|
|
93
|
-
async with self.state.
|
|
94
|
-
return await
|
|
91
|
+
async with self.state.mcp_client() as client:
|
|
92
|
+
return await client.call_tool(name, arguments)
|
|
95
93
|
|
|
96
94
|
if name not in self.state.direct_tools:
|
|
97
95
|
raise ValueError(f"unknown NeMo Gym tool: {name}")
|
|
@@ -99,7 +97,7 @@ class NeMoGymToolset(Toolset[SharedToolsetConfig, NeMoGymState]):
|
|
|
99
97
|
response = await self.state.post(name, arguments)
|
|
100
98
|
return CallToolResult(
|
|
101
99
|
content=[TextContent(type="text", text=response.text)],
|
|
102
|
-
|
|
100
|
+
is_error=not response.is_success,
|
|
103
101
|
)
|
|
104
102
|
|
|
105
103
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.3.2.
|
|
3
|
+
Version: 0.3.2.dev19
|
|
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
|
|
@@ -29,10 +29,10 @@ Requires-Dist: gepa>=0.0.6
|
|
|
29
29
|
Requires-Dist: httpx>=0.27.0
|
|
30
30
|
Requires-Dist: loguru>=0.7.0
|
|
31
31
|
Requires-Dist: math-verify>=0.8.0
|
|
32
|
-
Requires-Dist: mcp
|
|
32
|
+
Requires-Dist: mcp==2.0.0
|
|
33
33
|
Requires-Dist: msgpack>=1.1.2
|
|
34
34
|
Requires-Dist: numpy>=2.1.0
|
|
35
|
-
Requires-Dist: openai-agents>=0.
|
|
35
|
+
Requires-Dist: openai-agents>=0.20.0
|
|
36
36
|
Requires-Dist: openai>=2.9.0
|
|
37
37
|
Requires-Dist: prime-pydantic-config[toml]>=0.4.3
|
|
38
38
|
Requires-Dist: prime-sandboxes>=0.2.39
|
|
@@ -54,8 +54,6 @@ Provides-Extra: harbor
|
|
|
54
54
|
Requires-Dist: harbor==0.21.0; (python_full_version >= '3.12') and extra == 'harbor'
|
|
55
55
|
Provides-Extra: modal
|
|
56
56
|
Requires-Dist: modal>=1.4.0; extra == 'modal'
|
|
57
|
-
Provides-Extra: nemo-gym
|
|
58
|
-
Requires-Dist: nemo-gym==0.4.0; (python_version >= '3.12') and extra == 'nemo-gym'
|
|
59
57
|
Provides-Extra: notebook
|
|
60
58
|
Requires-Dist: nest-asyncio>=1.6.0; extra == 'notebook'
|
|
61
59
|
Provides-Extra: openenv
|
|
@@ -36,7 +36,7 @@ verifiers/legacy/envs/experimental/README.md,sha256=Mbw73Sz91S4MzB4siKDpXDccUgi_
|
|
|
36
36
|
verifiers/legacy/envs/experimental/__init__.py,sha256=aRsCYspxz-HG9FZf8ezZfHM6aJpqR9u4sTCmP-ONVSw,1344
|
|
37
37
|
verifiers/legacy/envs/experimental/cli_agent_env.py,sha256=XTDjYJmiW3jBF_ND_b_-00VsTHe9vX5D0IbKV0VjcgQ,31462
|
|
38
38
|
verifiers/legacy/envs/experimental/gym_env.py,sha256=6Q3AQAy8j407-H56kWuioXLrU9SmX1nlvGamjkBFK1U,6953
|
|
39
|
-
verifiers/legacy/envs/experimental/mcp_env.py,sha256
|
|
39
|
+
verifiers/legacy/envs/experimental/mcp_env.py,sha256=vwfKImLCbW1SJqrzh7Kt9rXjTrGRSQOAvEXEDZhtefw,8955
|
|
40
40
|
verifiers/legacy/envs/experimental/opencode_env.py,sha256=ZXRAQfa48zRDHvDTG0EGzKBtxpNGet_-HpRSr-ZJjeA,17432
|
|
41
41
|
verifiers/legacy/envs/experimental/opencode_qa_env.py,sha256=ECkONBpj9qC6R6RDX6KC6x_24IN5oLDSU3B65zYE9cY,3577
|
|
42
42
|
verifiers/legacy/envs/experimental/opencode_rlm_env.py,sha256=9ELggxH7bbOZhG8KBV_UTOgQvUIwhZgE5dZHqn5grS4,16313
|
|
@@ -251,14 +251,14 @@ verifiers/v1/harnesses/__init__.py,sha256=0FVi-mPF36fF0vpLY4H2vbK3U_om1Svz3KgJ3i
|
|
|
251
251
|
verifiers/v1/harnesses/node.py,sha256=_-7NofTl-TNuwgEg8qxrD28shlQuyBWgiVHwCCwbdVo,2410
|
|
252
252
|
verifiers/v1/harnesses/bash/__init__.py,sha256=IAV4eMMqDHSl-9ANb0Q3kxmBZ22SeHZFBM448X4gQio,140
|
|
253
253
|
verifiers/v1/harnesses/bash/harness.py,sha256=agbyHDOjR1bjwA3bxPXqqcP9QM-aLlT8qBov1EBfwz0,5563
|
|
254
|
-
verifiers/v1/harnesses/bash/program.py,sha256=
|
|
254
|
+
verifiers/v1/harnesses/bash/program.py,sha256=HZOgtmTIRYBLY_9g17hMZ2Xh7RicYnAZNmhkcT2sAMs,16523
|
|
255
255
|
verifiers/v1/harnesses/browser_use/__init__.py,sha256=yxm2IG5TDLadxZEkX8SL26XWbcPcODXcrJfPfm1GqwU,171
|
|
256
256
|
verifiers/v1/harnesses/browser_use/harness.py,sha256=pxlpyJdnIFdlXVeMCcSgMH1uGeuU8LMEG0UF8emLXU0,5900
|
|
257
|
-
verifiers/v1/harnesses/browser_use/program.py,sha256=
|
|
257
|
+
verifiers/v1/harnesses/browser_use/program.py,sha256=hEyKAyeLWHgUA4Tjy-WflbFBAeMrzO24oDFlH6vI-_s,14105
|
|
258
258
|
verifiers/v1/harnesses/claude_code/__init__.py,sha256=JkZQylMSA3o1fvBx_NM41y_umuahmOSqFjTrJ2hryTw,171
|
|
259
259
|
verifiers/v1/harnesses/claude_code/harness.py,sha256=bkYbQe0tih9tIGTUp-keSjUlx4DFGXYjX7Lisd212do,4620
|
|
260
260
|
verifiers/v1/harnesses/codex/__init__.py,sha256=ocyBvlpSO8c3pT6D1ebrQohoXYESQcCyPT5kN3j1-N4,132
|
|
261
|
-
verifiers/v1/harnesses/codex/harness.py,sha256=
|
|
261
|
+
verifiers/v1/harnesses/codex/harness.py,sha256=BXA1xptf6ilry7i3zgAI7WnUomEbXcD_Ikv8W8xqHI4,7482
|
|
262
262
|
verifiers/v1/harnesses/hermes_agent/__init__.py,sha256=k84Y8UTTf1KOw5LGqPb2dk-hYFagPevDJBOF7qsR_vo,176
|
|
263
263
|
verifiers/v1/harnesses/hermes_agent/harness.py,sha256=AZNjQTwkv7_Dk9P1a20Xoeb-Df7iN60pWWHMw9YJ2eM,3773
|
|
264
264
|
verifiers/v1/harnesses/hermes_agent/program.py,sha256=RaIYm6NFD8KLXERGXp6rOE4QrQjlcTnm1Fu33xYsiHw,570
|
|
@@ -269,7 +269,7 @@ verifiers/v1/harnesses/mini_swe_agent/harness.py,sha256=7HHismhmfCtahlLtQdQyp_fT
|
|
|
269
269
|
verifiers/v1/harnesses/mini_swe_agent/program.py,sha256=Beej-JLIgSqnqIqB746oKU6kJYcynvppIbmwGa3nJJ0,167
|
|
270
270
|
verifiers/v1/harnesses/null/__init__.py,sha256=XDeKOPeoXUQi9US9_Z3_yH9YaZ4EiOMKJmUtNNdtD7s,127
|
|
271
271
|
verifiers/v1/harnesses/null/harness.py,sha256=3_BSQKFHTl9k54Aq1pcBEuE1n3hRF2xpP2100H5KGv4,2596
|
|
272
|
-
verifiers/v1/harnesses/null/program.py,sha256=
|
|
272
|
+
verifiers/v1/harnesses/null/program.py,sha256=etJ-vSHafgeuMOcN2coCyRSUH58GsQV5TCpa-DliJFs,10134
|
|
273
273
|
verifiers/v1/harnesses/openclaw/__init__.py,sha256=kNyfPB1sGwEf4K3mTfKN0VEyxun3SGvNpvArVKvH-x8,160
|
|
274
274
|
verifiers/v1/harnesses/openclaw/harness.py,sha256=LcdfnP_wYvWUQWIt6d4sE0TnXaxt5Ne5r_f7R0lKkAc,9535
|
|
275
275
|
verifiers/v1/harnesses/pi/__init__.py,sha256=1mSnzOf-RdEchdeg6IHtcdobG5KIpAhuTdUIgsCIn74,117
|
|
@@ -299,8 +299,8 @@ verifiers/v1/judges/rubric.py,sha256=qwBjJCWfaUUcQA9A4EXFQK0NumGjoevSFT2HjgBZut4
|
|
|
299
299
|
verifiers/v1/judges/rubric.txt,sha256=3KA2ZeYYdcDweJhUGopxu9EFgARhu2aWft5S5cj8Bc8,323
|
|
300
300
|
verifiers/v1/mcp/__init__.py,sha256=pm8ZWBiL1q1tY4wHvJzM_QrZ9oR8aGm-bIRWiRJsgHI,408
|
|
301
301
|
verifiers/v1/mcp/launch.py,sha256=dqi5UCE-ShPn663glL4DwnTHk4_VBLG_0qUUwlr3p10,23776
|
|
302
|
-
verifiers/v1/mcp/server.py,sha256=
|
|
303
|
-
verifiers/v1/mcp/toolset.py,sha256=
|
|
302
|
+
verifiers/v1/mcp/server.py,sha256=q2uB4rMz_f3qpHPwduVN9V4B9HZUHfAjuBFHV8PjfdE,13380
|
|
303
|
+
verifiers/v1/mcp/toolset.py,sha256=G2wzNdEMGLXoQUcrwF0TartJkqokNPI3o7YUOAaaa6U,1007
|
|
304
304
|
verifiers/v1/runtimes/__init__.py,sha256=ppc1R_sx-aMcuJSx4t99rTSjloUXI0M6EUj676-1PeY,2862
|
|
305
305
|
verifiers/v1/runtimes/base.py,sha256=SRTUNAcdW0xJIWjfS5RcijFXqdKyXmGvp2tvV58eu58,16826
|
|
306
306
|
verifiers/v1/runtimes/limiters.py,sha256=C6cWDD4pwyFwUY4QFke3oiMXwydSNIfSbJSIglUC2kE,3062
|
|
@@ -324,9 +324,9 @@ verifiers/v1/tasksets/lean/scoring.py,sha256=sfzsT6MUK0zdMgAQ57_P_0CBaPHy3M7go71
|
|
|
324
324
|
verifiers/v1/tasksets/lean/taskset.py,sha256=Rw0sMyvMcm2PTZi3fDrAIUUjldCVFNeWm83oDZwv04o,9032
|
|
325
325
|
verifiers/v1/tasksets/nemo_gym/__init__.py,sha256=654gAvG3Wd_Z_nh6mypeKn4s_IIQ0Ge6vcZvxTHC2_E,306
|
|
326
326
|
verifiers/v1/tasksets/nemo_gym/response.py,sha256=u_-qvmcyVHRC9fLJx5ED7BjCCUv5JttuTxM_GzZObkM,4382
|
|
327
|
-
verifiers/v1/tasksets/nemo_gym/server.py,sha256=
|
|
328
|
-
verifiers/v1/tasksets/nemo_gym/taskset.py,sha256=
|
|
329
|
-
verifiers/v1/tasksets/nemo_gym/toolset.py,sha256=
|
|
327
|
+
verifiers/v1/tasksets/nemo_gym/server.py,sha256=33C-VDZxPtMV2TFxJVIKijmtBLNlVeRs92ctPE3qAsM,2036
|
|
328
|
+
verifiers/v1/tasksets/nemo_gym/taskset.py,sha256=71h5GGbkbMmUbt4O8eUB8y3z5wZRGQu9lH6ekQcw-Wk,6365
|
|
329
|
+
verifiers/v1/tasksets/nemo_gym/toolset.py,sha256=Ii-FowJRWkB0oRSDgeuEf6ZwpO4Iw6_jQrzgDJHc6iI,4032
|
|
330
330
|
verifiers/v1/tasksets/openenv/__init__.py,sha256=G726meYYDplC3QE3AyjdSShq7FUcb4NkVqowuwPPuJk,303
|
|
331
331
|
verifiers/v1/tasksets/openenv/taskset.py,sha256=1Wc9-5eN2HMKAwL34yTNex3zYOvXNXibF5wCROoMbFI,6075
|
|
332
332
|
verifiers/v1/tasksets/textarena/__init__.py,sha256=Os2OlBY_pSH0B1DP32RitumgSLpq2LtcI7VDUHYPzRE,329
|
|
@@ -350,8 +350,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
|
|
|
350
350
|
verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
|
|
351
351
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
352
352
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
353
|
-
verifiers-0.3.2.
|
|
354
|
-
verifiers-0.3.2.
|
|
355
|
-
verifiers-0.3.2.
|
|
356
|
-
verifiers-0.3.2.
|
|
357
|
-
verifiers-0.3.2.
|
|
353
|
+
verifiers-0.3.2.dev19.dist-info/METADATA,sha256=ysLjxZZh40ewh5R1MNoyAfqK2BUXerdyWIliHRC5E4I,4543
|
|
354
|
+
verifiers-0.3.2.dev19.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
355
|
+
verifiers-0.3.2.dev19.dist-info/entry_points.txt,sha256=hZ5wDc1T8y-EvOziw7kQqatBJ6PbdSu2ygP5rjANl7c,564
|
|
356
|
+
verifiers-0.3.2.dev19.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
357
|
+
verifiers-0.3.2.dev19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|