lionagi 0.9.15__py3-none-any.whl → 0.9.16__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.
- lionagi/libs/token_transform/base.py +1 -0
- lionagi/libs/token_transform/symbolic_compress_context.py +5 -1
- lionagi/libs/token_transform/synthlang_/resources/mapping/lion_emoji_mapping.toml +55 -0
- lionagi/version.py +1 -1
- {lionagi-0.9.15.dist-info → lionagi-0.9.16.dist-info}/METADATA +1 -1
- {lionagi-0.9.15.dist-info → lionagi-0.9.16.dist-info}/RECORD +8 -7
- {lionagi-0.9.15.dist-info → lionagi-0.9.16.dist-info}/WHEEL +0 -0
- {lionagi-0.9.15.dist-info → lionagi-0.9.16.dist-info}/licenses/LICENSE +0 -0
@@ -11,6 +11,9 @@ from .synthlang_.base import SynthlangFramework, SynthlangTemplate
|
|
11
11
|
|
12
12
|
FRAMEWORK_OPTIONS = SynthlangFramework.load_framework_options()
|
13
13
|
FRAMEWORK_CHOICES = Literal["math", "optim", "custom_algebra"]
|
14
|
+
DEFAULT_INVOKATION_PROMPT = (
|
15
|
+
"The light-speed brown fox jumps over the lazy dog with great agility."
|
16
|
+
)
|
14
17
|
|
15
18
|
|
16
19
|
async def symbolic_compress_context(
|
@@ -127,7 +130,7 @@ async def symbolic_compress_context(
|
|
127
130
|
_inner,
|
128
131
|
max_concurrent=max_concurrent,
|
129
132
|
retry_default=None,
|
130
|
-
num_retries=
|
133
|
+
num_retries=3,
|
131
134
|
throttle_period=throttle_period,
|
132
135
|
retry_delay=1,
|
133
136
|
backoff_factor=2,
|
@@ -136,6 +139,7 @@ async def symbolic_compress_context(
|
|
136
139
|
unique_output=True,
|
137
140
|
)
|
138
141
|
text = "\n".join(results)
|
142
|
+
text = DEFAULT_INVOKATION_PROMPT + text
|
139
143
|
|
140
144
|
if output_path:
|
141
145
|
fp = Path(output_path)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
id = "8d3c0f4a-5bbb-4426-99fb-1a37c6a72b38"
|
2
|
+
created_at = 1740946382.550635
|
3
|
+
category = "utility"
|
4
|
+
|
5
|
+
[metadata]
|
6
|
+
title = "LionAGI-Emoji Symbolic Encoding Mapping"
|
7
|
+
domain = "Symbolic Compression"
|
8
|
+
version = "1.0"
|
9
|
+
overview = "This resource provides a mapping of lionagi emoji symbolic encoding for compressing lionagi python codebase. When using, should keep the semantic structure of original python codes, do not translate into emoji nor any natural language."
|
10
|
+
lion_class = "lionagi.libs.token_transform.base.TokenMapping"
|
11
|
+
|
12
|
+
[content]
|
13
|
+
"..." = "⋯"
|
14
|
+
--- = "⧦"
|
15
|
+
"⧦⧦⧦" = "⧦"
|
16
|
+
" " = "空"
|
17
|
+
"###" = "井"
|
18
|
+
lionagi = "🦁"
|
19
|
+
LionAGI = "🦁"
|
20
|
+
Branch = "β"
|
21
|
+
branch = "β"
|
22
|
+
iModel = "🧠"
|
23
|
+
imodel = "🧠"
|
24
|
+
operatives = "Ṓ"
|
25
|
+
operative = "Ṓ"
|
26
|
+
operations = "⨔"
|
27
|
+
operation = "⨔"
|
28
|
+
protocols = "🔏"
|
29
|
+
manager = "👑"
|
30
|
+
Manager = "👑"
|
31
|
+
Element = "🧱"
|
32
|
+
element = "🧱"
|
33
|
+
Pile = "📚"
|
34
|
+
pile = "📚"
|
35
|
+
progression = "䷢"
|
36
|
+
Progression = "䷢"
|
37
|
+
IDType = "🆔"
|
38
|
+
"await " = "🕰️"
|
39
|
+
"async " = "⋕"
|
40
|
+
True = "✅"
|
41
|
+
False = "❌"
|
42
|
+
None = "🅾️"
|
43
|
+
"->" = "→"
|
44
|
+
"<=" = "≤"
|
45
|
+
">=" = "≥"
|
46
|
+
"!=" = "≠"
|
47
|
+
"=>" = "⇒"
|
48
|
+
"def " = "∂"
|
49
|
+
"==" = "⩵"
|
50
|
+
from = "从"
|
51
|
+
if = "¿"
|
52
|
+
return = "⟲"
|
53
|
+
function = "ƒ"
|
54
|
+
"```synthlang\n```synthlang\n```synthlang" = "```synthlang"
|
55
|
+
"```synthlang\n```synthlang" = "```synthlang"
|
lionagi/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.9.
|
1
|
+
__version__ = "0.9.16"
|
@@ -4,7 +4,7 @@ lionagi/_errors.py,sha256=JlBTFJnRWtVYcRxKb7fWFiJHLbykl1E19mSJ8sXYVxg,455
|
|
4
4
|
lionagi/_types.py,sha256=9g7iytvSj3UjZxD-jL06_fxuNfgZyWT3Qnp0XYp1wQU,63
|
5
5
|
lionagi/settings.py,sha256=W52mM34E6jXF3GyqCFzVREKZrmnUqtZm_BVDsUiDI_s,1627
|
6
6
|
lionagi/utils.py,sha256=K36D9AAGiMPR4eM9tYoiVgvH-NdPPSeMQPls09s7keQ,73223
|
7
|
-
lionagi/version.py,sha256=
|
7
|
+
lionagi/version.py,sha256=acB0gualD_f0pAsWdbLFyA6FBMb_Gmat0K0kEn9R9AA,23
|
8
8
|
lionagi/libs/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
9
9
|
lionagi/libs/parse.py,sha256=JRS3bql0InHJqATnAatl-hQv4N--XXw4P77JHhTFnrc,1011
|
10
10
|
lionagi/libs/file/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
@@ -36,10 +36,10 @@ lionagi/libs/schema/extract_docstring.py,sha256=aYyLSRlB8lTH9QF9-6a56uph3AAkNuTy
|
|
36
36
|
lionagi/libs/schema/function_to_schema.py,sha256=Ak21_0xCFP71qgb6_wNzaRSVsdkf1ieRjJ92hXo7qPE,5628
|
37
37
|
lionagi/libs/schema/json_schema.py,sha256=cuHcaMr748O9g6suNGmRx4tRXcidd5-c7AMGjTIZyHM,7670
|
38
38
|
lionagi/libs/token_transform/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
|
-
lionagi/libs/token_transform/base.py,sha256=
|
39
|
+
lionagi/libs/token_transform/base.py,sha256=OiF2peDm39BNLJLq9uNREcM0-YfnP21B9y7BO9tKMFs,1513
|
40
40
|
lionagi/libs/token_transform/llmlingua.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
|
41
41
|
lionagi/libs/token_transform/perplexity.py,sha256=tcVRjPBX3nuVqsoTkowCf6RBXuybO--owH1lf2Ywj1s,14470
|
42
|
-
lionagi/libs/token_transform/symbolic_compress_context.py,sha256=
|
42
|
+
lionagi/libs/token_transform/symbolic_compress_context.py,sha256=Nr4vSJSN6sUQgaA1QxHhidWH3pUG_5RnoYeLHjMsoLA,4603
|
43
43
|
lionagi/libs/token_transform/synthlang.py,sha256=W6e-_265UXqVosM9X0TLKW53rNHvWCKhsWbVAop49Ac,259
|
44
44
|
lionagi/libs/token_transform/types.py,sha256=4HgAfNDlJ_Hu18kLt59GHr_76eF3xLpNCTbOXlAYVlA,491
|
45
45
|
lionagi/libs/token_transform/synthlang_/base.py,sha256=diDFrm-1Zf3PerKjODo-uFQMEjxPeaGtbZ5N1lK59Kg,4114
|
@@ -53,6 +53,7 @@ lionagi/libs/token_transform/synthlang_/resources/frameworks/math_logic.toml,sha
|
|
53
53
|
lionagi/libs/token_transform/synthlang_/resources/frameworks/reflective_patterns.toml,sha256=LxBIVLHNLfvVdXjLAzqivrYaHNix514DLNYsbA-VSQ4,5730
|
54
54
|
lionagi/libs/token_transform/synthlang_/resources/frameworks/set_theory.toml,sha256=SZpBvUySZ3_0pIrRko24a3KfbPHd55LyNwzFHyznjs4,1457
|
55
55
|
lionagi/libs/token_transform/synthlang_/resources/frameworks/topology_fundamentals.toml,sha256=nnhfbIJQ5pTGlX7lo1XzjyOevaZOHuusvBuhwWHzbLk,1008
|
56
|
+
lionagi/libs/token_transform/synthlang_/resources/mapping/lion_emoji_mapping.toml,sha256=HQFdI7WJ6Jwl9Y4O6Bz862UtzKIzDuYkhydC7Vt_2fw,1276
|
56
57
|
lionagi/libs/token_transform/synthlang_/resources/mapping/rust_chinese_mapping.toml,sha256=IU5qOB-a_ZJI_wMOa0OJu3foAp6tIdvegnVt-yw5URM,1216
|
57
58
|
lionagi/libs/token_transform/synthlang_/resources/utility/base_synthlang_system_prompt.toml,sha256=8xhY14WdDRF6GIToqzRPM7EjM6-uO6-hQ9Muei1A2Iw,3458
|
58
59
|
lionagi/libs/validate/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
@@ -232,7 +233,7 @@ lionagi/tools/file/writer.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,
|
|
232
233
|
lionagi/tools/file/providers/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
233
234
|
lionagi/tools/file/providers/docling_.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
234
235
|
lionagi/tools/query/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
235
|
-
lionagi-0.9.
|
236
|
-
lionagi-0.9.
|
237
|
-
lionagi-0.9.
|
238
|
-
lionagi-0.9.
|
236
|
+
lionagi-0.9.16.dist-info/METADATA,sha256=p6bDdHJ5ayzHFHGd3X2Sr2Em_nI4eE6TLNg1WBwqI_M,18464
|
237
|
+
lionagi-0.9.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
238
|
+
lionagi-0.9.16.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
|
239
|
+
lionagi-0.9.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|