jaclang 0.5.17__py3-none-any.whl → 0.6.0__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 jaclang might be problematic. Click here for more details.
- jaclang/__init__.py +2 -6
- jaclang/cli/cli.py +4 -2
- jaclang/compiler/__init__.py +12 -5
- jaclang/compiler/absyntree.py +23 -23
- jaclang/compiler/generated/jac_parser.py +2 -2
- jaclang/compiler/jac.lark +9 -9
- jaclang/compiler/parser.py +76 -21
- jaclang/compiler/passes/ir_pass.py +10 -8
- jaclang/compiler/passes/main/__init__.py +3 -2
- jaclang/compiler/passes/main/access_modifier_pass.py +173 -0
- jaclang/compiler/passes/main/fuse_typeinfo_pass.py +3 -2
- jaclang/compiler/passes/main/import_pass.py +33 -21
- jaclang/compiler/passes/main/pyast_gen_pass.py +99 -44
- jaclang/compiler/passes/main/pyast_load_pass.py +141 -77
- jaclang/compiler/passes/main/pyout_pass.py +14 -13
- jaclang/compiler/passes/main/registry_pass.py +8 -3
- jaclang/compiler/passes/main/schedules.py +5 -3
- jaclang/compiler/passes/main/sym_tab_build_pass.py +47 -37
- jaclang/compiler/passes/main/tests/test_import_pass.py +2 -2
- jaclang/compiler/passes/tool/jac_formatter_pass.py +85 -23
- jaclang/compiler/passes/tool/tests/test_jac_format_pass.py +11 -4
- jaclang/compiler/passes/transform.py +2 -0
- jaclang/compiler/symtable.py +10 -3
- jaclang/compiler/tests/test_importer.py +9 -0
- jaclang/compiler/workspace.py +19 -11
- jaclang/core/aott.py +34 -63
- jaclang/core/importer.py +73 -65
- jaclang/core/llms/__init__.py +20 -0
- jaclang/core/llms/anthropic.py +61 -0
- jaclang/core/llms/base.py +206 -0
- jaclang/core/llms/groq.py +67 -0
- jaclang/core/llms/huggingface.py +73 -0
- jaclang/core/llms/ollama.py +78 -0
- jaclang/core/llms/openai.py +61 -0
- jaclang/core/llms/togetherai.py +60 -0
- jaclang/core/llms/utils.py +9 -0
- jaclang/core/utils.py +16 -1
- jaclang/plugin/default.py +47 -16
- jaclang/plugin/feature.py +9 -6
- jaclang/plugin/spec.py +8 -1
- jaclang/settings.py +95 -0
- jaclang/utils/helpers.py +6 -2
- jaclang/utils/treeprinter.py +9 -6
- jaclang/vendor/mypy/checker.py +2 -3
- jaclang-0.6.0.dist-info/METADATA +17 -0
- {jaclang-0.5.17.dist-info → jaclang-0.6.0.dist-info}/RECORD +49 -39
- jaclang/core/llms.py +0 -29
- jaclang-0.5.17.dist-info/METADATA +0 -7
- {jaclang-0.5.17.dist-info → jaclang-0.6.0.dist-info}/WHEEL +0 -0
- {jaclang-0.5.17.dist-info → jaclang-0.6.0.dist-info}/entry_points.txt +0 -0
- {jaclang-0.5.17.dist-info → jaclang-0.6.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: jaclang
|
|
3
|
+
Version: 0.6.0
|
|
4
|
+
Home-page: https://github.com/Jaseci-Labs/jaclang
|
|
5
|
+
Author: Jason Mars
|
|
6
|
+
Author-email: jason@jaseci.org
|
|
7
|
+
Provides-Extra: llms
|
|
8
|
+
Requires-Dist: transformers ; extra == 'llms'
|
|
9
|
+
Requires-Dist: accelerator ; extra == 'llms'
|
|
10
|
+
Requires-Dist: torch ; extra == 'llms'
|
|
11
|
+
Requires-Dist: ollama ; extra == 'llms'
|
|
12
|
+
Requires-Dist: anthropic ; extra == 'llms'
|
|
13
|
+
Requires-Dist: groq ; extra == 'llms'
|
|
14
|
+
Requires-Dist: openai ; extra == 'llms'
|
|
15
|
+
Requires-Dist: together ; extra == 'llms'
|
|
16
|
+
Requires-Dist: loguru ; extra == 'llms'
|
|
17
|
+
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
jaclang/__init__.py,sha256=
|
|
1
|
+
jaclang/__init__.py,sha256=vTvt9LIz5RNKrLRueH3gUM3KTAjsqoanHQ_Pn9m4i9g,675
|
|
2
|
+
jaclang/settings.py,sha256=2bLDsF1xiFI9VL8vEIPZ5A5Q-XQ9hfK9lIszH99nKkc,3156
|
|
2
3
|
jaclang/cli/__init__.py,sha256=7aaPgYddIAHBvkdv36ngbfwsimMnfGaTDcaHYMg_vf4,23
|
|
3
|
-
jaclang/cli/cli.py,sha256=
|
|
4
|
+
jaclang/cli/cli.py,sha256=O4obezeiQKGsYqt4_ZN3pGBL7xjA2d_wcxgEVqZ959g,10806
|
|
4
5
|
jaclang/cli/cmdreg.py,sha256=bn2UdOkNbE-4zfbomO2j8rTtkXhsltH4jE5rKqA5HbY,7862
|
|
5
|
-
jaclang/compiler/__init__.py,sha256=
|
|
6
|
-
jaclang/compiler/absyntree.py,sha256=
|
|
6
|
+
jaclang/compiler/__init__.py,sha256=Fq2rBjvbFxTbolEC872X5CicOjyJmKo0yZlnUcChg6k,3119
|
|
7
|
+
jaclang/compiler/absyntree.py,sha256=VBqAZZQ9zRS73M55nZaATBoHzlDtRv86ogwyM4fjPZ0,126939
|
|
7
8
|
jaclang/compiler/codeloc.py,sha256=KMwf5OMQu3_uDjIdH7ta2piacUtXNPgUV1t8OuLjpzE,2828
|
|
8
9
|
jaclang/compiler/compile.py,sha256=fS6Uvor93EavESKrwadqp7bstcpMRRACvBkqbr4En04,2682
|
|
9
10
|
jaclang/compiler/constant.py,sha256=C8nOgWLAg-fRg8Qax_jRcYp6jGyWSSA1gwzk9Zdy7HE,6534
|
|
10
|
-
jaclang/compiler/jac.lark,sha256=
|
|
11
|
-
jaclang/compiler/parser.py,sha256=
|
|
12
|
-
jaclang/compiler/symtable.py,sha256=
|
|
13
|
-
jaclang/compiler/workspace.py,sha256
|
|
11
|
+
jaclang/compiler/jac.lark,sha256=Kvq5zZbQMJ-1bdXLVuCafRVS9w91UfN-0nLnEq0gOSw,17019
|
|
12
|
+
jaclang/compiler/parser.py,sha256=EtASMImnMyrKXixKpHYStBlhdDxVwtsIX306EWC8AHg,138177
|
|
13
|
+
jaclang/compiler/symtable.py,sha256=f-9c3eQJTDhEG22kYC3Vd4i5gRWf77_CsqFm7t8Wsng,6031
|
|
14
|
+
jaclang/compiler/workspace.py,sha256=I1MF2jaSylDOcQQV4Ez3svi4FdOyfmbNupuZT7q9aFQ,7797
|
|
14
15
|
jaclang/compiler/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
jaclang/compiler/generated/jac_parser.py,sha256=
|
|
16
|
+
jaclang/compiler/generated/jac_parser.py,sha256=Dn9D__4gJTGRYcfXgbkcwICHXe1qwMs2x0MkSuN3U_U,338234
|
|
16
17
|
jaclang/compiler/passes/__init__.py,sha256=0Tw0d130ZjzA05jVcny9cf5NfLjlaM70PKqFnY4zqn4,69
|
|
17
|
-
jaclang/compiler/passes/ir_pass.py,sha256=
|
|
18
|
-
jaclang/compiler/passes/transform.py,sha256=
|
|
19
|
-
jaclang/compiler/passes/main/__init__.py,sha256=
|
|
18
|
+
jaclang/compiler/passes/ir_pass.py,sha256=gh1Zd8ouu79FoxerW1sMxktmfeC9gHyp4H_MoAviYP8,5504
|
|
19
|
+
jaclang/compiler/passes/transform.py,sha256=Z3TuHMJ7TyyBHt0XmRWEjMk8-t6logKs7XG_OTDJIvo,2162
|
|
20
|
+
jaclang/compiler/passes/main/__init__.py,sha256=m8vZ0F6EiwOm0e0DWKRYgc8JcgiT2ayBrY6GojZkTfY,945
|
|
21
|
+
jaclang/compiler/passes/main/access_modifier_pass.py,sha256=1tQJ9bNlOVX3sgL0DK4jv643Pu5xl68oL8LNsaHf-MY,4864
|
|
20
22
|
jaclang/compiler/passes/main/def_impl_match_pass.py,sha256=_KgAVVzMAatigKDp1vAnhyY2GcWf0rRoD8MkfYg-POU,3297
|
|
21
23
|
jaclang/compiler/passes/main/def_use_pass.py,sha256=d2REmfme2HjUj8avDcXUuPbv3yKfvYHqpL49sxniLhQ,8576
|
|
22
|
-
jaclang/compiler/passes/main/fuse_typeinfo_pass.py,sha256=
|
|
23
|
-
jaclang/compiler/passes/main/import_pass.py,sha256=
|
|
24
|
-
jaclang/compiler/passes/main/pyast_gen_pass.py,sha256=
|
|
25
|
-
jaclang/compiler/passes/main/pyast_load_pass.py,sha256=
|
|
24
|
+
jaclang/compiler/passes/main/fuse_typeinfo_pass.py,sha256=9WrF78r4cNWnDqofx225b9cUZafTi3HwCffXINmgoZ0,15968
|
|
25
|
+
jaclang/compiler/passes/main/import_pass.py,sha256=JdDcAI2MmdJbisSSsgWHcKnuEmE_PmywSV7G9OzPras,6740
|
|
26
|
+
jaclang/compiler/passes/main/pyast_gen_pass.py,sha256=L24aRhoXIGoXu1FwwW2X3HoGWwjLmOAtbLCGqOrix0g,138795
|
|
27
|
+
jaclang/compiler/passes/main/pyast_load_pass.py,sha256=UDbosNQ88CcfSW1wKBYgLRz3ZBxpJ8cGwpn_KZaYvvk,89725
|
|
26
28
|
jaclang/compiler/passes/main/pybc_gen_pass.py,sha256=CjA9AqyMO3Pv_b5Hh0YI6JmCqIru2ASonO6rhrkau-M,1336
|
|
27
|
-
jaclang/compiler/passes/main/pyout_pass.py,sha256=
|
|
28
|
-
jaclang/compiler/passes/main/registry_pass.py,sha256=
|
|
29
|
-
jaclang/compiler/passes/main/schedules.py,sha256=
|
|
29
|
+
jaclang/compiler/passes/main/pyout_pass.py,sha256=clJkASFiBiki5w0MQXYIwcdvahYETgqAjKlYOYVYKNQ,3137
|
|
30
|
+
jaclang/compiler/passes/main/registry_pass.py,sha256=Lp_EqlflXkSgQuJe_EVBtzC16YAJx70bDO6X0nJIX5U,4579
|
|
31
|
+
jaclang/compiler/passes/main/schedules.py,sha256=Mvwt3aphVh4rhs8Mf5itK4GCIPM00rQ2a4tDzjmAzUk,1167
|
|
30
32
|
jaclang/compiler/passes/main/sub_node_tab_pass.py,sha256=fGgK0CBWsuD6BS4BsLwXPl1b5UC2N2YEOGa6jNMu8N8,1332
|
|
31
|
-
jaclang/compiler/passes/main/sym_tab_build_pass.py,sha256=
|
|
33
|
+
jaclang/compiler/passes/main/sym_tab_build_pass.py,sha256=TXM_oxTYIyKEXm2NDh6UgKw5KGPgYC1ONEqS4nN5PMQ,41769
|
|
32
34
|
jaclang/compiler/passes/main/type_check_pass.py,sha256=-f41Ukr3B1w4rkQdZ2xJy6nozymgnVKjJ8E1fn7qJmI,3339
|
|
33
35
|
jaclang/compiler/passes/main/tests/__init__.py,sha256=UBAATLUEH3yuBN4LYKnXXV79kokRc4XB-rX12qfu0ds,28
|
|
34
36
|
jaclang/compiler/passes/main/tests/test_decl_def_match_pass.py,sha256=QDsvTEpJt3AuS3GRwfq-1mezRCpx7rwEEyg1AbusaBs,1374
|
|
35
37
|
jaclang/compiler/passes/main/tests/test_def_use_pass.py,sha256=dmyZgXugOCN-_YY7dxkNHgt8vqey8qzNJf8sWyLLZ5w,1013
|
|
36
|
-
jaclang/compiler/passes/main/tests/test_import_pass.py,sha256=
|
|
38
|
+
jaclang/compiler/passes/main/tests/test_import_pass.py,sha256=iFyrdmNuoi1C25qkL7kyUXd55Exl3Cb0iP8vRZQKsC0,586
|
|
37
39
|
jaclang/compiler/passes/main/tests/test_pyast_build_pass.py,sha256=LIT4TP-nhtftRtY5rNySRQlim-dWMSlkfUvkhZTk4pc,1383
|
|
38
40
|
jaclang/compiler/passes/main/tests/test_pyast_gen_pass.py,sha256=fNL_FS26AQGlRCvwWfl-Qyt7iW2_A99GIHOAnnkpw9A,4731
|
|
39
41
|
jaclang/compiler/passes/main/tests/test_pybc_gen_pass.py,sha256=If8PE4exN5g9o1NRElNC0XdfIwJAp7M7f69rzmYRYUQ,655
|
|
@@ -44,40 +46,48 @@ jaclang/compiler/passes/main/tests/test_type_check_pass.py,sha256=bzrVcsBZra2HkQ
|
|
|
44
46
|
jaclang/compiler/passes/main/tests/test_typeinfo_pass.py,sha256=ehC0_giLg7NwB7fR10nW5Te8mZ76qmUFxkK1bEjtmrw,129
|
|
45
47
|
jaclang/compiler/passes/tool/__init__.py,sha256=xekCOXysHIcthWm8NRmQoA1Ah1XV8vFbkfeHphJtUdc,223
|
|
46
48
|
jaclang/compiler/passes/tool/fuse_comments_pass.py,sha256=N9a84qArNuTXX1iaXsBzqcufx6A3zYq2p-1ieH6FmHc,3133
|
|
47
|
-
jaclang/compiler/passes/tool/jac_formatter_pass.py,sha256=
|
|
49
|
+
jaclang/compiler/passes/tool/jac_formatter_pass.py,sha256=oYXDWWlxYj0FGXxXUOPnmwnkFPmayd2fRoWngvDgXwc,86113
|
|
48
50
|
jaclang/compiler/passes/tool/schedules.py,sha256=kmbsCazAMizGAdQuZpFky5BPlYlMXqNw7wOUzdi_wBo,432
|
|
49
51
|
jaclang/compiler/passes/tool/tests/__init__.py,sha256=AeOaZjA1rf6VAr0JqIit6jlcmOzW7pxGr4U1fOwgK_Y,24
|
|
50
52
|
jaclang/compiler/passes/tool/tests/test_fuse_comments_pass.py,sha256=ZeWHsm7VIyyS8KKpoB2SdlHM4jF22fMfSrfTfxt2MQw,398
|
|
51
|
-
jaclang/compiler/passes/tool/tests/test_jac_format_pass.py,sha256=
|
|
53
|
+
jaclang/compiler/passes/tool/tests/test_jac_format_pass.py,sha256=P4vBRbwVAkb8svFSAOf4VKioZS8BkoaVfYdn-LCrRqA,6144
|
|
52
54
|
jaclang/compiler/passes/tool/tests/test_unparse_validate.py,sha256=Tg9k7BOSkWngAZLvSHmPt95ILJzdIvdHxKBT__mgpS0,2910
|
|
53
55
|
jaclang/compiler/passes/utils/__init__.py,sha256=UsI5rUopTUiStAzup4kbPwIwrnC5ofCrqWBCBbM2-k4,35
|
|
54
56
|
jaclang/compiler/passes/utils/mypy_ast_build.py,sha256=0EJGhsdcIQoXeUbHlqZrPMa9XD69BZ5RcamrfOLKdk4,26057
|
|
55
57
|
jaclang/compiler/tests/__init__.py,sha256=qiXa5UNRBanGOcplFKTT9a_9GEyiv7goq1OzuCjDCFE,27
|
|
56
|
-
jaclang/compiler/tests/test_importer.py,sha256=
|
|
58
|
+
jaclang/compiler/tests/test_importer.py,sha256=JNmte5FsHhnng9jzw7N5BenflAFCasuhezN1sytDVyg,1739
|
|
57
59
|
jaclang/compiler/tests/test_parser.py,sha256=C81mUo8EGwypPTTLRVS9BglP0Dyye9xaPSQtw7cwnnI,4814
|
|
58
60
|
jaclang/compiler/tests/test_workspace.py,sha256=SEBcvz_daTbonrLHK9FbjiH86TUbOtVGH-iZ3xkJSMk,3184
|
|
59
61
|
jaclang/compiler/tests/fixtures/__init__.py,sha256=udQ0T6rajpW_nMiYKJNckqP8izZ-pH3P4PNTJEln2NU,36
|
|
60
62
|
jaclang/compiler/tests/fixtures/activity.py,sha256=fSvxYDKufsPeQIrbuh031zHw_hdbRv5iK9mS7dD8E54,263
|
|
61
63
|
jaclang/core/__init__.py,sha256=jDDYBCV82qPhmcDVk3NIvHbhng0ebSrXD3xrojg0-eo,34
|
|
62
|
-
jaclang/core/aott.py,sha256=
|
|
64
|
+
jaclang/core/aott.py,sha256=vqnoEwmAaLlasUDVI6k3d67OtqMquJ1YtgFELvLnKqk,7068
|
|
63
65
|
jaclang/core/construct.py,sha256=_mYHEbUPY3Dn0rcl21eJXLqAGYH_0_C-x1K9HDa2RKk,13633
|
|
64
|
-
jaclang/core/importer.py,sha256=
|
|
65
|
-
jaclang/core/llms.py,sha256=J05Tt4TdGG6empbTG08r6ucltD0EvYHHjJuvuvnfOC8,1097
|
|
66
|
+
jaclang/core/importer.py,sha256=gVJhQz7nKlIAzx7FF19cgmFQd_iRQuZ19Yz2SShLCPU,6020
|
|
66
67
|
jaclang/core/registry.py,sha256=4uuXahPN4SMVEWwJ6Gjm5LM14rePMGoyjQtSbDQmQZs,4178
|
|
67
|
-
jaclang/core/utils.py,sha256=
|
|
68
|
+
jaclang/core/utils.py,sha256=5e4DyjtSweFxKeIuEyeYGV2MsuTtfnncfIwRdoyFdys,7736
|
|
69
|
+
jaclang/core/llms/__init__.py,sha256=hxuxduH6ahhkXgJ9eUkhfn8LCS1KTz1ESuYgtspu_c0,371
|
|
70
|
+
jaclang/core/llms/anthropic.py,sha256=JmgKLUTk27Hg221rt4QBLRjonxE_qLkkSgZuLFZUrCg,1979
|
|
71
|
+
jaclang/core/llms/base.py,sha256=IOQWOP3zyPq05PVq7iYmh5wTd62m2W0husljvRtLYJo,6082
|
|
72
|
+
jaclang/core/llms/groq.py,sha256=jdcz8DMz4ResI2_0pfJB1rJ8Z8r9f0Av66D3ha0fCB4,2144
|
|
73
|
+
jaclang/core/llms/huggingface.py,sha256=8NqPScBFhodjONc4SbJ1OHyftQ1y9q_a7QevprDeArQ,2656
|
|
74
|
+
jaclang/core/llms/ollama.py,sha256=mlNf844qgiBizVRRBfQt-pM8sN6dX7ESqdo2SXu8aE0,2691
|
|
75
|
+
jaclang/core/llms/openai.py,sha256=uG4BIW8x9NhWMhy9taqb4esIa3POO_cezsZ7ZclLan8,1975
|
|
76
|
+
jaclang/core/llms/togetherai.py,sha256=MTPz7QasO2MjDn8hVCjOVU3SO6H6pF9Qoh7ZHmx46yw,2005
|
|
77
|
+
jaclang/core/llms/utils.py,sha256=mTpROnh4qS8fE26TkcotSt-mAqWoSeEeRBOu0SgoPmA,219
|
|
68
78
|
jaclang/plugin/__init__.py,sha256=qLbQ2KjwyTvlV50Q7JTIznyIzuGDPjuwM_ZJjdk-avo,182
|
|
69
79
|
jaclang/plugin/builtin.py,sha256=D1R4GGNHX96P-wZnGm9OI4dMeCJvuXuHkCw2Cl5vaAU,1201
|
|
70
|
-
jaclang/plugin/default.py,sha256=
|
|
71
|
-
jaclang/plugin/feature.py,sha256=
|
|
72
|
-
jaclang/plugin/spec.py,sha256=
|
|
80
|
+
jaclang/plugin/default.py,sha256=QuhAIMZ3Flhn4UVFm8vWVmAfAbqEFx_ekhqb84VO8og,24458
|
|
81
|
+
jaclang/plugin/feature.py,sha256=u4UCLIaZ8DKhtpfKclfC3TUmx-SHfRttUdtgLrHo3Io,8853
|
|
82
|
+
jaclang/plugin/spec.py,sha256=tPeekVbwxyBE2xlkff3FXxfQkAaFsyPKPX_5FjUwfPs,7968
|
|
73
83
|
jaclang/plugin/tests/__init__.py,sha256=rn_tNG8jCHWwBc_rx4yFkGc4N1GISb7aPuTFVRTvrTk,38
|
|
74
84
|
jaclang/plugin/tests/test_features.py,sha256=uNQ52HHc0GiOGg5xUZk-ddafdtud0IHN4H_EUAs4er4,3547
|
|
75
85
|
jaclang/utils/__init__.py,sha256=86LQ_LDyWV-JFkYBpeVHpLaVxkqwFDP60XpWXOFZIQk,46
|
|
76
|
-
jaclang/utils/helpers.py,sha256=
|
|
86
|
+
jaclang/utils/helpers.py,sha256=6tfu2paCSSAUzJMZlMVl4ftbf9HOWN4TaJz7U-S0G1g,5831
|
|
77
87
|
jaclang/utils/lang_tools.py,sha256=odv66Os8bJvw9JIUUkccGWvEPL98c-60veAiOiNyTy4,9956
|
|
78
88
|
jaclang/utils/log.py,sha256=G8Y_DnETgTh9xzvlW5gh9zqJ1ap4YY_MDTwIMu5Uc0Y,262
|
|
79
89
|
jaclang/utils/test.py,sha256=7-2Te0GQcKY3RJfNKa3cEJjG-RMC1r-0fHuOcFXrmE8,5383
|
|
80
|
-
jaclang/utils/treeprinter.py,sha256=
|
|
90
|
+
jaclang/utils/treeprinter.py,sha256=wRWUaEVxnNdcbTYyQ5PJiSJ2PI4UoNTZzHadwSZ_eUE,11117
|
|
81
91
|
jaclang/utils/tests/__init__.py,sha256=8uwVqMsc6cxBAM1DuHLuNuTnzLXqOqM-WRa4ixOMF6w,23
|
|
82
92
|
jaclang/utils/tests/test_lang_tools.py,sha256=YmV1AWieSoqcxWJYnxX1Lz3dZAR0rRvz6billsGJdHY,4144
|
|
83
93
|
jaclang/vendor/__init__.py,sha256=pbflH5hBfDiKfTJEjIXId44Eof8CVmXQlZwFYDG6_4E,35
|
|
@@ -131,7 +141,7 @@ jaclang/vendor/mypy/argmap.py,sha256=ooUmGfkZT6z4Yj-PryvPe9Krqe3G2OiY489kNM6IRGU
|
|
|
131
141
|
jaclang/vendor/mypy/binder.py,sha256=vfQVroYb6kQgNN-iggcOkg1Xo90RSYv7mhE9eJ3dAsU,21450
|
|
132
142
|
jaclang/vendor/mypy/bogus_type.py,sha256=w3GrsWoj5FKbfEUsc87OVFO812HC9BvnWnSaV2T4u1c,816
|
|
133
143
|
jaclang/vendor/mypy/build.py,sha256=ATEhNPCqiGOxDrKJm7Qs5EuQh7hn8yTZXsJ0lM-gGf4,147004
|
|
134
|
-
jaclang/vendor/mypy/checker.py,sha256=
|
|
144
|
+
jaclang/vendor/mypy/checker.py,sha256=5BV__Wp1hCAp79cAXdlA6vNn_QX_kzwfK-F2KaP1Qx8,386406
|
|
135
145
|
jaclang/vendor/mypy/checkexpr.py,sha256=Ei9TMj81pPVKPlFq77LM6DZbcS7diBE-_k9WEBPk1PU,295068
|
|
136
146
|
jaclang/vendor/mypy/checkmember.py,sha256=eYZ4BvDAuvHIaPKV6C5N79Hl1ysJHFeI15DmjE77Ol8,54473
|
|
137
147
|
jaclang/vendor/mypy/checkpattern.py,sha256=v8rcpeYl7vcp0WUvwAKVNEKgwkOzGYXpw_LWEJjimz0,34074
|
|
@@ -409,8 +419,8 @@ jaclang/vendor/pluggy/_manager.py,sha256=fcYU7VER0CplRym4jAJ7RCFYl6cfDSeVM589YHH
|
|
|
409
419
|
jaclang/vendor/pluggy/_result.py,sha256=wXDoVy68bOaOrBzQ0bWFb3HTbpqhvdQMgYwaZvfzxfA,3239
|
|
410
420
|
jaclang/vendor/pluggy/_tracing.py,sha256=kSBr25F_rNklV2QhLD6h1jx6Z1kcKDRbuYvF5jv35pU,2089
|
|
411
421
|
jaclang/vendor/pluggy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
412
|
-
jaclang-0.
|
|
413
|
-
jaclang-0.
|
|
414
|
-
jaclang-0.
|
|
415
|
-
jaclang-0.
|
|
416
|
-
jaclang-0.
|
|
422
|
+
jaclang-0.6.0.dist-info/METADATA,sha256=oFL9x1Tyx0ZnVcb1BKmakhCSneRit3Qtabu7QOGiQXk,546
|
|
423
|
+
jaclang-0.6.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
424
|
+
jaclang-0.6.0.dist-info/entry_points.txt,sha256=Z-snS3MDBdV1Z4znXDZTenyyndovaNjqRkDW1t2kYSs,50
|
|
425
|
+
jaclang-0.6.0.dist-info/top_level.txt,sha256=ZOAoLpE67ozkUJd-v3C59wBNXiteRD8IWPbsYB3M08g,8
|
|
426
|
+
jaclang-0.6.0.dist-info/RECORD,,
|
jaclang/core/llms.py
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"""LLMs (Large Language Models) module for Jaclang."""
|
|
2
|
-
|
|
3
|
-
import anthropic
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class Anthropic:
|
|
7
|
-
"""Anthropic API client for Large Language Models (LLMs)."""
|
|
8
|
-
|
|
9
|
-
MTLLM_PROMPT: str = ""
|
|
10
|
-
MTLLM_REASON_SUFFIX: str = ""
|
|
11
|
-
MTLLM_WO_REASON_SUFFIX: str = ""
|
|
12
|
-
|
|
13
|
-
def __init__(self, **kwargs: dict) -> None:
|
|
14
|
-
"""Initialize the Anthropic API client."""
|
|
15
|
-
self.client = anthropic.Anthropic()
|
|
16
|
-
self.model_name = kwargs.get("model_name", "claude-3-sonnet-20240229")
|
|
17
|
-
self.temperature = kwargs.get("temperature", 0.7)
|
|
18
|
-
self.max_tokens = kwargs.get("max_tokens", 1024)
|
|
19
|
-
|
|
20
|
-
def __infer__(self, meaning_in: str, **kwargs: dict) -> str:
|
|
21
|
-
"""Infer a response from the input meaning."""
|
|
22
|
-
messages = [{"role": "user", "content": meaning_in}]
|
|
23
|
-
output = self.client.messages.create(
|
|
24
|
-
model=kwargs.get("model_name", self.model_name),
|
|
25
|
-
temperature=kwargs.get("temperature", self.temperature),
|
|
26
|
-
max_tokens=kwargs.get("max_tokens", self.max_tokens),
|
|
27
|
-
messages=messages,
|
|
28
|
-
)
|
|
29
|
-
return output.content[0].text
|
|
File without changes
|
|
File without changes
|
|
File without changes
|