langfun 0.0.2.dev20240530__py3-none-any.whl → 0.0.2.dev20240601__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/__init__.py +4 -0
- langfun/core/__init__.py +1 -0
- langfun/core/llms/google_genai.py +66 -13
- langfun/core/llms/google_genai_test.py +1 -1
- langfun/core/llms/vertexai.py +67 -14
- langfun/core/llms/vertexai_test.py +1 -1
- langfun/core/modalities/__init__.py +1 -1
- langfun/core/modalities/audio.py +1 -1
- langfun/core/modalities/image.py +1 -1
- langfun/core/modalities/image_test.py +23 -6
- langfun/core/modalities/mime.py +105 -16
- langfun/core/modalities/mime_test.py +18 -3
- langfun/core/modalities/ms_office.py +38 -10
- langfun/core/modalities/ms_office_test.py +93 -16
- langfun/core/modalities/pdf.py +1 -1
- langfun/core/modalities/video.py +1 -1
- langfun/core/modality.py +4 -0
- langfun/core/structured/__init__.py +2 -0
- langfun/core/structured/completion.py +3 -1
- langfun/core/structured/mapping.py +1 -5
- langfun/core/structured/prompting.py +0 -4
- langfun/core/structured/schema.py +88 -42
- langfun/core/structured/schema_test.py +87 -34
- {langfun-0.0.2.dev20240530.dist-info → langfun-0.0.2.dev20240601.dist-info}/METADATA +4 -3
- {langfun-0.0.2.dev20240530.dist-info → langfun-0.0.2.dev20240601.dist-info}/RECORD +28 -28
- {langfun-0.0.2.dev20240530.dist-info → langfun-0.0.2.dev20240601.dist-info}/LICENSE +0 -0
- {langfun-0.0.2.dev20240530.dist-info → langfun-0.0.2.dev20240601.dist-info}/WHEEL +0 -0
- {langfun-0.0.2.dev20240530.dist-info → langfun-0.0.2.dev20240601.dist-info}/top_level.txt +0 -0
@@ -283,9 +283,10 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
283
283
|
value_spec: pg.typing.ValueSpec,
|
284
284
|
expected_annotation: str,
|
285
285
|
strict: bool = False,
|
286
|
+
**kwargs,
|
286
287
|
) -> None:
|
287
288
|
self.assertEqual(
|
288
|
-
schema_lib.annotation(value_spec, strict=strict),
|
289
|
+
schema_lib.annotation(value_spec, strict=strict, **kwargs),
|
289
290
|
expected_annotation,
|
290
291
|
)
|
291
292
|
|
@@ -361,11 +362,27 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
361
362
|
self.assert_annotation(
|
362
363
|
pg.typing.Object(Activity).noneable(), 'Activity | None'
|
363
364
|
)
|
365
|
+
self.assert_annotation(
|
366
|
+
pg.typing.Object(Activity).noneable(), 'Activity | None',
|
367
|
+
allowed_dependencies=set([Activity]),
|
368
|
+
)
|
369
|
+
self.assert_annotation(
|
370
|
+
pg.typing.Object(Activity).noneable(), 'Any | None',
|
371
|
+
allowed_dependencies=set(),
|
372
|
+
)
|
364
373
|
|
365
374
|
# List.
|
366
375
|
self.assert_annotation(
|
367
376
|
pg.typing.List(pg.typing.Object(Activity)), 'list[Activity]'
|
368
377
|
)
|
378
|
+
self.assert_annotation(
|
379
|
+
pg.typing.List(pg.typing.Object(Activity)), 'list[Activity]',
|
380
|
+
allowed_dependencies=set([Activity]),
|
381
|
+
)
|
382
|
+
self.assert_annotation(
|
383
|
+
pg.typing.List(pg.typing.Object(Activity)), 'list[Any]',
|
384
|
+
allowed_dependencies=set(),
|
385
|
+
)
|
369
386
|
self.assert_annotation(
|
370
387
|
pg.typing.List(pg.typing.Object(Activity)).noneable(),
|
371
388
|
'list[Activity] | None',
|
@@ -377,16 +394,35 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
377
394
|
|
378
395
|
# Tuple.
|
379
396
|
self.assert_annotation(
|
380
|
-
pg.typing.Tuple([
|
397
|
+
pg.typing.Tuple([Activity, pg.typing.Str()]), 'tuple[Activity, str]'
|
398
|
+
)
|
399
|
+
self.assert_annotation(
|
400
|
+
pg.typing.Tuple([Activity, pg.typing.Str()]), 'tuple[Activity, str]',
|
401
|
+
allowed_dependencies=set([Activity]),
|
381
402
|
)
|
382
403
|
self.assert_annotation(
|
383
|
-
pg.typing.Tuple([
|
384
|
-
|
404
|
+
pg.typing.Tuple([Activity, pg.typing.Str()]), 'tuple[Any, str]',
|
405
|
+
allowed_dependencies=set(),
|
406
|
+
)
|
407
|
+
self.assert_annotation(
|
408
|
+
pg.typing.Tuple([Activity, pg.typing.Str()]).noneable(),
|
409
|
+
'tuple[Activity, str] | None',
|
385
410
|
)
|
386
411
|
|
387
412
|
# Dict.
|
388
413
|
self.assert_annotation(
|
389
|
-
pg.typing.Dict({'x':
|
414
|
+
pg.typing.Dict({'x': Activity, 'y': str}),
|
415
|
+
'{\'x\': Activity, \'y\': str}'
|
416
|
+
)
|
417
|
+
self.assert_annotation(
|
418
|
+
pg.typing.Dict({'x': Activity, 'y': str}),
|
419
|
+
'{\'x\': Activity, \'y\': str}',
|
420
|
+
allowed_dependencies=set([Activity]),
|
421
|
+
)
|
422
|
+
self.assert_annotation(
|
423
|
+
pg.typing.Dict({'x': Activity, 'y': str}),
|
424
|
+
'{\'x\': Any, \'y\': str}',
|
425
|
+
allowed_dependencies=set(),
|
390
426
|
)
|
391
427
|
self.assert_annotation(
|
392
428
|
pg.typing.Dict({'x': int, 'y': str}),
|
@@ -420,6 +456,13 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
420
456
|
).noneable(),
|
421
457
|
'Union[Activity, Itinerary, None]',
|
422
458
|
)
|
459
|
+
self.assert_annotation(
|
460
|
+
pg.typing.Union(
|
461
|
+
[pg.typing.Object(Activity), pg.typing.Object(Itinerary)]
|
462
|
+
).noneable(),
|
463
|
+
'Union[Activity, Any, None]',
|
464
|
+
allowed_dependencies=set([Activity]),
|
465
|
+
)
|
423
466
|
|
424
467
|
# Any.
|
425
468
|
self.assert_annotation(pg.typing.Any(), 'Any')
|
@@ -427,13 +470,13 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
427
470
|
|
428
471
|
def test_class_definition(self):
|
429
472
|
self.assertEqual(
|
430
|
-
schema_lib.class_definition(Activity),
|
473
|
+
schema_lib.class_definition(Activity, allowed_dependencies=set()),
|
431
474
|
'class Activity:\n description: str\n',
|
432
475
|
)
|
433
476
|
self.assertEqual(
|
434
477
|
schema_lib.class_definition(Itinerary),
|
435
478
|
inspect.cleandoc("""
|
436
|
-
class Itinerary:
|
479
|
+
class Itinerary(Object):
|
437
480
|
\"\"\"A travel itinerary for a day.\"\"\"
|
438
481
|
day: int(min=1)
|
439
482
|
type: Literal['daytime', 'nighttime']
|
@@ -443,7 +486,9 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
443
486
|
""") + '\n',
|
444
487
|
)
|
445
488
|
self.assertEqual(
|
446
|
-
schema_lib.class_definition(
|
489
|
+
schema_lib.class_definition(
|
490
|
+
PlaceOfInterest, allowed_dependencies=set()
|
491
|
+
),
|
447
492
|
inspect.cleandoc("""
|
448
493
|
class PlaceOfInterest:
|
449
494
|
\"\"\"The name of a place of interest.
|
@@ -459,11 +504,11 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
459
504
|
pass
|
460
505
|
|
461
506
|
self.assertEqual(
|
462
|
-
schema_lib.class_definition(A),
|
507
|
+
schema_lib.class_definition(A, allowed_dependencies=set()),
|
463
508
|
'class A:\n pass\n',
|
464
509
|
)
|
465
510
|
self.assertEqual(
|
466
|
-
schema_lib.class_definition(A
|
511
|
+
schema_lib.class_definition(A),
|
467
512
|
'class A(Object):\n pass\n',
|
468
513
|
)
|
469
514
|
|
@@ -471,18 +516,21 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
471
516
|
x: str
|
472
517
|
__kwargs__: typing.Any
|
473
518
|
|
474
|
-
self.assertEqual(
|
519
|
+
self.assertEqual(
|
520
|
+
schema_lib.class_definition(C), 'class C(Object):\n x: str\n'
|
521
|
+
)
|
475
522
|
|
476
523
|
class D(pg.Object):
|
477
524
|
x: str
|
525
|
+
@schema_lib.include_method_in_prompt
|
478
526
|
def __call__(self, y: int) -> int:
|
479
527
|
return len(self.x) + y
|
480
528
|
|
481
529
|
self.assertEqual(
|
482
|
-
schema_lib.class_definition(D
|
530
|
+
schema_lib.class_definition(D),
|
483
531
|
inspect.cleandoc(
|
484
532
|
"""
|
485
|
-
class D:
|
533
|
+
class D(Object):
|
486
534
|
x: str
|
487
535
|
|
488
536
|
def __call__(self, y: int) -> int:
|
@@ -506,31 +554,28 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
506
554
|
class A(pg.Object):
|
507
555
|
foo: Foo
|
508
556
|
|
557
|
+
@schema_lib.include_method_in_prompt
|
509
558
|
def foo_value(self) -> int:
|
510
559
|
return self.foo.x
|
511
560
|
|
561
|
+
def baz_value(self) -> str:
|
562
|
+
return 'baz'
|
563
|
+
|
512
564
|
class B(A):
|
513
565
|
bar: Bar
|
514
566
|
foo2: Foo
|
515
567
|
|
568
|
+
@schema_lib.include_method_in_prompt
|
516
569
|
def bar_value(self) -> str:
|
517
570
|
return self.bar.y
|
518
571
|
|
519
572
|
schema = schema_lib.Schema([B])
|
520
573
|
self.assertEqual(
|
521
|
-
schema_lib.SchemaPythonRepr().class_definitions(
|
522
|
-
schema, include_methods=True
|
523
|
-
),
|
574
|
+
schema_lib.SchemaPythonRepr().class_definitions(schema),
|
524
575
|
inspect.cleandoc('''
|
525
576
|
class Foo:
|
526
577
|
x: int
|
527
578
|
|
528
|
-
class A:
|
529
|
-
foo: Foo
|
530
|
-
|
531
|
-
def foo_value(self) -> int:
|
532
|
-
return self.foo.x
|
533
|
-
|
534
579
|
class Bar:
|
535
580
|
"""Class Bar."""
|
536
581
|
y: str
|
@@ -539,13 +584,16 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
539
584
|
"""Baz(y: str)"""
|
540
585
|
y: str
|
541
586
|
|
542
|
-
class B
|
587
|
+
class B:
|
543
588
|
foo: Foo
|
544
589
|
bar: Bar
|
545
590
|
foo2: Foo
|
546
591
|
|
547
592
|
def bar_value(self) -> str:
|
548
593
|
return self.bar.y
|
594
|
+
|
595
|
+
def foo_value(self) -> int:
|
596
|
+
return self.foo.x
|
549
597
|
''') + '\n',
|
550
598
|
)
|
551
599
|
|
@@ -562,9 +610,6 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
562
610
|
class Foo:
|
563
611
|
x: int
|
564
612
|
|
565
|
-
class A:
|
566
|
-
foo: Foo
|
567
|
-
|
568
613
|
class Bar:
|
569
614
|
"""Class Bar."""
|
570
615
|
y: str
|
@@ -573,10 +618,16 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
573
618
|
"""Baz(y: str)"""
|
574
619
|
y: str
|
575
620
|
|
576
|
-
class B
|
621
|
+
class B:
|
577
622
|
foo: Foo
|
578
623
|
bar: Bar
|
579
624
|
foo2: Foo
|
625
|
+
|
626
|
+
def bar_value(self) -> str:
|
627
|
+
return self.bar.y
|
628
|
+
|
629
|
+
def foo_value(self) -> int:
|
630
|
+
return self.foo.x
|
580
631
|
```
|
581
632
|
'''),
|
582
633
|
)
|
@@ -584,16 +635,12 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
584
635
|
schema_lib.SchemaPythonRepr().repr(
|
585
636
|
schema,
|
586
637
|
include_result_definition=False,
|
587
|
-
include_pg_object_as_base=True,
|
588
638
|
markdown=False,
|
589
639
|
),
|
590
640
|
inspect.cleandoc('''
|
591
|
-
class Foo
|
641
|
+
class Foo:
|
592
642
|
x: int
|
593
643
|
|
594
|
-
class A(Object):
|
595
|
-
foo: Foo
|
596
|
-
|
597
644
|
class Bar:
|
598
645
|
"""Class Bar."""
|
599
646
|
y: str
|
@@ -602,10 +649,16 @@ class SchemaPythonReprTest(unittest.TestCase):
|
|
602
649
|
"""Baz(y: str)"""
|
603
650
|
y: str
|
604
651
|
|
605
|
-
class B
|
652
|
+
class B:
|
606
653
|
foo: Foo
|
607
654
|
bar: Bar
|
608
655
|
foo2: Foo
|
656
|
+
|
657
|
+
def bar_value(self) -> str:
|
658
|
+
return self.bar.y
|
659
|
+
|
660
|
+
def foo_value(self) -> int:
|
661
|
+
return self.foo.x
|
609
662
|
'''),
|
610
663
|
)
|
611
664
|
|
@@ -653,7 +706,7 @@ class ValuePythonReprTest(unittest.TestCase):
|
|
653
706
|
```python
|
654
707
|
class Foo(Object):
|
655
708
|
x: int
|
656
|
-
|
709
|
+
|
657
710
|
class A(Object):
|
658
711
|
foo: list[Foo]
|
659
712
|
y: str | None
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: langfun
|
3
|
-
Version: 0.0.2.
|
3
|
+
Version: 0.0.2.dev20240601
|
4
4
|
Summary: Langfun: Language as Functions.
|
5
5
|
Home-page: https://github.com/google/langfun
|
6
6
|
Author: Langfun Authors
|
@@ -25,13 +25,14 @@ Requires-Dist: google-cloud-aiplatform >=1.5.0
|
|
25
25
|
Requires-Dist: google-generativeai >=0.3.2
|
26
26
|
Requires-Dist: jinja2 >=3.1.2
|
27
27
|
Requires-Dist: openai ==0.27.2
|
28
|
+
Requires-Dist: openpyxl >=3.1.0
|
29
|
+
Requires-Dist: pandas >=2.1.4
|
28
30
|
Requires-Dist: pyglove >=0.4.5.dev20240423
|
31
|
+
Requires-Dist: python-docx >=0.8.11
|
29
32
|
Requires-Dist: python-magic >=0.4.27
|
30
33
|
Requires-Dist: requests >=2.31.0
|
31
34
|
Requires-Dist: termcolor ==1.1.0
|
32
35
|
Requires-Dist: tqdm >=4.64.1
|
33
|
-
Requires-Dist: python-docx >=0.8.11
|
34
|
-
Requires-Dist: pandas >=2.1.4
|
35
36
|
|
36
37
|
<div align="center">
|
37
38
|
<img src="https://raw.githubusercontent.com/google/langfun/main/docs/_static/logo.svg" width="520px" alt="logo"></img>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
langfun/__init__.py,sha256=
|
2
|
-
langfun/core/__init__.py,sha256=
|
1
|
+
langfun/__init__.py,sha256=LFsDp22pTeJHmzzKEg2OLmSVOPAym00DyF38LmrL2n4,2263
|
2
|
+
langfun/core/__init__.py,sha256=nFJx6X7oB7IIWsAQqjbgZ_ScH-gsKg53YgAkuDvY0cw,4296
|
3
3
|
langfun/core/component.py,sha256=oxesbC0BoE_TbtxwW5x-BAZWxZyyJbuPiX5S38RqCv0,9909
|
4
4
|
langfun/core/component_test.py,sha256=uR-_Sz_42Jxc5qzLIB-f5_pXmNwnC01Xlbv5NOQSeSU,8021
|
5
5
|
langfun/core/concurrent.py,sha256=TRc49pJ3HQro2kb5FtcWkHjhBm8UcgE8RJybU5cU3-0,24537
|
@@ -13,7 +13,7 @@ langfun/core/language_model_test.py,sha256=NZaSUls6cZdtxiqkqumWbtkx9zgNiJlsviYZO
|
|
13
13
|
langfun/core/memory.py,sha256=f-asN1F7Vehgdn_fK84v73GrEUOxRtaW934keutTKjk,2416
|
14
14
|
langfun/core/message.py,sha256=Rw3yC9HyGRjMhfDgyNjGlSCALEyDDbJ0_o6qTXeeDiQ,15738
|
15
15
|
langfun/core/message_test.py,sha256=b6DDRoQ5j3uK-dc0QPSLelNTKaXX10MxJrRiI61iGX4,9574
|
16
|
-
langfun/core/modality.py,sha256
|
16
|
+
langfun/core/modality.py,sha256=Tla4t86DUYHpbZ2G7dy1r19fTj_Ga5XOvlYp6lbWa-Q,3512
|
17
17
|
langfun/core/modality_test.py,sha256=HyZ5xONKQ0Fw18SzoWAq-Ob9njOXIIjBo1hNtw-rudw,2400
|
18
18
|
langfun/core/natural_language.py,sha256=3ynSnaYQnjE60LIPK5fyMgdIjubnPYZwzGq4rWPeloE,1177
|
19
19
|
langfun/core/natural_language_test.py,sha256=LHGU_1ytbkGuSZQFIFP7vP3dBlcY4-A12fT6dbjUA0E,1424
|
@@ -53,16 +53,16 @@ langfun/core/llms/anthropic.py,sha256=7W9YdPN3SlAFhAIQlihMkrpo7tTY_4NvD0KIlCrqcs
|
|
53
53
|
langfun/core/llms/anthropic_test.py,sha256=TMM30myyEhwF99Le4RvJEXOn8RYl0q1FRkt9Q9nl1jk,5540
|
54
54
|
langfun/core/llms/fake.py,sha256=Dd7-6ka9pFf3fcWZyczamjOqQ91MOI-m7We3Oc9Ffmo,2927
|
55
55
|
langfun/core/llms/fake_test.py,sha256=ipKfdOcuqVcJ8lDXVpnBVb9HHG0hAVkFkMoHpWjC2cI,7212
|
56
|
-
langfun/core/llms/google_genai.py,sha256=
|
57
|
-
langfun/core/llms/google_genai_test.py,sha256=
|
56
|
+
langfun/core/llms/google_genai.py,sha256=Rl5a5CyF_6Y0BYYArKk8yMaenv1rH3MUQLy6b3dfMRI,10202
|
57
|
+
langfun/core/llms/google_genai_test.py,sha256=iTISk3tJ4-3gjWmzcKQhEbH3ke4AkEiCu8rAGtB7SvU,7535
|
58
58
|
langfun/core/llms/groq.py,sha256=NaGItVL_pkOpqPpI4bPGU27xLFRoaeizZ49v2s-4ERs,7844
|
59
59
|
langfun/core/llms/groq_test.py,sha256=M6GtlrsOvDun_j-sR8cPh4W_moHWZNSTiThu3kuwbbc,5281
|
60
60
|
langfun/core/llms/llama_cpp.py,sha256=Y_KkMUf3Xfac49koMUtUslKl3h-HWp3-ntq7Jaa3bdo,2385
|
61
61
|
langfun/core/llms/llama_cpp_test.py,sha256=ZxC6defGd_HX9SFRU9U4cJiQnBKundbOrchbXuC1Z2M,1683
|
62
62
|
langfun/core/llms/openai.py,sha256=IN46gIqfY6aEEfxCPNmyH1hrep3oWBhJDwVFilfqNkM,13657
|
63
63
|
langfun/core/llms/openai_test.py,sha256=QWDzTgi8F2Z9u9ip6alK4rDEp_YraVTxWlDX5XOsKJk,14858
|
64
|
-
langfun/core/llms/vertexai.py,sha256=
|
65
|
-
langfun/core/llms/vertexai_test.py,sha256=
|
64
|
+
langfun/core/llms/vertexai.py,sha256=eILbXoMSza5r4FLGlIdH6-eD8Ggy9Z4PdjLaBDxy29A,11162
|
65
|
+
langfun/core/llms/vertexai_test.py,sha256=G18BG36h5KvmX2zutDTLjtYCRjTuP_nWIFm4FMnLnyY,7651
|
66
66
|
langfun/core/llms/cache/__init__.py,sha256=QAo3InUMDM_YpteNnVCSejI4zOsnjSMWKJKzkb3VY64,993
|
67
67
|
langfun/core/llms/cache/base.py,sha256=cFfYvOIUae842pncqCAsRvqXCk2AnAsRYVx0mcIoAeY,3338
|
68
68
|
langfun/core/llms/cache/in_memory.py,sha256=YfFyJEhLs73cUiB0ZfhMxYpdE8Iuxxw-dvMFwGHTSHw,4742
|
@@ -70,36 +70,36 @@ langfun/core/llms/cache/in_memory_test.py,sha256=D-n26h__rVXQO51WRFhRfq5sw1oifRL
|
|
70
70
|
langfun/core/memories/__init__.py,sha256=HpghfZ-w1NQqzJXBx8Lz0daRhB2rcy2r9Xm491SBhC4,773
|
71
71
|
langfun/core/memories/conversation_history.py,sha256=c9amD8hCxGFiZuVAzkP0dOMWSp8L90uvwkOejjuBqO0,1835
|
72
72
|
langfun/core/memories/conversation_history_test.py,sha256=AaW8aNoFjxNusanwJDV0r3384Mg0eAweGmPx5DIkM0Y,2052
|
73
|
-
langfun/core/modalities/__init__.py,sha256=
|
74
|
-
langfun/core/modalities/audio.py,sha256=
|
73
|
+
langfun/core/modalities/__init__.py,sha256=F8P72IwFiTpEseTR2tYEJyQMlDW7fd9csvGJquLKJNg,1269
|
74
|
+
langfun/core/modalities/audio.py,sha256=Qxo7bYjLKQ1gVJVomr9RqR2SvxY826QgXhTzzk437Sk,952
|
75
75
|
langfun/core/modalities/audio_test.py,sha256=gWCB9h3FyrdGqro3ajBXqkw0lU0W1sBjOOq6wZbl7Fg,2027
|
76
|
-
langfun/core/modalities/image.py,sha256=
|
77
|
-
langfun/core/modalities/image_test.py,sha256=
|
78
|
-
langfun/core/modalities/mime.py,sha256=
|
79
|
-
langfun/core/modalities/mime_test.py,sha256=
|
80
|
-
langfun/core/modalities/ms_office.py,sha256=
|
81
|
-
langfun/core/modalities/ms_office_test.py,sha256=
|
82
|
-
langfun/core/modalities/pdf.py,sha256=
|
76
|
+
langfun/core/modalities/image.py,sha256=qi7B9uYLxBoKvMzApdOQNpVcp_dKaRwLzeshg2nvo9k,926
|
77
|
+
langfun/core/modalities/image_test.py,sha256=qU7G4ucUihIQ9ZB453FsUfcOipUYx5TnnuoMB1GIMfE,3034
|
78
|
+
langfun/core/modalities/mime.py,sha256=yMpbBAhf7MmEPJm9qj7tTn7_XionZQ4XkgTT8StA7io,5836
|
79
|
+
langfun/core/modalities/mime_test.py,sha256=ruEro7Joima2r-zOuQfO0NzBvmaweSQ6F6jsf-w4Bns,2468
|
80
|
+
langfun/core/modalities/ms_office.py,sha256=jOidMSdWCaV9RILpGz8VJkpTSpHJNoirD53jzQvcytM,3388
|
81
|
+
langfun/core/modalities/ms_office_test.py,sha256=d_NZ0QU23NydenYZgNj6YxgO5ZYzjg-HCbglsVJGp04,87866
|
82
|
+
langfun/core/modalities/pdf.py,sha256=mfaeCbUA4JslFVTARiJh8hW7imvL4tLVw9gUhO5bAZA,727
|
83
83
|
langfun/core/modalities/pdf_test.py,sha256=KE40zJD3Whe6ty2OULkp1J8jwLmB4ZjGXlGekluTP48,1952
|
84
|
-
langfun/core/modalities/video.py,sha256=
|
84
|
+
langfun/core/modalities/video.py,sha256=sKcXxbx9S1ERjH8yEzkbtySpcRJD40QiPIQiIBy-U5I,955
|
85
85
|
langfun/core/modalities/video_test.py,sha256=GbsoefSeO7y8kCYhTtp4s9E3ah_eYrb6Z-MXpS01RFc,2046
|
86
|
-
langfun/core/structured/__init__.py,sha256=
|
87
|
-
langfun/core/structured/completion.py,sha256=
|
86
|
+
langfun/core/structured/__init__.py,sha256=yp60yeDSVlyT0ElmLwbpBHnQtk_JX5udnjG1UGcsXKA,3776
|
87
|
+
langfun/core/structured/completion.py,sha256=RzWdHyaqKj-tj6mGwpHXk0s8YbM0UEHSpyT2axmj-o8,7343
|
88
88
|
langfun/core/structured/completion_test.py,sha256=2mUzDMKGF_WGfTtsnfmfMDx97dkJ-98y8leen__qWLA,19281
|
89
89
|
langfun/core/structured/description.py,sha256=SXW4MJvshFjbR-0gw6rE21o6WXq12UlRXawvDBXMZFA,5211
|
90
90
|
langfun/core/structured/description_test.py,sha256=UtZGjSFUaQ6130t1E5tcL7ODu0xIefkapb53TbnqsK8,7362
|
91
91
|
langfun/core/structured/function_generation.py,sha256=pFgS3vcRAWiuFBol2x5Eeip3XqoudONsOpeJpWyjT3s,7479
|
92
92
|
langfun/core/structured/function_generation_test.py,sha256=ZJI-aaGgWWszn92u7h5IZ9Pl70N2DgAGGJrIxPzsvwg,10065
|
93
|
-
langfun/core/structured/mapping.py,sha256=
|
93
|
+
langfun/core/structured/mapping.py,sha256=Vq3bQZWi4iYjcVn8D2kvPXTAm9jrQ-_1ueHLbXtGRNQ,12112
|
94
94
|
langfun/core/structured/mapping_test.py,sha256=PiXklMeIa8L6KtMi3ju7J9Y39gZy0hIGz-Oeq4A_7XE,3835
|
95
95
|
langfun/core/structured/parsing.py,sha256=keoVqEfzAbdULh6GawWFsTQzU91MzJXYFZjXGXLaD8g,11492
|
96
96
|
langfun/core/structured/parsing_test.py,sha256=34wDrXaQ-EYhJLfDL8mX9K53oQMSzh5pVYdKjnESmK8,20895
|
97
|
-
langfun/core/structured/prompting.py,sha256=
|
97
|
+
langfun/core/structured/prompting.py,sha256=vjmJn7GMFkqkrEB6qRrYvjB78WVx_OhsIyMN8PTb-7o,8641
|
98
98
|
langfun/core/structured/prompting_test.py,sha256=8orqsTVDpDb_7oFZtGHtV_zRU_j_9RaOGH1QR8IurIU,21756
|
99
|
-
langfun/core/structured/schema.py,sha256=
|
99
|
+
langfun/core/structured/schema.py,sha256=7s6g9HSGogdWXnsX3_Pd8w8Cf1tKeFGtbNwxIG6l7lA,27664
|
100
100
|
langfun/core/structured/schema_generation.py,sha256=U3nRQsqmMZg_qIVDh2fiY3K4JLfsAL1LcKzIFP1iXFg,5316
|
101
101
|
langfun/core/structured/schema_generation_test.py,sha256=RM9s71kMNg2jTePwInkiW9fK1ACN37eyPeF8OII-0zw,2950
|
102
|
-
langfun/core/structured/schema_test.py,sha256=
|
102
|
+
langfun/core/structured/schema_test.py,sha256=P1Bm-khjbAebW6IDjop5dv1ddRD4pqL83FdK1VmfZPw,25108
|
103
103
|
langfun/core/structured/scoring.py,sha256=QyT1S8FkLtKICfUbh4AXoKK3YJ_rgejyk6TI2OtOa68,2751
|
104
104
|
langfun/core/structured/scoring_test.py,sha256=39_dw6p_FkoqeUccO67yIqos-MccAWezoozS21i8mi0,1732
|
105
105
|
langfun/core/templates/__init__.py,sha256=bO0eMsVJbi7sxEB2YlInKRQ2EVP-RyyKUwcD-8msuN4,927
|
@@ -111,8 +111,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
|
|
111
111
|
langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
|
112
112
|
langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
|
113
113
|
langfun/core/templates/selfplay_test.py,sha256=DYVrkk7uNKCqJGEHH31HssU2BPuMItU1vJLzfcXIlYg,2156
|
114
|
-
langfun-0.0.2.
|
115
|
-
langfun-0.0.2.
|
116
|
-
langfun-0.0.2.
|
117
|
-
langfun-0.0.2.
|
118
|
-
langfun-0.0.2.
|
114
|
+
langfun-0.0.2.dev20240601.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
115
|
+
langfun-0.0.2.dev20240601.dist-info/METADATA,sha256=V6qAAPX1gt2gDEInFQKJIvYe48IbEztRw5qwpgq_QH0,3550
|
116
|
+
langfun-0.0.2.dev20240601.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
117
|
+
langfun-0.0.2.dev20240601.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
118
|
+
langfun-0.0.2.dev20240601.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|