verifiers 0.4.1.dev72__py3-none-any.whl → 0.4.1.dev73__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/clients/train.py +4 -10
- {verifiers-0.4.1.dev72.dist-info → verifiers-0.4.1.dev73.dist-info}/METADATA +1 -1
- {verifiers-0.4.1.dev72.dist-info → verifiers-0.4.1.dev73.dist-info}/RECORD +6 -6
- {verifiers-0.4.1.dev72.dist-info → verifiers-0.4.1.dev73.dist-info}/WHEEL +0 -0
- {verifiers-0.4.1.dev72.dist-info → verifiers-0.4.1.dev73.dist-info}/entry_points.txt +0 -0
- {verifiers-0.4.1.dev72.dist-info → verifiers-0.4.1.dev73.dist-info}/licenses/LICENSE +0 -0
verifiers/v1/clients/train.py
CHANGED
|
@@ -198,16 +198,10 @@ def response_from_generate(
|
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
def _is_valid_incremental_tail(messages: list[dict[str, Any]]) -> bool:
|
|
201
|
-
"""
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
for message in messages:
|
|
206
|
-
role = message.get("role")
|
|
207
|
-
roles.append(role if isinstance(role, str) else None)
|
|
208
|
-
if roles[-1] == "user":
|
|
209
|
-
return all(role == "tool" for role in roles[:-1])
|
|
210
|
-
return all(role == "tool" for role in roles)
|
|
201
|
+
"""Let the renderer extend append-only tool results and user messages."""
|
|
202
|
+
return bool(messages) and all(
|
|
203
|
+
message.get("role") in ("tool", "user") for message in messages
|
|
204
|
+
)
|
|
211
205
|
|
|
212
206
|
|
|
213
207
|
def _has_multimodal_content(messages) -> bool:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.4.1.
|
|
3
|
+
Version: 0.4.1.dev73
|
|
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
|
|
@@ -40,7 +40,7 @@ verifiers/v1/clients/__init__.py,sha256=Ysig0tE_0E4Jsfgfes1XHN-fK1s_RCXdqZD6E7lK
|
|
|
40
40
|
verifiers/v1/clients/base.py,sha256=C0G5lRm3nxt1xmPoA2cweBgCnN2KcLepmCYq1vdDrnU,1691
|
|
41
41
|
verifiers/v1/clients/client.py,sha256=zqC_AkiD9pl0kxxIbupNiehbS-YnVdp3EMZ0LOHTd8U,3125
|
|
42
42
|
verifiers/v1/clients/eval.py,sha256=qMm1W4H1JN2xa6e-aSUL19iQ_QHCB7MxEofUD7_MsEU,8299
|
|
43
|
-
verifiers/v1/clients/train.py,sha256=
|
|
43
|
+
verifiers/v1/clients/train.py,sha256=hIZUsJTG8n94nn5y57Uk0pCtvSqPHyj7mrDRLw3medk,19757
|
|
44
44
|
verifiers/v1/configs/__init__.py,sha256=X7u6X7B3ieD1HZl79Tv1kg-yPHbT0QLvAebaGqxVtvA,317
|
|
45
45
|
verifiers/v1/configs/agent.py,sha256=akq7QDFmSnkfqS378VJnmH2Wgcfat4moxbQ8xyi7Ygg,7115
|
|
46
46
|
verifiers/v1/configs/client.py,sha256=5OW_kAmFf2DkmzH2cerd4bINrIL2t68MKKcREUdrQyQ,6224
|
|
@@ -204,8 +204,8 @@ verifiers/v1/utils/scope.py,sha256=bzUEiWDOVdbj7dXOwGOlzsQ_-Xu0j9NR5TalQB-8TS8,8
|
|
|
204
204
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
205
205
|
verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
|
|
206
206
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
207
|
-
verifiers-0.4.1.
|
|
208
|
-
verifiers-0.4.1.
|
|
209
|
-
verifiers-0.4.1.
|
|
210
|
-
verifiers-0.4.1.
|
|
211
|
-
verifiers-0.4.1.
|
|
207
|
+
verifiers-0.4.1.dev73.dist-info/METADATA,sha256=sGAf3GHuV6cR6ne02VDxub3MkwrmZ9Bh3cRchvSyeG8,5234
|
|
208
|
+
verifiers-0.4.1.dev73.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
209
|
+
verifiers-0.4.1.dev73.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
|
|
210
|
+
verifiers-0.4.1.dev73.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
211
|
+
verifiers-0.4.1.dev73.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|