langfun 0.1.2.dev202509300805__py3-none-any.whl → 0.1.2.dev202510010805__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.
Potentially problematic release.
This version of langfun might be problematic. Click here for more details.
- langfun/core/llms/gemini.py +5 -0
- langfun/core/llms/rest.py +4 -0
- langfun/env/base_environment.py +81 -47
- langfun/env/base_feature.py +3 -2
- langfun/env/base_sandbox.py +3 -3
- langfun/env/base_test.py +6 -1
- langfun/env/event_handlers/base.py +75 -9
- langfun/env/event_handlers/event_logger.py +30 -8
- langfun/env/event_handlers/event_logger_test.py +7 -0
- langfun/env/event_handlers/metric_writer.py +111 -49
- langfun/env/event_handlers/metric_writer_test.py +36 -26
- langfun/env/test_utils.py +6 -3
- {langfun-0.1.2.dev202509300805.dist-info → langfun-0.1.2.dev202510010805.dist-info}/METADATA +1 -1
- {langfun-0.1.2.dev202509300805.dist-info → langfun-0.1.2.dev202510010805.dist-info}/RECORD +17 -17
- {langfun-0.1.2.dev202509300805.dist-info → langfun-0.1.2.dev202510010805.dist-info}/WHEEL +0 -0
- {langfun-0.1.2.dev202509300805.dist-info → langfun-0.1.2.dev202510010805.dist-info}/licenses/LICENSE +0 -0
- {langfun-0.1.2.dev202509300805.dist-info → langfun-0.1.2.dev202510010805.dist-info}/top_level.txt +0 -0
langfun/env/test_utils.py
CHANGED
|
@@ -258,7 +258,8 @@ class TestingEventHandler(
|
|
|
258
258
|
environment: interface.Environment,
|
|
259
259
|
counter: int,
|
|
260
260
|
duration: float,
|
|
261
|
-
error: BaseException | None
|
|
261
|
+
error: BaseException | None,
|
|
262
|
+
**kwargs
|
|
262
263
|
) -> None:
|
|
263
264
|
"""Called when the environment finishes a round of housekeeping."""
|
|
264
265
|
assert duration > 0
|
|
@@ -320,7 +321,8 @@ class TestingEventHandler(
|
|
|
320
321
|
sandbox: interface.Sandbox,
|
|
321
322
|
counter: int,
|
|
322
323
|
duration: float,
|
|
323
|
-
error: BaseException | None
|
|
324
|
+
error: BaseException | None,
|
|
325
|
+
**kwargs
|
|
324
326
|
) -> None:
|
|
325
327
|
assert duration > 0
|
|
326
328
|
if self.log_housekeep:
|
|
@@ -397,7 +399,8 @@ class TestingEventHandler(
|
|
|
397
399
|
feature: interface.Feature,
|
|
398
400
|
counter: int,
|
|
399
401
|
duration: float,
|
|
400
|
-
error: BaseException | None
|
|
402
|
+
error: BaseException | None,
|
|
403
|
+
**kwargs
|
|
401
404
|
) -> None:
|
|
402
405
|
"""Called when a sandbox feature is housekeeping."""
|
|
403
406
|
assert duration > 0
|
|
@@ -101,7 +101,7 @@ langfun/core/llms/deepseek.py,sha256=jvTxdXPr-vH6HNakn_Ootx1heDg8Fen2FUkUW36bpCs
|
|
|
101
101
|
langfun/core/llms/deepseek_test.py,sha256=DvROWPlDuow5E1lfoSkhyGt_ELA19JoQoDsTnRgDtTg,1847
|
|
102
102
|
langfun/core/llms/fake.py,sha256=bDk_4u7V2LmYUotyOaicwzi0-lnWOIIBbR3-Bil1P3o,3481
|
|
103
103
|
langfun/core/llms/fake_test.py,sha256=lC-C2TpEsnf2kmZpa3OiH2H944I4hMWTAaHEXzRj1DU,7855
|
|
104
|
-
langfun/core/llms/gemini.py,sha256=
|
|
104
|
+
langfun/core/llms/gemini.py,sha256=qR_rBdkFO6z9MRFoXhq3jiJjKo1tFi4yLkcD2wXzJlY,30337
|
|
105
105
|
langfun/core/llms/gemini_test.py,sha256=y1s0W65SrdepbZxzgIeoTB2MI7sXnfBDf1NsGn57LbM,7617
|
|
106
106
|
langfun/core/llms/google_genai.py,sha256=ogyoOUK4s1OcSFKun0YK5xBRDVyxmvz9WsYNKAwuB0g,5918
|
|
107
107
|
langfun/core/llms/google_genai_test.py,sha256=NKNtpebArQ9ZR7Qsnhd2prFIpMjleojy6o6VMXkJ1zY,1502
|
|
@@ -113,7 +113,7 @@ langfun/core/llms/openai.py,sha256=UZM0j3BHRz5NVLs8q7YYRkneM1CwuGQSt7sFaM4IAPU,4
|
|
|
113
113
|
langfun/core/llms/openai_compatible.py,sha256=JlFUTiK4e3ox2DGeGBcAD-cXkxmBdx5g6LrYkyMIaps,5777
|
|
114
114
|
langfun/core/llms/openai_compatible_test.py,sha256=KwOMA7tsmOxFBjezltkBDSU77AvOQkI23dO2nHLAlB4,17689
|
|
115
115
|
langfun/core/llms/openai_test.py,sha256=gwuO6aoa296iM2welWV9ua4KF8gEVGsEPakgbtkWkFQ,2687
|
|
116
|
-
langfun/core/llms/rest.py,sha256=
|
|
116
|
+
langfun/core/llms/rest.py,sha256=YXzSjr7YgtZ5zKDgjA-3D-sabo5wTjpLQDHUIcEPPgg,4773
|
|
117
117
|
langfun/core/llms/rest_test.py,sha256=_zM7nV8DEVyoXNiQOnuwJ917mWjki0614H88rNmDboE,5020
|
|
118
118
|
langfun/core/llms/vertexai.py,sha256=M0GySUbTukyfc6Pwo7i6AX4uapYyshY49VfPsTU8xac,20245
|
|
119
119
|
langfun/core/llms/vertexai_test.py,sha256=_e-acnNBAf9C3WO6i1b2J_mhRzdDdYQTorD9hIVZKOg,5034
|
|
@@ -166,23 +166,23 @@ langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3AB
|
|
|
166
166
|
langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
|
|
167
167
|
langfun/core/templates/selfplay_test.py,sha256=Ot__1P1M8oJfoTp-M9-PQ6HUXqZKyMwvZ5f7yQ3yfyM,2326
|
|
168
168
|
langfun/env/__init__.py,sha256=m6Y8y16ms9lytvO_r-Br8HmTp2rNDhb3R6JJaH5dEEk,1491
|
|
169
|
-
langfun/env/base_environment.py,sha256=
|
|
170
|
-
langfun/env/base_feature.py,sha256=
|
|
171
|
-
langfun/env/base_sandbox.py,sha256=
|
|
172
|
-
langfun/env/base_test.py,sha256=
|
|
169
|
+
langfun/env/base_environment.py,sha256=m7IJNHqt4dlgBRwv0E8BxKtARvcNJis9FrrALguzX1E,19472
|
|
170
|
+
langfun/env/base_feature.py,sha256=gGUCWLcSaQZ7MoXNKogXEdcpfoqJxcfnoXhWQjqi8jk,6462
|
|
171
|
+
langfun/env/base_sandbox.py,sha256=6AqTvMf9U-Gl8fQ_o7lPkHgcOnBLWcORnasr_D9EcF8,37263
|
|
172
|
+
langfun/env/base_test.py,sha256=DrBtyweO4v8Fz3Oz-gnpJ4W_9hRhuVXA1CTLvXJDa9s,61099
|
|
173
173
|
langfun/env/interface.py,sha256=2Amf-_op7dGRF8c4-wYxcFxs1UCBYz1AB20Lk7__V4E,25724
|
|
174
174
|
langfun/env/interface_test.py,sha256=hfQn4RRTEo1YfVHXTPzH1puzD14BTo8R_5v1IpXVZ90,1398
|
|
175
175
|
langfun/env/load_balancers.py,sha256=qRhCthqzjZIQBwta8qC1C0s0J-VQAVomJQqI7Nqv-r4,1948
|
|
176
176
|
langfun/env/load_balancers_test.py,sha256=KIDIwZeQHcW0fCL5ScZD0lm0QV4_X2y-rMqdd6R1gLc,3737
|
|
177
|
-
langfun/env/test_utils.py,sha256=
|
|
177
|
+
langfun/env/test_utils.py,sha256=rnIQZ2ZpiFuB7yfl5ckGtacBoySAwguzBzXzqhyo8jw,14042
|
|
178
178
|
langfun/env/event_handlers/__init__.py,sha256=H34n-TbKSgtxqBhE-yAti8fY6weF2_v3yw59M9_zmGM,443
|
|
179
|
-
langfun/env/event_handlers/base.py,sha256=
|
|
180
|
-
langfun/env/event_handlers/event_logger.py,sha256=
|
|
181
|
-
langfun/env/event_handlers/event_logger_test.py,sha256=
|
|
182
|
-
langfun/env/event_handlers/metric_writer.py,sha256=
|
|
183
|
-
langfun/env/event_handlers/metric_writer_test.py,sha256=
|
|
184
|
-
langfun-0.1.2.
|
|
185
|
-
langfun-0.1.2.
|
|
186
|
-
langfun-0.1.2.
|
|
187
|
-
langfun-0.1.2.
|
|
188
|
-
langfun-0.1.2.
|
|
179
|
+
langfun/env/event_handlers/base.py,sha256=eGdJ6N5em9kX-c9wzm1TdnRP5_5IAltX5JTHILdjzLM,10124
|
|
180
|
+
langfun/env/event_handlers/event_logger.py,sha256=3dbPjBe53dBgntYHlyLlj_77hVecPSXkmKeiGXMxlO0,12699
|
|
181
|
+
langfun/env/event_handlers/event_logger_test.py,sha256=PGof3rPllNnyzs3Yp8kaOHLeTkVrzUgCJwlODTrVRKI,9111
|
|
182
|
+
langfun/env/event_handlers/metric_writer.py,sha256=cnJe0BeWntUZ56NlwB8lkv2udcldds9GNyMg71Zz-II,16994
|
|
183
|
+
langfun/env/event_handlers/metric_writer_test.py,sha256=4tI7s3o1Gw1bawXewaEZ65EPPOcr8A4m1bLK7uUcJY4,4735
|
|
184
|
+
langfun-0.1.2.dev202510010805.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
185
|
+
langfun-0.1.2.dev202510010805.dist-info/METADATA,sha256=RzMf3Out519JCUoptVdAxzqmPL2j-we1L2YNLuu9Yf4,7380
|
|
186
|
+
langfun-0.1.2.dev202510010805.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
187
|
+
langfun-0.1.2.dev202510010805.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
|
188
|
+
langfun-0.1.2.dev202510010805.dist-info/RECORD,,
|
|
File without changes
|
{langfun-0.1.2.dev202509300805.dist-info → langfun-0.1.2.dev202510010805.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{langfun-0.1.2.dev202509300805.dist-info → langfun-0.1.2.dev202510010805.dist-info}/top_level.txt
RENAMED
|
File without changes
|