langfun 0.1.2.dev202510190804__py3-none-any.whl → 0.1.2.dev202510210805__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/eval/base.py CHANGED
@@ -595,7 +595,7 @@ class Suite(Evaluable):
595
595
  def _on_bound(self):
596
596
  super()._on_bound()
597
597
  overrides = {
598
- k: v for k, v in self.sym_init_args.items()
598
+ k: v for k, v in self.sym_init_args.sym_items()
599
599
  if k not in ('id', 'children')
600
600
  }
601
601
  for child in self.children:
@@ -287,7 +287,7 @@ class Evaluation(experiment_lib.Experiment):
287
287
  A unique string representing the resource required.
288
288
  """
289
289
  return {
290
- v.resource_id for _, v in self.sym_init_args.items()
290
+ v.resource_id for _, v in self.sym_init_args.sym_items()
291
291
  if isinstance(v, lf.LanguageModel)
292
292
  }
293
293
 
langfun/core/template.py CHANGED
@@ -374,7 +374,7 @@ class Template(
374
374
  metadata[k.removeprefix(_ADDITIONAL_METADATA_PREFIX)] = v
375
375
 
376
376
  # Carry metadata from fields.
377
- for k, v in self.sym_init_args.items():
377
+ for k, v in self.sym_init_args.sym_items():
378
378
  if k.startswith(_ADDITIONAL_METADATA_PREFIX):
379
379
  metadata[k.removeprefix(_ADDITIONAL_METADATA_PREFIX)] = v
380
380
  return metadata
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langfun
3
- Version: 0.1.2.dev202510190804
3
+ Version: 0.1.2.dev202510210805
4
4
  Summary: Langfun: Language as Functions.
5
5
  Home-page: https://github.com/google/langfun
6
6
  Author: Langfun Authors
@@ -32,7 +32,7 @@ langfun/core/sampling.py,sha256=SCnS5PFJWNVxSKvSkSCNRUmruvScun8UcNN4gafuXcw,5866
32
32
  langfun/core/sampling_test.py,sha256=U7PANpMsl9E_pa4_Y4FzesSjcwg-u-LKHGCWSgv-8FY,3663
33
33
  langfun/core/subscription.py,sha256=euawEuSZP-BHydaT-AQpfYFL0m5pWPGcW0upFhrojqc,10930
34
34
  langfun/core/subscription_test.py,sha256=Y4ZdbZEwm83YNZBxHff0QR4QUa4rdaNXA3_jfIcArBo,8717
35
- langfun/core/template.py,sha256=GSOZ3OcmRtw-q05GdHrE-Y4-2MGDYsTRKmWGvVPbdhE,24962
35
+ langfun/core/template.py,sha256=9uswFC3Vbj9l1Zi9-Kbw6BZuCiP9H598ysbN3IBcBoI,24966
36
36
  langfun/core/template_test.py,sha256=AQv_m9qE93WxhEhSlm1xaBgB4hu0UVtA53dljngkUW0,17090
37
37
  langfun/core/agentic/__init__.py,sha256=vsnuvjaz9-nysBjdihGf43JC8AyLPhPJwIOevyONyAQ,1517
38
38
  langfun/core/agentic/action.py,sha256=ojwaPIV_a_khKPR6x1Fk5i2dsUTSe3VjKaxnZ92b0nE,58243
@@ -60,7 +60,7 @@ langfun/core/data/conversion/gemini_test.py,sha256=G-av2BUngBkxOkJz94CMpZRGq6DGD
60
60
  langfun/core/data/conversion/openai.py,sha256=sSpkDSxMJWJ3I1dNICBCzvLsJv4iiLg8FPYLtubBJUM,4181
61
61
  langfun/core/data/conversion/openai_test.py,sha256=38WV_3ofFZiUF10bTKnZp4VyuDP5-81aR3h3Q0HlBm0,5283
62
62
  langfun/core/eval/__init__.py,sha256=OEXr1ZRuvLuhJJfuQ1ZWQ-SvYzjyrtiAAEogYaB7E6o,1933
63
- langfun/core/eval/base.py,sha256=qIJnrO1jX5pzY8yoQTtcTn5lGdD9adz5U6C_jla1BV4,75806
63
+ langfun/core/eval/base.py,sha256=g2qnOg9zyU20coNTCwX6Fbi0pPFEUoOxHY5uw98LcNg,75810
64
64
  langfun/core/eval/base_test.py,sha256=q4wEd2KDUxzUkeELwof0HXBKe9TMQYUq84ddA043VPg,27191
65
65
  langfun/core/eval/matching.py,sha256=AVKkGoc-BaHEzgSBamaAk3194TgqckDe_dinpS6LrXI,9323
66
66
  langfun/core/eval/matching_test.py,sha256=2xtwsTi-UzLTt0QnXl3u_eAG3fFjCG2tsae7YkcQTB0,5312
@@ -72,7 +72,7 @@ langfun/core/eval/v2/__init__.py,sha256=9lNKJwbvl0lcFblAXYT_OHI8fOubJsTOdSkxEqsP
72
72
  langfun/core/eval/v2/checkpointing.py,sha256=0ll04cCH3WAXoU2ocoSE8GaSWVCw9JERcnuvUiHRSBU,11624
73
73
  langfun/core/eval/v2/checkpointing_test.py,sha256=NZo-yt3j5bUF-yPVfHGFBVGWZhhpk5xaT-6fsuIQUSs,9571
74
74
  langfun/core/eval/v2/eval_test_helper.py,sha256=sKFi_wPYCNmr96WyTduuXY0KnxjFxcJyEhXey-_nGX8,3962
75
- langfun/core/eval/v2/evaluation.py,sha256=Oiqjx7rL0Fql6OaYifiXlgZX5tzz1uAs88GydjJPDI8,27722
75
+ langfun/core/eval/v2/evaluation.py,sha256=pxg4erSu1rPizVnWD7NtGUuA4KFPLuFg4uOSoiyTB24,27726
76
76
  langfun/core/eval/v2/evaluation_test.py,sha256=GdB-CexNxQSNZoXqpyGNLdHzq0D9vXqgwAJ13iaAOO0,7878
77
77
  langfun/core/eval/v2/example.py,sha256=v1dIz89pccIqujt7utrk0EbqMWM9kBn-2fYGRTKe358,10890
78
78
  langfun/core/eval/v2/example_test.py,sha256=wsHQD6te7ghROmxe3Xg_NK4TU0xS2MkNfnpo-H0H8xM,3399
@@ -188,8 +188,8 @@ langfun/env/event_handlers/event_logger.py,sha256=3dbPjBe53dBgntYHlyLlj_77hVecPS
188
188
  langfun/env/event_handlers/event_logger_test.py,sha256=PGof3rPllNnyzs3Yp8kaOHLeTkVrzUgCJwlODTrVRKI,9111
189
189
  langfun/env/event_handlers/metric_writer.py,sha256=NgJKsd6xWOtEd0IjYi7coGEaqGYkkPcDjXN9CQ3vxPU,18043
190
190
  langfun/env/event_handlers/metric_writer_test.py,sha256=flRqK10wonhJk4idGD_8jjEjrfjgH0R-qcu-7Bj1G5s,5335
191
- langfun-0.1.2.dev202510190804.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
192
- langfun-0.1.2.dev202510190804.dist-info/METADATA,sha256=b4yNwslro5xun1m0Jz5h3E7rtFAEZmUrZ6WFK1E93LY,7522
193
- langfun-0.1.2.dev202510190804.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
194
- langfun-0.1.2.dev202510190804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
195
- langfun-0.1.2.dev202510190804.dist-info/RECORD,,
191
+ langfun-0.1.2.dev202510210805.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
192
+ langfun-0.1.2.dev202510210805.dist-info/METADATA,sha256=zUGCf23lwGdC9gWmY2LnjoFb1rsdbg0wcHpvnfYbjNY,7522
193
+ langfun-0.1.2.dev202510210805.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
194
+ langfun-0.1.2.dev202510210805.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
195
+ langfun-0.1.2.dev202510210805.dist-info/RECORD,,