verifiers 0.3.2.dev37__py3-none-any.whl → 0.3.2.dev39__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/harnesses/prime_agent/harness.py +8 -8
- verifiers/v1/harnesses/rlm/harness.py +23 -16
- {verifiers-0.3.2.dev37.dist-info → verifiers-0.3.2.dev39.dist-info}/METADATA +1 -1
- {verifiers-0.3.2.dev37.dist-info → verifiers-0.3.2.dev39.dist-info}/RECORD +7 -7
- {verifiers-0.3.2.dev37.dist-info → verifiers-0.3.2.dev39.dist-info}/WHEEL +0 -0
- {verifiers-0.3.2.dev37.dist-info → verifiers-0.3.2.dev39.dist-info}/entry_points.txt +0 -0
- {verifiers-0.3.2.dev37.dist-info → verifiers-0.3.2.dev39.dist-info}/licenses/LICENSE +0 -0
|
@@ -19,10 +19,10 @@ logger = logging.getLogger(__name__)
|
|
|
19
19
|
GITHUB_RELEASE_URL = (
|
|
20
20
|
"https://github.com/PrimeIntellect-ai/prime-agent/releases/download"
|
|
21
21
|
)
|
|
22
|
-
PRIME_AGENT_COMMIT: Literal["
|
|
23
|
-
"
|
|
22
|
+
PRIME_AGENT_COMMIT: Literal["81ae3cb34d27d38ee37f9e205a1e73694993b344"] = (
|
|
23
|
+
"81ae3cb34d27d38ee37f9e205a1e73694993b344"
|
|
24
24
|
)
|
|
25
|
-
PRIME_AGENT_VERSION = "0.
|
|
25
|
+
PRIME_AGENT_VERSION = "0.9.1"
|
|
26
26
|
PRIME_AGENT_DIR = "/var/tmp/vf-prime-agent"
|
|
27
27
|
STATE_ROOT = "/tmp/vf-prime-agent-runs"
|
|
28
28
|
SKILLS_DIR = ".agents/skills"
|
|
@@ -51,10 +51,10 @@ for tarball in "$agent_tarball" "$ai_tarball" "$core_tarball" "$tui_tarball"; do
|
|
|
51
51
|
"$release_url/$tarball" -o "$download_dir/$tarball"
|
|
52
52
|
done
|
|
53
53
|
printf '%s %s\n' \
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
54
|
+
'573bce0cd004fc62052e9a924089941b7f39266ab71e66a94c85a1f9d35835ba' "$agent_tarball" \
|
|
55
|
+
'11b5b4cf67b6bb2d3420a44fb69181bc9d94d81e69a2b4fde07eb9c99f5faf4f' "$ai_tarball" \
|
|
56
|
+
'fb6f3a5dcc8b69c5eeb3beff722b5e0f09885c14849db50bc1d7c0f1d064151c' "$core_tarball" \
|
|
57
|
+
'4f3eaca2814944d3993073e0b88c0bde54a641ddb5132fbe107e392b997e38ec' "$tui_tarball" \
|
|
58
58
|
> "$download_dir/SHA256SUMS"
|
|
59
59
|
(cd "$download_dir" && sha256sum -c SHA256SUMS)
|
|
60
60
|
mkdir "$download_dir/package-root"
|
|
@@ -87,7 +87,7 @@ PRIME_AGENT_BOOTSTRAP_TOOLS_ON_INSTALL=1 npm install -g \
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
class PrimeAgentHarnessConfig(HarnessConfig):
|
|
90
|
-
commit: Literal["
|
|
90
|
+
commit: Literal["81ae3cb34d27d38ee37f9e205a1e73694993b344"] = PRIME_AGENT_COMMIT
|
|
91
91
|
"""Prime Agent main commit to install."""
|
|
92
92
|
|
|
93
93
|
autonomous: bool = False
|
|
@@ -47,10 +47,13 @@ class CompactionConfig(BaseConfig):
|
|
|
47
47
|
summarize_at_tokens: PositiveInt | None = None
|
|
48
48
|
"""Compact at this token count. When unset, compact when 16k tokens remain below the
|
|
49
49
|
model context window when the provider advertises it."""
|
|
50
|
+
max_compactions: PositiveInt | None = None
|
|
51
|
+
"""Compactions per session before the engine stops compacting; `None` =
|
|
52
|
+
nano-rlm's default."""
|
|
50
53
|
|
|
51
54
|
|
|
52
55
|
class RLMHarnessConfig(HarnessConfig):
|
|
53
|
-
version: str = Field(default="
|
|
56
|
+
version: str = Field(default="dd2c04f", min_length=1)
|
|
54
57
|
"""Git ref (branch, tag, or commit) of nano-rlm to install. Must know every
|
|
55
58
|
field this harness puts on the wire, i.e. be at least the default ref."""
|
|
56
59
|
max_depth: NonNegativeInt | None = None
|
|
@@ -59,8 +62,11 @@ class RLMHarnessConfig(HarnessConfig):
|
|
|
59
62
|
builtin_skills: list[BuiltinSkill] = Field(default_factory=list)
|
|
60
63
|
"""Built-in rlm skills to enable (RLM_SKILLS), e.g. `["edit"]`; empty enables none.
|
|
61
64
|
The tool set is fixed (ipython); the base `skills` field takes SKILL.md paths."""
|
|
62
|
-
compaction: CompactionConfig | None = None
|
|
63
|
-
"""Context compaction
|
|
65
|
+
compaction: CompactionConfig | bool | None = None
|
|
66
|
+
"""Context compaction: a `[compaction]` section (or `true`) enables it with the
|
|
67
|
+
given settings, `false` disables it (an overflowing session then fails), and
|
|
68
|
+
unset defers to nano-rlm's default (on, automatic thresholds, bounded by its
|
|
69
|
+
default 1M tree-token budget)."""
|
|
64
70
|
max_concurrent_subagents: PositiveInt | None = None
|
|
65
71
|
"""Sub-agents running at once per session tree; `None` = nano-rlm's default (4).
|
|
66
72
|
nano-rlm requires it to be at least `max_depth`."""
|
|
@@ -146,6 +152,19 @@ class RLMHarness(ACPHarness[RLMHarnessConfig]):
|
|
|
146
152
|
system_prompt: str | None,
|
|
147
153
|
) -> JsonObject:
|
|
148
154
|
compaction = self.config.compaction
|
|
155
|
+
policy_knobs: dict[str, Any] = {
|
|
156
|
+
"max_depth": self.config.max_depth,
|
|
157
|
+
"max_concurrent_subagents": self.config.max_concurrent_subagents,
|
|
158
|
+
"max_total_turns": self.config.max_total_turns,
|
|
159
|
+
"max_total_tokens": self.config.max_total_tokens,
|
|
160
|
+
"max_tool_output_bytes": self.config.max_tool_output_bytes,
|
|
161
|
+
}
|
|
162
|
+
if isinstance(compaction, bool):
|
|
163
|
+
policy_knobs["compaction"] = compaction
|
|
164
|
+
elif compaction is not None:
|
|
165
|
+
policy_knobs["compaction"] = True
|
|
166
|
+
policy_knobs["summarize_at_tokens"] = compaction.summarize_at_tokens
|
|
167
|
+
policy_knobs["max_compactions"] = compaction.max_compactions
|
|
149
168
|
appends = [
|
|
150
169
|
text
|
|
151
170
|
for text in (system_prompt, self.config.append_to_system_prompt)
|
|
@@ -161,19 +180,7 @@ class RLMHarness(ACPHarness[RLMHarnessConfig]):
|
|
|
161
180
|
# None = passthrough: the key stays off the wire and nano-rlm's own
|
|
162
181
|
# default applies.
|
|
163
182
|
"policy": {
|
|
164
|
-
key: value
|
|
165
|
-
for key, value in {
|
|
166
|
-
"max_depth": self.config.max_depth,
|
|
167
|
-
"compaction": compaction is not None,
|
|
168
|
-
"summarize_at_tokens": (
|
|
169
|
-
compaction.summarize_at_tokens if compaction else None
|
|
170
|
-
),
|
|
171
|
-
"max_concurrent_subagents": self.config.max_concurrent_subagents,
|
|
172
|
-
"max_total_turns": self.config.max_total_turns,
|
|
173
|
-
"max_total_tokens": self.config.max_total_tokens,
|
|
174
|
-
"max_tool_output_bytes": self.config.max_tool_output_bytes,
|
|
175
|
-
}.items()
|
|
176
|
-
if value is not None
|
|
183
|
+
key: value for key, value in policy_knobs.items() if value is not None
|
|
177
184
|
},
|
|
178
185
|
"system_prompt_path": None,
|
|
179
186
|
"append_to_system_prompt": "\n\n".join(appends) or 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.dev39
|
|
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
|
|
@@ -107,9 +107,9 @@ verifiers/v1/harnesses/pi/harness.py,sha256=M0BRsfJxnBNP-KCrp0vT5gHlaJEDnyti5x_3
|
|
|
107
107
|
verifiers/v1/harnesses/pool/__init__.py,sha256=HTYsNiWGdiNEsSHj4xhPmshJSNb7SHjQ7d4yZQ4p3HM,127
|
|
108
108
|
verifiers/v1/harnesses/pool/harness.py,sha256=HKAogPbyLK5QpvPQ1teHOh_IyRQX-or2JF71nnZ_5Ps,3875
|
|
109
109
|
verifiers/v1/harnesses/prime_agent/__init__.py,sha256=xfPC4RrlnyYWaf38tPAOZq4YL6M55lMpj5BoRLmaK8I,171
|
|
110
|
-
verifiers/v1/harnesses/prime_agent/harness.py,sha256=
|
|
110
|
+
verifiers/v1/harnesses/prime_agent/harness.py,sha256=_FJtiYvWOsBpjEBKuJsnmuldYNwJxKK8ONa5e-c_mYM,11205
|
|
111
111
|
verifiers/v1/harnesses/rlm/__init__.py,sha256=hwx51xTdEWzzYgMj-p4ETNcptoub3IPMDbEdJ4uB8Ns,122
|
|
112
|
-
verifiers/v1/harnesses/rlm/harness.py,sha256=
|
|
112
|
+
verifiers/v1/harnesses/rlm/harness.py,sha256=1a88tUM8l4BRf-In-dPyhtW9ilyH2GJdbh1ezL2BRcQ,10297
|
|
113
113
|
verifiers/v1/harnesses/terminus_2/__init__.py,sha256=l1pwfg1HyVDEqT9efdnFWcXqaZwtKwe7TrplkyxZSA0,166
|
|
114
114
|
verifiers/v1/harnesses/terminus_2/harness.py,sha256=kXKhi-aqqsoXGnvet0Tq_v7LYYpRYEzARyQL2MTEGWs,3101
|
|
115
115
|
verifiers/v1/harnesses/terminus_2/program.py,sha256=X8MZdyItU3gbXGXnGOlJ9LWcUTnqIDaxlhkZvoRiqKY,2703
|
|
@@ -185,8 +185,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
|
|
|
185
185
|
verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
|
|
186
186
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
187
187
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
188
|
-
verifiers-0.3.2.
|
|
189
|
-
verifiers-0.3.2.
|
|
190
|
-
verifiers-0.3.2.
|
|
191
|
-
verifiers-0.3.2.
|
|
192
|
-
verifiers-0.3.2.
|
|
188
|
+
verifiers-0.3.2.dev39.dist-info/METADATA,sha256=aCN9__3iHq_uJT58Pv_szAvF_zQiUkj2j_IihmNAi3I,4065
|
|
189
|
+
verifiers-0.3.2.dev39.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
190
|
+
verifiers-0.3.2.dev39.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
|
|
191
|
+
verifiers-0.3.2.dev39.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
192
|
+
verifiers-0.3.2.dev39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|