verifiers 0.3.2.dev112__py3-none-any.whl → 0.3.2.dev114__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/pi/harness.py +9 -0
- verifiers/v1/trace.py +4 -2
- {verifiers-0.3.2.dev112.dist-info → verifiers-0.3.2.dev114.dist-info}/METADATA +1 -1
- {verifiers-0.3.2.dev112.dist-info → verifiers-0.3.2.dev114.dist-info}/RECORD +7 -7
- {verifiers-0.3.2.dev112.dist-info → verifiers-0.3.2.dev114.dist-info}/WHEEL +0 -0
- {verifiers-0.3.2.dev112.dist-info → verifiers-0.3.2.dev114.dist-info}/entry_points.txt +0 -0
- {verifiers-0.3.2.dev112.dist-info → verifiers-0.3.2.dev114.dist-info}/licenses/LICENSE +0 -0
|
@@ -50,6 +50,8 @@ class PiHarnessConfig(HarnessConfig):
|
|
|
50
50
|
"chat_completions"
|
|
51
51
|
)
|
|
52
52
|
"""Model API transport."""
|
|
53
|
+
supports_developer_role: bool | None = None
|
|
54
|
+
"""Override Pi's chat-completions role detection for custom model endpoints."""
|
|
53
55
|
|
|
54
56
|
|
|
55
57
|
class PiHarness(ACPHarness[PiHarnessConfig]):
|
|
@@ -120,6 +122,13 @@ class PiHarness(ACPHarness[PiHarnessConfig]):
|
|
|
120
122
|
else {}
|
|
121
123
|
),
|
|
122
124
|
}
|
|
125
|
+
if (
|
|
126
|
+
self.config.transport == "chat_completions"
|
|
127
|
+
and self.config.supports_developer_role is not None
|
|
128
|
+
):
|
|
129
|
+
model_config["compat"] = {
|
|
130
|
+
"supportsDeveloperRole": self.config.supports_developer_role
|
|
131
|
+
}
|
|
123
132
|
models = {
|
|
124
133
|
"providers": {
|
|
125
134
|
provider: {
|
verifiers/v1/trace.py
CHANGED
|
@@ -513,8 +513,10 @@ class Trace(BaseModel, Generic[DataT, StateT, AgentConfigT]):
|
|
|
513
513
|
|
|
514
514
|
@property
|
|
515
515
|
def num_total_tokens(self) -> int:
|
|
516
|
-
"""
|
|
517
|
-
|
|
516
|
+
"""New input plus generated tokens, counted once per call across branches.
|
|
517
|
+
Input is a lower bound when the engine drops tokens between calls."""
|
|
518
|
+
usage = self.usage
|
|
519
|
+
return self.num_input_tokens + (usage.completion_tokens if usage else 0)
|
|
518
520
|
|
|
519
521
|
@property
|
|
520
522
|
def usage(self) -> Usage | 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.dev114
|
|
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
|
|
@@ -14,7 +14,7 @@ verifiers/v1/session.py,sha256=7iarEDRH2epID_O8ai-1HwveXze_o8shnLw9pFMFX5o,18900
|
|
|
14
14
|
verifiers/v1/state.py,sha256=EckF2bWp-vV4b1jYJ9sLI5xrfGuI5spIgYYwW926toI,595
|
|
15
15
|
verifiers/v1/task.py,sha256=7iJLXQo7JKX5jG87atIwT_HZlSto_3a7yB3w__uQQQw,12427
|
|
16
16
|
verifiers/v1/taskset.py,sha256=fp2E0IEhL_Ybj9cegZwljfTmW27p_30zTWHFKw_kXE4,4374
|
|
17
|
-
verifiers/v1/trace.py,sha256=
|
|
17
|
+
verifiers/v1/trace.py,sha256=q88vHOr3ZwvhzXOneBx00ZQ82fry7UT4DCwidQnbk3Q,32120
|
|
18
18
|
verifiers/v1/types.py,sha256=PH1SxRWXOjPCgQD9aZgM18_bECvFSNQ25gkCbulmTKU,9857
|
|
19
19
|
verifiers/v1/acp/__init__.py,sha256=Zx5FhpkpQHETc-FB_zI3Qt4TxmuMnbv7YxxXk2npjAk,12922
|
|
20
20
|
verifiers/v1/acp/runner.py,sha256=ODrvrC_8DDsAoif9jr4eYJsQzesPxDorxqqm-lo5tNY,11403
|
|
@@ -107,7 +107,7 @@ verifiers/v1/harnesses/null/harness.py,sha256=Bq19j8Bh_d4VvpFx9nwv6BKnG1tKweEk-2
|
|
|
107
107
|
verifiers/v1/harnesses/openclaw/__init__.py,sha256=kNyfPB1sGwEf4K3mTfKN0VEyxun3SGvNpvArVKvH-x8,160
|
|
108
108
|
verifiers/v1/harnesses/openclaw/harness.py,sha256=KUSwzLviNmFc2mIZ7jJ5Abon6EZXsEkHS675f82lG-A,9373
|
|
109
109
|
verifiers/v1/harnesses/pi/__init__.py,sha256=1mSnzOf-RdEchdeg6IHtcdobG5KIpAhuTdUIgsCIn74,117
|
|
110
|
-
verifiers/v1/harnesses/pi/harness.py,sha256=
|
|
110
|
+
verifiers/v1/harnesses/pi/harness.py,sha256=LqKkW4OJ1BV-A9l-L1j9MLVSiCIfZM-ftQvf5bgAdxY,7030
|
|
111
111
|
verifiers/v1/harnesses/prime_agent/__init__.py,sha256=xfPC4RrlnyYWaf38tPAOZq4YL6M55lMpj5BoRLmaK8I,171
|
|
112
112
|
verifiers/v1/harnesses/prime_agent/harness.py,sha256=sSqVDEVtgLQA5KuqBZ8mrRMyi6EIrPz3r1zXWRiE6-g,10660
|
|
113
113
|
verifiers/v1/harnesses/rlm/__init__.py,sha256=hwx51xTdEWzzYgMj-p4ETNcptoub3IPMDbEdJ4uB8Ns,122
|
|
@@ -192,8 +192,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
|
|
|
192
192
|
verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
|
|
193
193
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
194
194
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
195
|
-
verifiers-0.3.2.
|
|
196
|
-
verifiers-0.3.2.
|
|
197
|
-
verifiers-0.3.2.
|
|
198
|
-
verifiers-0.3.2.
|
|
199
|
-
verifiers-0.3.2.
|
|
195
|
+
verifiers-0.3.2.dev114.dist-info/METADATA,sha256=O6nF5B4ZhPybAPa2R4VPG50EBCEMrBfQ-EQb5kfT6pA,4237
|
|
196
|
+
verifiers-0.3.2.dev114.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
197
|
+
verifiers-0.3.2.dev114.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
|
|
198
|
+
verifiers-0.3.2.dev114.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
199
|
+
verifiers-0.3.2.dev114.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|