lionagi 0.9.17__py3-none-any.whl → 0.9.19__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.
@@ -47,10 +47,11 @@ def concat_files(
47
47
  data_path = sorted(data_path)
48
48
  data_path = [Path(dp) for dp in data_path if Path(dp).exists()]
49
49
 
50
+ fps = []
50
51
  for dp in data_path:
51
- fps = dir_to_files(dp, recursive=recursive, file_types=file_types)
52
+ _fps = dir_to_files(dp, recursive=recursive, file_types=file_types)
52
53
 
53
- data_path = sorted([str(i) for i in fps])
54
+ data_path = sorted([str(i) for i in _fps])
54
55
  data_path: list[Path] = [
55
56
  Path(dp) for dp in data_path if Path(dp).exists()
56
57
  ]
@@ -65,6 +66,7 @@ def concat_files(
65
66
  )
66
67
  text = fp_text + text
67
68
  texts.append(text)
69
+ fps.extend(data_path)
68
70
 
69
71
  text = "\n".join(texts)
70
72
  if persist_path:
@@ -14,6 +14,7 @@ MAPPING_PATH = "synthlang_/resources/mapping"
14
14
  class TokenMappingTemplate(str, Enum):
15
15
  RUST_CHINESE = "rust_chinese"
16
16
  LION_EMOJI = "lion_emoji"
17
+ PYTHON_MATH = "python_math"
17
18
 
18
19
  @property
19
20
  def fp(self) -> Path:
@@ -5,16 +5,11 @@ category = "utility"
5
5
  [metadata]
6
6
  title = "LionAGI-Emoji Symbolic Encoding Mapping"
7
7
  domain = "Symbolic Compression"
8
- version = "1.0"
8
+ version = "1.1"
9
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
10
  lion_class = "lionagi.libs.token_transform.base.TokenMapping"
11
11
 
12
12
  [content]
13
- "..." = "⋯"
14
- --- = "⧦"
15
- "⧦⧦⧦" = "⧦"
16
- " " = "空"
17
- "###" = "井"
18
13
  lionagi = "🦁"
19
14
  LionAGI = "🦁"
20
15
  Branch = "β"
@@ -35,21 +30,32 @@ pile = "📚"
35
30
  progression = "䷢"
36
31
  Progression = "䷢"
37
32
  IDType = "🆔"
38
- "await " = "🕰️"
39
- "async " = "⋕"
40
- True = "✅"
41
- False = "❌"
42
33
  None = "🅾️"
34
+ "def " = "𝓓"
35
+ "async def " = "𝓐"
36
+ "class " = "𝑭"
37
+ Self = "𝖎"
38
+ kwargs = "𝓚"
39
+ "while " = "∲"
40
+ "for " = "𝓃"
41
+ "return " = "⇉"
42
+ "if " = "¿"
43
+ "with " = "ѿ"
44
+ "is not " = "≢"
45
+ "or " = "⨈"
46
+ "and " = "⨇"
47
+ "await " = "🕰️"
48
+ True = "⊨"
49
+ False = "⊭"
50
+ "in " = "∈"
43
51
  "->" = "→"
44
- "<=" = "≤"
45
- ">=" = "≥"
46
52
  "!=" = "≠"
47
- "=>" = ""
48
- "def " = ""
53
+ ">=" = ""
54
+ "<=" = ""
49
55
  "==" = "⩵"
50
- from = ""
51
- if = "¿"
52
- return = ""
53
- function = "ƒ"
54
- "```synthlang\n```synthlang\n```synthlang" = "```synthlang"
55
- "```synthlang\n```synthlang" = "```synthlang"
56
+ "..." = ""
57
+ --- = ""
58
+ "⧦⧦⧦" = ""
59
+ " " = "◻︎"
60
+ "◻︎◻︎" = "◼︎"
61
+ "###" = "#"
@@ -0,0 +1,41 @@
1
+ id = "cf8f1629-feab-456b-831a-4841a4ac95e6"
2
+ created_at = 1741016657.655462
3
+ category = "utility"
4
+
5
+ [metadata]
6
+ title = "Python Math Symbolic Encoding Mapping"
7
+ domain = "Symbolic Compression"
8
+ version = "1.2"
9
+ overview = "This resource provides a mapping of Python greek_math symbolic encoding for compressing python codebase. When using, should keep the semantic structure of original python codes, do not translate into any natural language."
10
+ lion_class = "lionagi.libs.token_transform.base.TokenMapping"
11
+
12
+ [content]
13
+ "def " = "𝓓"
14
+ "async def " = "𝓐"
15
+ "class " = "𝑭"
16
+ self = "𝖎"
17
+ kwargs = "𝓚"
18
+ "while " = "∲"
19
+ "for " = "𝓃"
20
+ "return " = "⇉"
21
+ "if not " = "⸘"
22
+ "if " = "¿"
23
+ "with " = "ѿ"
24
+ "is not " = "≢"
25
+ "or " = "⨈"
26
+ "and " = "⨇"
27
+ "| None" = "˚"
28
+ True = "⊨"
29
+ False = "⊭"
30
+ "in " = "∈"
31
+ "->" = "→"
32
+ "!=" = "≠"
33
+ ">=" = "≥"
34
+ "<=" = "≤"
35
+ "==" = "⩵"
36
+ "..." = "⋯"
37
+ --- = "⧦"
38
+ "⧦⧦⧦" = "⧦"
39
+ " " = "◻︎"
40
+ "◻︎◻︎" = "◼︎"
41
+ "###" = "#"
lionagi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.9.17"
1
+ __version__ = "0.9.19"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lionagi
3
- Version: 0.9.17
3
+ Version: 0.9.19
4
4
  Summary: An Intelligence Operating System.
5
5
  Author-email: HaiyangLi <quantocean.li@gmail.com>
6
6
  License: Apache License
@@ -4,12 +4,12 @@ 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=XwPQTH78g0lcbaME-GxlYwHf1_OQPmK9ZRuevk-I_Yw,23
7
+ lionagi/version.py,sha256=E2LcjoZkiyw1bv0jAxLAlB9WXEQgZ0RHQMBR4l1tj7U,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
11
11
  lionagi/libs/file/chunk.py,sha256=XeVMwM33JF0X1W6udz_nhlb3DCevA_EK6A50Hn_e5SY,9300
12
- lionagi/libs/file/concat_files.py,sha256=Kb4YhG-W9IpCYDSJUmvlZgpXXAvG71ocKL_ztHjNtUk,3044
12
+ lionagi/libs/file/concat_files.py,sha256=FoI983oWFzp9VfFDP7kmbRb3t1CPe5F5LCtsux0ASAs,3089
13
13
  lionagi/libs/file/file_ops.py,sha256=HBiIh1EljIJ5VTIXuyvJM0ppSs0YYOPUWmgDMJT634U,3430
14
14
  lionagi/libs/file/params.py,sha256=SZ5DkoffWfxWudOAYCfCxpL8UIm-1UjeyTtploo-Lqs,5824
15
15
  lionagi/libs/file/process.py,sha256=NKC-rIkm83qv4rgz-otd89aziop0G_LPz7_kmBAowsQ,8686
@@ -36,7 +36,7 @@ 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=OiF2peDm39BNLJLq9uNREcM0-YfnP21B9y7BO9tKMFs,1513
39
+ lionagi/libs/token_transform/base.py,sha256=LBnaDgi4HNgaJJGwIzWcQjVMdu49i_93rRvOvMU22Rw,1545
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
42
  lionagi/libs/token_transform/symbolic_compress_context.py,sha256=Nr4vSJSN6sUQgaA1QxHhidWH3pUG_5RnoYeLHjMsoLA,4603
@@ -53,7 +53,8 @@ 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
+ lionagi/libs/token_transform/synthlang_/resources/mapping/lion_emoji_mapping.toml,sha256=CPbqoh691wfZ3Xe49iLEWGJoaIbRUyDgn2_bFlvH72E,1322
57
+ lionagi/libs/token_transform/synthlang_/resources/mapping/python_math_mapping.toml,sha256=3ElxIfm7Kn_f8n6fHDENhC29Z3IlofUXjwNTEAjRQMQ,963
57
58
  lionagi/libs/token_transform/synthlang_/resources/mapping/rust_chinese_mapping.toml,sha256=IU5qOB-a_ZJI_wMOa0OJu3foAp6tIdvegnVt-yw5URM,1216
58
59
  lionagi/libs/token_transform/synthlang_/resources/utility/base_synthlang_system_prompt.toml,sha256=8xhY14WdDRF6GIToqzRPM7EjM6-uO6-hQ9Muei1A2Iw,3458
59
60
  lionagi/libs/validate/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
@@ -233,7 +234,7 @@ lionagi/tools/file/writer.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,
233
234
  lionagi/tools/file/providers/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
234
235
  lionagi/tools/file/providers/docling_.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
235
236
  lionagi/tools/query/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
236
- lionagi-0.9.17.dist-info/METADATA,sha256=szJDMZDdO86xE67qwsXyV6pd-ZQkTUoagO3h6pg98KQ,18464
237
- lionagi-0.9.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
238
- lionagi-0.9.17.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
239
- lionagi-0.9.17.dist-info/RECORD,,
237
+ lionagi-0.9.19.dist-info/METADATA,sha256=qzc4Vs_-f1qh0QzyYCusVnl-W3yVlxSHjeqTVflY8c8,18464
238
+ lionagi-0.9.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
239
+ lionagi-0.9.19.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
240
+ lionagi-0.9.19.dist-info/RECORD,,