lionagi 0.2.10__py3-none-any.whl → 0.3.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. lionagi/core/action/function_calling.py +13 -6
  2. lionagi/core/action/tool.py +10 -9
  3. lionagi/core/action/tool_manager.py +18 -9
  4. lionagi/core/agent/README.md +1 -1
  5. lionagi/core/agent/base_agent.py +5 -2
  6. lionagi/core/agent/eval/README.md +1 -1
  7. lionagi/core/collections/README.md +1 -1
  8. lionagi/core/collections/_logger.py +16 -6
  9. lionagi/core/collections/abc/README.md +1 -1
  10. lionagi/core/collections/abc/component.py +35 -11
  11. lionagi/core/collections/abc/concepts.py +5 -3
  12. lionagi/core/collections/abc/exceptions.py +3 -1
  13. lionagi/core/collections/flow.py +16 -5
  14. lionagi/core/collections/model.py +34 -8
  15. lionagi/core/collections/pile.py +65 -28
  16. lionagi/core/collections/progression.py +1 -2
  17. lionagi/core/collections/util.py +11 -2
  18. lionagi/core/director/README.md +1 -1
  19. lionagi/core/engine/branch_engine.py +35 -10
  20. lionagi/core/engine/instruction_map_engine.py +14 -5
  21. lionagi/core/engine/sandbox_.py +3 -1
  22. lionagi/core/engine/script_engine.py +6 -2
  23. lionagi/core/executor/base_executor.py +10 -3
  24. lionagi/core/executor/graph_executor.py +12 -4
  25. lionagi/core/executor/neo4j_executor.py +18 -6
  26. lionagi/core/generic/edge.py +7 -2
  27. lionagi/core/generic/graph.py +23 -7
  28. lionagi/core/generic/node.py +14 -5
  29. lionagi/core/generic/tree_node.py +5 -1
  30. lionagi/core/mail/mail_manager.py +3 -1
  31. lionagi/core/mail/package.py +3 -1
  32. lionagi/core/message/action_request.py +9 -2
  33. lionagi/core/message/action_response.py +9 -3
  34. lionagi/core/message/instruction.py +8 -2
  35. lionagi/core/message/util.py +15 -5
  36. lionagi/core/report/base.py +12 -7
  37. lionagi/core/report/form.py +7 -4
  38. lionagi/core/report/report.py +10 -3
  39. lionagi/core/report/util.py +3 -1
  40. lionagi/core/rule/action.py +4 -1
  41. lionagi/core/rule/base.py +17 -6
  42. lionagi/core/rule/rulebook.py +8 -4
  43. lionagi/core/rule/string.py +3 -1
  44. lionagi/core/session/branch.py +15 -4
  45. lionagi/core/session/session.py +6 -2
  46. lionagi/core/unit/parallel_unit.py +9 -3
  47. lionagi/core/unit/template/action.py +1 -1
  48. lionagi/core/unit/template/predict.py +3 -1
  49. lionagi/core/unit/template/select.py +5 -3
  50. lionagi/core/unit/unit.py +50 -2
  51. lionagi/core/unit/unit_form.py +13 -15
  52. lionagi/core/unit/unit_mixin.py +45 -27
  53. lionagi/core/unit/util.py +7 -3
  54. lionagi/core/validator/validator.py +28 -15
  55. lionagi/core/work/work_edge.py +7 -3
  56. lionagi/core/work/work_task.py +11 -5
  57. lionagi/core/work/worker.py +20 -5
  58. lionagi/core/work/worker_engine.py +6 -2
  59. lionagi/core/work/worklog.py +3 -1
  60. lionagi/experimental/compressor/llm_compressor.py +20 -5
  61. lionagi/experimental/directive/README.md +1 -1
  62. lionagi/experimental/directive/parser/base_parser.py +41 -14
  63. lionagi/experimental/directive/parser/base_syntax.txt +23 -23
  64. lionagi/experimental/directive/template/base_template.py +14 -6
  65. lionagi/experimental/directive/tokenizer.py +3 -1
  66. lionagi/experimental/evaluator/README.md +1 -1
  67. lionagi/experimental/evaluator/ast_evaluator.py +6 -2
  68. lionagi/experimental/evaluator/base_evaluator.py +27 -16
  69. lionagi/integrations/bridge/autogen_/autogen_.py +7 -3
  70. lionagi/integrations/bridge/langchain_/documents.py +13 -10
  71. lionagi/integrations/bridge/llamaindex_/llama_pack.py +36 -12
  72. lionagi/integrations/bridge/llamaindex_/node_parser.py +8 -3
  73. lionagi/integrations/bridge/llamaindex_/reader.py +3 -1
  74. lionagi/integrations/bridge/llamaindex_/textnode.py +9 -3
  75. lionagi/integrations/bridge/pydantic_/pydantic_bridge.py +7 -1
  76. lionagi/integrations/bridge/transformers_/install_.py +3 -1
  77. lionagi/integrations/chunker/chunk.py +5 -2
  78. lionagi/integrations/loader/load.py +7 -3
  79. lionagi/integrations/loader/load_util.py +35 -16
  80. lionagi/integrations/provider/oai.py +13 -4
  81. lionagi/integrations/provider/openrouter.py +13 -4
  82. lionagi/integrations/provider/services.py +3 -1
  83. lionagi/integrations/provider/transformers.py +5 -3
  84. lionagi/integrations/storage/neo4j.py +23 -7
  85. lionagi/integrations/storage/storage_util.py +23 -7
  86. lionagi/integrations/storage/structure_excel.py +7 -2
  87. lionagi/integrations/storage/to_csv.py +8 -2
  88. lionagi/integrations/storage/to_excel.py +11 -3
  89. lionagi/libs/ln_api.py +41 -19
  90. lionagi/libs/ln_context.py +4 -4
  91. lionagi/libs/ln_convert.py +35 -14
  92. lionagi/libs/ln_dataframe.py +9 -3
  93. lionagi/libs/ln_func_call.py +53 -18
  94. lionagi/libs/ln_image.py +9 -5
  95. lionagi/libs/ln_knowledge_graph.py +21 -7
  96. lionagi/libs/ln_nested.py +57 -16
  97. lionagi/libs/ln_parse.py +45 -15
  98. lionagi/libs/ln_queue.py +8 -3
  99. lionagi/libs/ln_tokenize.py +19 -6
  100. lionagi/libs/ln_validate.py +14 -3
  101. lionagi/libs/sys_util.py +44 -12
  102. lionagi/lions/coder/coder.py +24 -8
  103. lionagi/lions/coder/util.py +6 -2
  104. lionagi/lions/researcher/data_source/google_.py +12 -4
  105. lionagi/lions/researcher/data_source/wiki_.py +3 -1
  106. lionagi/version.py +1 -1
  107. {lionagi-0.2.10.dist-info → lionagi-0.3.0.dist-info}/METADATA +6 -7
  108. lionagi-0.3.0.dist-info/RECORD +226 -0
  109. lionagi/tests/__init__.py +0 -0
  110. lionagi/tests/api/__init__.py +0 -0
  111. lionagi/tests/api/aws/__init__.py +0 -0
  112. lionagi/tests/api/aws/conftest.py +0 -25
  113. lionagi/tests/api/aws/test_aws_s3.py +0 -6
  114. lionagi/tests/integrations/__init__.py +0 -0
  115. lionagi/tests/libs/__init__.py +0 -0
  116. lionagi/tests/libs/test_api.py +0 -48
  117. lionagi/tests/libs/test_convert.py +0 -89
  118. lionagi/tests/libs/test_field_validators.py +0 -354
  119. lionagi/tests/libs/test_func_call.py +0 -701
  120. lionagi/tests/libs/test_nested.py +0 -382
  121. lionagi/tests/libs/test_parse.py +0 -171
  122. lionagi/tests/libs/test_queue.py +0 -68
  123. lionagi/tests/libs/test_sys_util.py +0 -222
  124. lionagi/tests/test_core/__init__.py +0 -0
  125. lionagi/tests/test_core/collections/__init__.py +0 -0
  126. lionagi/tests/test_core/collections/test_component.py +0 -208
  127. lionagi/tests/test_core/collections/test_exchange.py +0 -139
  128. lionagi/tests/test_core/collections/test_flow.py +0 -146
  129. lionagi/tests/test_core/collections/test_pile.py +0 -172
  130. lionagi/tests/test_core/collections/test_progression.py +0 -130
  131. lionagi/tests/test_core/generic/__init__.py +0 -0
  132. lionagi/tests/test_core/generic/test_edge.py +0 -69
  133. lionagi/tests/test_core/generic/test_graph.py +0 -97
  134. lionagi/tests/test_core/generic/test_node.py +0 -107
  135. lionagi/tests/test_core/generic/test_structure.py +0 -194
  136. lionagi/tests/test_core/generic/test_tree_node.py +0 -74
  137. lionagi/tests/test_core/graph/__init__.py +0 -0
  138. lionagi/tests/test_core/graph/test_graph.py +0 -71
  139. lionagi/tests/test_core/graph/test_tree.py +0 -76
  140. lionagi/tests/test_core/mail/__init__.py +0 -0
  141. lionagi/tests/test_core/mail/test_mail.py +0 -98
  142. lionagi/tests/test_core/test_branch.py +0 -116
  143. lionagi/tests/test_core/test_form.py +0 -47
  144. lionagi/tests/test_core/test_report.py +0 -106
  145. lionagi/tests/test_core/test_structure/__init__.py +0 -0
  146. lionagi/tests/test_core/test_structure/test_base_structure.py +0 -198
  147. lionagi/tests/test_core/test_structure/test_graph.py +0 -55
  148. lionagi/tests/test_core/test_structure/test_tree.py +0 -49
  149. lionagi/tests/test_core/test_validator.py +0 -112
  150. lionagi-0.2.10.dist-info/RECORD +0 -267
  151. {lionagi-0.2.10.dist-info → lionagi-0.3.0.dist-info}/LICENSE +0 -0
  152. {lionagi-0.2.10.dist-info → lionagi-0.3.0.dist-info}/WHEEL +0 -0
@@ -51,7 +51,9 @@ class GoogleSearch:
51
51
  try:
52
52
  from lionagi.libs import SysUtil
53
53
 
54
- SysUtil.check_import(package_name="llama_index", pip_name="llama-index")
54
+ SysUtil.check_import(
55
+ package_name="llama_index", pip_name="llama-index"
56
+ )
55
57
 
56
58
  SysUtil.check_import(
57
59
  package_name="llama_index",
@@ -77,8 +79,12 @@ class GoogleSearch:
77
79
  llm = OpenAI(model="gpt-4-turbo", temperature=0.1)
78
80
 
79
81
  api_key = api_key if api_key else cls.api_key
80
- search_engine = search_engine if search_engine else cls.search_engine
81
- google_spec = GoogleSearchToolSpec(key=api_key, engine=search_engine)
82
+ search_engine = (
83
+ search_engine if search_engine else cls.search_engine
84
+ )
85
+ google_spec = GoogleSearchToolSpec(
86
+ key=api_key, engine=search_engine
87
+ )
82
88
 
83
89
  # Wrap the google search tool as it returns large payloads
84
90
  tools = LoadAndSearchToolSpec.from_defaults(
@@ -90,7 +96,9 @@ class GoogleSearch:
90
96
  return agent
91
97
 
92
98
  except Exception as e:
93
- raise ImportError(f"Error in importing OpenAIAgent from llama_index: {e}")
99
+ raise ImportError(
100
+ f"Error in importing OpenAIAgent from llama_index: {e}"
101
+ )
94
102
 
95
103
 
96
104
  # responses_google = []
@@ -10,7 +10,9 @@ class WikipediaSearch:
10
10
  def create_agent(verbose=False):
11
11
  from lionagi.libs import SysUtil
12
12
 
13
- SysUtil.check_import(package_name="llama_index", pip_name="llama-index")
13
+ SysUtil.check_import(
14
+ package_name="llama_index", pip_name="llama-index"
15
+ )
14
16
 
15
17
  SysUtil.check_import(
16
18
  package_name="llama_index",
lionagi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.2.10"
1
+ __version__ = "0.3.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lionagi
3
- Version: 0.2.10
3
+ Version: 0.3.0
4
4
  Summary: Towards automated general intelligence.
5
5
  Author: HaiyangLi
6
6
  Author-email: quantocean.li@gmail.com
@@ -9,10 +9,10 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
- Requires-Dist: aiocache (>=0.12.3,<0.13.0)
13
- Requires-Dist: ipython (>=8.27.0,<9.0.0)
14
- Requires-Dist: lion-core (>=0.3.7,<0.4.0)
15
- Requires-Dist: lion-openai (>=0.1.4,<0.2.0)
12
+ Requires-Dist: aiocache (>=0.12.0,<0.13.0)
13
+ Requires-Dist: ipython (>=8.0.0,<9.0.0)
14
+ Requires-Dist: lion-core (>=0.3.15,<0.4.0)
15
+ Requires-Dist: lion-openai (>=0.1.5,<0.2.0)
16
16
  Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
17
17
  Description-Content-Type: text/markdown
18
18
 
@@ -65,6 +65,5 @@ When referencing LionAGI in your projects or research, please cite:
65
65
 
66
66
 
67
67
  ### Requirements
68
- Python 3.10 or higher.
69
-
68
+ Python 3.10 or higher.
70
69
 
@@ -0,0 +1,226 @@
1
+ lionagi/__init__.py,sha256=y5_ed_SG5TAIM5HNkKMALSwwpFWsBuZxJl6eHT9vfOg,1431
2
+ lionagi/core/__init__.py,sha256=Il5Q9ATdX8yXqVxtP_nYqUhExzxPC_qk_WXQ_4h0exg,16
3
+ lionagi/core/_setting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ lionagi/core/_setting/_setting.py,sha256=p23fHtrzIZlQ8s8CDZICn8C6k7mdB_088nIDx19JaqM,1907
5
+ lionagi/core/action/README.md,sha256=DBr3qwGRZBrv4mZ6CEA9tEyO3S17OSSbhzIPKlr441s,2060
6
+ lionagi/core/action/__init__.py,sha256=eHMCkOjQCVwSGktG6BpZK4LlF63JAq3h2qepCTOtceg,303
7
+ lionagi/core/action/function_calling.py,sha256=d_Van7zRZFufFc6PsgHpGUStJmQmTA0QmmtFknP22_4,3929
8
+ lionagi/core/action/manual.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
9
+ lionagi/core/action/node.py,sha256=XZTMvI8ST_ysUQjYar_asKI_zPpf0T5YszFovZlpIv0,2966
10
+ lionagi/core/action/tool.py,sha256=JACPMvCem4zaRjA5hVQRUHhjHy6qtO_tGzcS7HeeaC0,3368
11
+ lionagi/core/action/tool_manager.py,sha256=A5nRIZHhfnWRAYjhGDeY2FVzAHB28lH-TfYe4kJPjgg,10961
12
+ lionagi/core/agent/README.md,sha256=seCxTNOyyh_tP8MUaJp6Ds4cqXtn_yd7sZO1obJUaII,41
13
+ lionagi/core/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ lionagi/core/agent/base_agent.py,sha256=gEMc95hkuAKLwBiBPIZsWTI4i7j3LzpKQyAFwX2ekrk,2690
15
+ lionagi/core/agent/eval/README.md,sha256=Vro2JJ6oIWrVE7E9895sDkkLohSJdnTTAzHxx-ftvvM,5
16
+ lionagi/core/agent/eval/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
+ lionagi/core/agent/eval/evaluator.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
18
+ lionagi/core/agent/eval/vote.py,sha256=A0rhWzSC9GPDa04ZNCBHz4lvEoSJUUGWkcwG3XY_7M8,1104
19
+ lionagi/core/agent/learn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ lionagi/core/agent/learn/learner.py,sha256=vMPskzGmUVKS9gaswQ5sc_tHIZ-6ZOfvGFFZ0mZ0rxo,2773
21
+ lionagi/core/agent/plan/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ lionagi/core/agent/plan/plan.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ lionagi/core/agent/plan/unit_template.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
24
+ lionagi/core/collections/README.md,sha256=6DA_mG_4Mk0NWmEObwkBNavHWzmU6IOjT0Kyxf0EXBo,2381
25
+ lionagi/core/collections/__init__.py,sha256=RgnaBHgeUlPQyPfraE2MI86wAZpHAtmfgU0hhvdKoqE,296
26
+ lionagi/core/collections/_logger.py,sha256=zAGvx5SWWkeI2_n8Jh69ToYvyn5LLlww91SRKcrxLDU,11696
27
+ lionagi/core/collections/abc/README.md,sha256=N3s0qQglL2PkriZ0hWDTh0ytJjubqkXVyUB0x9kpi6U,5524
28
+ lionagi/core/collections/abc/__init__.py,sha256=cCPlUaXtXXPdQamXWQAf8MHKck7sa1asu6TDLX1W6S0,984
29
+ lionagi/core/collections/abc/component.py,sha256=4Z588KENh0yULM4sFfvpvfeEi13yApOxQ7OpCI_itUQ,21575
30
+ lionagi/core/collections/abc/concepts.py,sha256=4IM2uQGhMjBzfa1wjNX4ZMbcxCqtjQTFXFJBye47IQg,8043
31
+ lionagi/core/collections/abc/exceptions.py,sha256=raqjWSHGYhm-tUAmn1QK_NlkM3MQfjc1cOD_kobUdyc,4065
32
+ lionagi/core/collections/abc/util.py,sha256=CjJs-PgK0t4MAG1AJUdgrxQg7v2Ou-ixv-gWjatu7d4,779
33
+ lionagi/core/collections/exchange.py,sha256=7h9kI7gNRyCYFZUd-686ClPZXFZLtrEn7pVHjk4ol60,4274
34
+ lionagi/core/collections/flow.py,sha256=oo4PjNpMhRgYeKfJ6aorxp7CjKk7iIizVC9WuwYrPcQ,12751
35
+ lionagi/core/collections/model.py,sha256=uZhTBuKFa7OzxtFwO7sVV8RPmdydgWasso1g5os0dGg,15848
36
+ lionagi/core/collections/pile.py,sha256=X4j_Zbt2TCQTWPGYkOgfFBzIepcqFeoultFh6KnS6QU,37943
37
+ lionagi/core/collections/progression.py,sha256=YIN-qVNZPMHN3f3UflUgH1jzdkQPwdnBZSOVvZZ7OeQ,6704
38
+ lionagi/core/collections/util.py,sha256=AWfwuIIwbakpF0_swWUVSGTeN26XWL6UlmgW5mh4qDA,2005
39
+ lionagi/core/director/README.md,sha256=HoIDnEmWmWXVeDfUvkyf4nXQOYqzy2jhToZcJz0zmUw,55
40
+ lionagi/core/director/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
+ lionagi/core/director/direct.py,sha256=vKcirI2vp9CvU6Y7SoznaLwppJpI9j9YBo0cvfWwxiM,9552
42
+ lionagi/core/director/director.py,sha256=E-zgbAj5gbUgDrfE0YzFoipZnr0WWGZwIreEGGY2KJc,103
43
+ lionagi/core/engine/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ lionagi/core/engine/branch_engine.py,sha256=l59CTLk-ecsc_NgNgT3DkgP4OuuQ1lzdcOdDqie0H-k,12700
45
+ lionagi/core/engine/instruction_map_engine.py,sha256=xjvqHLc7T2Hk7MoFA8y9DgMAmFKk56vTSTL-90SiAWc,8600
46
+ lionagi/core/engine/sandbox_.py,sha256=2XhfRFAztRsSli6KKpKdQlfvwkTFVDk5ub1TowX0eRI,481
47
+ lionagi/core/engine/script_engine.py,sha256=NwOg6Gb0h1Ml4lvLQ55DTn37hVuM5e_r5iBOAC1hBt8,3155
48
+ lionagi/core/executor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
+ lionagi/core/executor/base_executor.py,sha256=3p_mUP8iA5pLO0pwqr_2Z0eG_MGB1zA5ZXETtLSTwb4,2828
50
+ lionagi/core/executor/graph_executor.py,sha256=qk9qoaRt3yLSxIxZL6_exZ2sHdFkWj0PDvHBeqOBSqY,13374
51
+ lionagi/core/executor/neo4j_executor.py,sha256=hs2IT1Rn_4skQCQAf5baYhn1pzK8zDVA_mGbaoVOzAU,15633
52
+ lionagi/core/generic/README.md,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
+ lionagi/core/generic/__init__.py,sha256=KRhSxsib7MvtGZhQDvI-rWTW99r0Gw21agRCRpoof4U,139
54
+ lionagi/core/generic/edge.py,sha256=cbEMMZje6QVMaamYZ-bd5twNDWhRDyeIWUQjEW1L7uQ,4017
55
+ lionagi/core/generic/edge_condition.py,sha256=ZvQMYDl4WFXrwkvjQajVFluF5FNosw_OLeBihFUR6l8,356
56
+ lionagi/core/generic/graph.py,sha256=kOq2DvZaAFmgHIZUlFlxUgSh4rzqQP6fMmQtrWhTjfM,7838
57
+ lionagi/core/generic/hyperedge.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
58
+ lionagi/core/generic/node.py,sha256=vf26Q8-V3wh5qr8TdFGena_SCkp_39eCO6n23TjbuMo,7156
59
+ lionagi/core/generic/tree.py,sha256=YVlJT1_gN96utEUB1Uc4pmHEeFVyJrtSF6cqIBWZDJI,1541
60
+ lionagi/core/generic/tree_node.py,sha256=vHOELePsn-Vqlpi7V4-UteGR-Vht4FddJL6UmNVbab8,2475
61
+ lionagi/core/mail/__init__.py,sha256=_-C11e519cBCuEuYhCgsQnzph2vDpUaLEfsKNwz33AQ,202
62
+ lionagi/core/mail/mail.py,sha256=DNmAmeTFRW6KP516NE7kXlAOmy0te1ejadTb4pf3vCs,727
63
+ lionagi/core/mail/mail_manager.py,sha256=XjFJJwwoAU0iesZMMm3xPzdBMo2ty8ryFD94Ttkdtjg,6030
64
+ lionagi/core/mail/package.py,sha256=v1cZqFET_GZc0imySBix7Lq3yYq8Zjj5o0fvPoKTma0,1188
65
+ lionagi/core/mail/start_mail.py,sha256=iV25FHfBH5PN5SYqD7T2T0GDRquMWtPNboDz6cckfgk,1219
66
+ lionagi/core/message/__init__.py,sha256=Vwdx3Y2JV8Xy93zRptfNj2aWdTI5n3e49cUDZcc5M60,457
67
+ lionagi/core/message/action_request.py,sha256=H4RfMOnX13Ch7JVLgIvpTEeT3SA0D92_1cYs1nYFeNI,3739
68
+ lionagi/core/message/action_response.py,sha256=r_TwHJTIF1OcZvWIcHbDoE6FNXwNDWKhwWKhwzqyTCs,4272
69
+ lionagi/core/message/assistant_response.py,sha256=EcDDTXm9BWOTtnh-Y3nZNTmmfSvUGXmHzd_aCTCXbQg,2619
70
+ lionagi/core/message/instruction.py,sha256=I_ZqMx3IjIwGlAx3bdlBuyVycTZ9yO1i-kEP5gFxWAU,6940
71
+ lionagi/core/message/message.py,sha256=Etl4a3mUrXLsym7i6ILqTV_Xun0xZw0UCoBMl1OtsNE,2403
72
+ lionagi/core/message/system.py,sha256=48mvib50mno9F-8fkLa8SzPxz3G1KlRgz3GkIluMFUQ,2318
73
+ lionagi/core/message/util.py,sha256=7CFw90QA3CdnV43aQ3PU6p1fhtaTixnlj_SBkLyQmpM,9313
74
+ lionagi/core/report/__init__.py,sha256=KqfJNaSx9fzRw3eyrlIlYIiueo-jVYMgjaOdfzTUAN4,80
75
+ lionagi/core/report/base.py,sha256=_PRSd92JttwEKnW_UX7SszpV29bLg6wPwJ_Lav-Z-9k,7173
76
+ lionagi/core/report/form.py,sha256=IPZk5D5Ai-GV6DrvrZBoEkwIFT7_vwv8h3qME8Tph-M,7040
77
+ lionagi/core/report/report.py,sha256=IIkTbLHindL4hj85lpfbRTK44qJ2cM-AEnKlRhbj8Gc,5294
78
+ lionagi/core/report/util.py,sha256=7Qak3L-ftQ-3ef5ZMc8c1Ob4Gg7h2Rgw2-8wzb16a-s,466
79
+ lionagi/core/rule/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
+ lionagi/core/rule/_default.py,sha256=EtKfqz6CWmF4EnzPsXCy37rn7x8VhdqiMLyfqG_N2xU,398
81
+ lionagi/core/rule/action.py,sha256=9NCXzRa-eRyV1XpeC1ranlADQcpWrPezP0hzqdlwEv4,2592
82
+ lionagi/core/rule/base.py,sha256=6MmAEu3eR9X_UBPgwAtBeOAzUHuNndlnxqY6lijZfGA,7070
83
+ lionagi/core/rule/boolean.py,sha256=JuqVcgVWlKwZd_Y_b7i2SC7lLEAiUJlAkAvC9aYb5tI,1470
84
+ lionagi/core/rule/choice.py,sha256=lQ6xYQcRMYNmBrsQ1L1JbHfb2jsbQWwLGgV_JLhbt8U,1464
85
+ lionagi/core/rule/mapping.py,sha256=jeVRbHpe3gLQ8voJGru7uwd_Ca1wqtVn6PlkR4q7u0Y,2545
86
+ lionagi/core/rule/number.py,sha256=YKcb7HZ89ktWdLd8dA2azLg2p5HALQWqMsIm98Xw8Dw,2276
87
+ lionagi/core/rule/rulebook.py,sha256=uBAPMzaCcH9Mr01K_w2HZ6TJIXNtKLS8ZdV3e-17nEQ,1023
88
+ lionagi/core/rule/string.py,sha256=ZoTuqidyR_vS0BNKEZEj_Oc5Ie8hhy2qaBFGX5J4CrU,1209
89
+ lionagi/core/rule/util.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
+ lionagi/core/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
+ lionagi/core/session/branch.py,sha256=cs51rCG4OSPENVrniOlvKAKBXlcyLbzP032HuiCaIX8,14381
92
+ lionagi/core/session/directive_mixin.py,sha256=Rsm8-hyLmcD9WesI8EpbCPSWcjW9jm64_Rb83TX_gdE,11717
93
+ lionagi/core/session/session.py,sha256=cLieD42-g8s2ticNY2YyzAAwjwxkyk5q7M5dVlHlMBQ,10479
94
+ lionagi/core/structure/__init__.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
95
+ lionagi/core/structure/chain.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
96
+ lionagi/core/structure/forest.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
97
+ lionagi/core/structure/graph.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
98
+ lionagi/core/structure/tree.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
99
+ lionagi/core/unit/__init__.py,sha256=rKMkYPml-R32DjR-TqU4F0d3mVQUGyGn54puPUrT31w,87
100
+ lionagi/core/unit/parallel_unit.py,sha256=OnG1fIFUSD557jsSdfja13hzJohX5NVbc6HrffW9Rj4,8849
101
+ lionagi/core/unit/template/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
+ lionagi/core/unit/template/action.py,sha256=9CJ1H6CvnolDuNwy3toWnrWxOcPzXeDLS5fqs3ZQwN8,2231
103
+ lionagi/core/unit/template/base.py,sha256=hp8oGokyLKq4BtK9p-8h9AuJfelETy67X3Av7_7f1Gg,1208
104
+ lionagi/core/unit/template/plan.py,sha256=i4FmKEB8eRsRCsTanvfoX-2RZ8SaM1qvLBluuY-l20Q,2175
105
+ lionagi/core/unit/template/predict.py,sha256=-EIZQo0ZjGKy3MiM0AtqmbnJpbXcrwtSCON5n3jcyVo,3160
106
+ lionagi/core/unit/template/score.py,sha256=ReUaIIr-NLjunSy4NNXQpIsH28NNceGBAUuPCRptzMc,3809
107
+ lionagi/core/unit/template/select.py,sha256=VSpkphJl9bHSE8i0X6MMJD8LB5QwOj1UORHm8VDIRKE,3047
108
+ lionagi/core/unit/unit.py,sha256=_8kV9vUsMLxQcQNp4UiKvCglULecYzINKp51TgMTKkg,14066
109
+ lionagi/core/unit/unit_form.py,sha256=zK_ij3Tod5FwMVdIIhdVoEFvD3br-YM9RPe7WsOIW2s,10980
110
+ lionagi/core/unit/unit_mixin.py,sha256=c8GvHzgc65iJKQBKv71ET3afLPsIz5-Ce-4Eo6_bZiw,38823
111
+ lionagi/core/unit/util.py,sha256=yEIf4ksWLB4X0IZNmwvIphvXiRbtWtGqbWCPnIt1u-s,2048
112
+ lionagi/core/validator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
113
+ lionagi/core/validator/validator.py,sha256=901wwmqL92XNi25ajv57bNKIKZhmu-KprNLArMUiGqg,12255
114
+ lionagi/core/work/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
+ lionagi/core/work/work.py,sha256=CswZTTgJyYo1E0DresmrZjcI5SuWCwF7AMl2_1WdEm4,1958
116
+ lionagi/core/work/work_edge.py,sha256=gpFNlG5SqFX6R_OMVxGHOKbGLhCbb9Qwh8uoLNTmkVo,3469
117
+ lionagi/core/work/work_function.py,sha256=CxJPDESNGEya3dBNe8NB-Kf3PWjWUau-LxE2Nxgfb6o,3444
118
+ lionagi/core/work/work_function_node.py,sha256=EmNabqf4SKAxUeH6tp1baYiNexeyP75mMefluUunRq4,1927
119
+ lionagi/core/work/work_queue.py,sha256=TFrO0zqpCWD8WmuoQ6rEt2qihfCVimvzeS4pkJkE0qg,3052
120
+ lionagi/core/work/work_task.py,sha256=WUyhxZ_mfL_uGxAIAz3W7irk0yfO1RiifAqzSsu4tdE,5354
121
+ lionagi/core/work/worker.py,sha256=t3hYO_ExLbAh51KDu-7IMbdOG2zaR1I3GGcEJxSVluE,14907
122
+ lionagi/core/work/worker_engine.py,sha256=zSQu_R1TLhWwBXvNM5JgUaplPlTPXrfvOpZ4ZlmLzcE,7614
123
+ lionagi/core/work/worklog.py,sha256=x7roVZyyT5mv5Jct4kmzjOn492TtcxaGk6frGSiQ7XI,3084
124
+ lionagi/experimental/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
125
+ lionagi/experimental/compressor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
+ lionagi/experimental/compressor/base.py,sha256=rTOm962ozV9tF74H7-rJWLqKuxczUL17HeckwBavfwE,2018
127
+ lionagi/experimental/compressor/llm_compressor.py,sha256=5T4vYs-f7KCg04JbUmmN-QjdNYaxE7WshG2Ds6BaAUc,8652
128
+ lionagi/experimental/compressor/llm_summarizer.py,sha256=TujLunlEXBtHCwKQZoud5T9bogeSgbVxX_dtuasDg_c,2407
129
+ lionagi/experimental/compressor/util.py,sha256=pUsL2vL6ZuJa6Kr--2_Qnh-dOleFVpfhbMYdMn5FbXU,2226
130
+ lionagi/experimental/directive/README.md,sha256=Vro2JJ6oIWrVE7E9895sDkkLohSJdnTTAzHxx-ftvvM,5
131
+ lionagi/experimental/directive/__init__.py,sha256=01JLCb7Zd7UTVsTGog9-pXXT4FBT7P7QErbhoT7vkIw,403
132
+ lionagi/experimental/directive/parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
133
+ lionagi/experimental/directive/parser/base_parser.py,sha256=bAdTtALKSYmIDSMoBIXatPMOb3A5DiuqWhu1lTVoJEo,10536
134
+ lionagi/experimental/directive/parser/base_syntax.txt,sha256=LTrH-V14jP1rzJXU5fweyCfh_jjj6t88oCK6gKn7Qjg,2810
135
+ lionagi/experimental/directive/template/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
+ lionagi/experimental/directive/template/base_template.py,sha256=cDMLxnRVheoQ7wiNCpsC6Cvk9_W02H-0tR8z6oMnfwo,2689
137
+ lionagi/experimental/directive/template/schema.py,sha256=vGHQqn_ZAMkIfUqqdnPCHN8p-wommVyMBkanWHPuCSI,861
138
+ lionagi/experimental/directive/tokenizer.py,sha256=VSH7sA5DSfuUJFDcfTQtTPYPXLo4tg8Y8snQ48M1M6A,1822
139
+ lionagi/experimental/evaluator/README.md,sha256=Vro2JJ6oIWrVE7E9895sDkkLohSJdnTTAzHxx-ftvvM,5
140
+ lionagi/experimental/evaluator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
141
+ lionagi/experimental/evaluator/ast_evaluator.py,sha256=Fo-HVdkQzW1LSkp-OLJuqxzeeYKuGLpzh1CX6qo58FE,4192
142
+ lionagi/experimental/evaluator/base_evaluator.py,sha256=JgSg7ew9DHpajOD9s4UEetfBNULm8L2xMNP_kvJ4eVU,8233
143
+ lionagi/experimental/knowledge/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
144
+ lionagi/experimental/knowledge/base.py,sha256=Z6ExjUZdF_cLm5tye00dVHNL1gkhsOjUCk8ZId8p3uA,218
145
+ lionagi/experimental/knowledge/graph.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
+ lionagi/experimental/memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
147
+ lionagi/experimental/strategies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
148
+ lionagi/experimental/strategies/base.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
149
+ lionagi/integrations/__init__.py,sha256=Il5Q9ATdX8yXqVxtP_nYqUhExzxPC_qk_WXQ_4h0exg,16
150
+ lionagi/integrations/bridge/__init__.py,sha256=GTtqrkDb7OW5JID56bHyJTTkztZupOJyvHGAr0lN3VY,169
151
+ lionagi/integrations/bridge/autogen_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
152
+ lionagi/integrations/bridge/autogen_/autogen_.py,sha256=MRB-mo9A0FkZ50ILBthadVlMScjk_t9nRF2eg9gDS6c,4077
153
+ lionagi/integrations/bridge/langchain_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
154
+ lionagi/integrations/bridge/langchain_/documents.py,sha256=pwcVbzwUeqVPd_TGLo0aMhq-zfiPPGpxq_PwgRw3bGU,5030
155
+ lionagi/integrations/bridge/langchain_/langchain_bridge.py,sha256=-lnJtyf4iJEwHKQAwBRN6YZ7CTsyFLetl5e8_9UGouY,3163
156
+ lionagi/integrations/bridge/llamaindex_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
157
+ lionagi/integrations/bridge/llamaindex_/index.py,sha256=NCQpnOGTzjDZ1BYqYcjW2EFhB95WoV3DBLOMiNLRCfI,981
158
+ lionagi/integrations/bridge/llamaindex_/llama_index_bridge.py,sha256=AxLuoaDueNPZ_vX4_-kGlxlDKezqb1E1Cn_s33Dq2pM,5203
159
+ lionagi/integrations/bridge/llamaindex_/llama_pack.py,sha256=w0uR4BpLEf_06FT19A9S5JGGAT_r9_K90rKi_Nj7iBE,8673
160
+ lionagi/integrations/bridge/llamaindex_/node_parser.py,sha256=h7hIsnZP3QksJe2eoi0ylbOOXltYlve1D6h8K9zbRpo,3623
161
+ lionagi/integrations/bridge/llamaindex_/reader.py,sha256=G6zuYb4TLbon-tiGq4EYag5P_5kh3NZcFUoJjb0__i0,8194
162
+ lionagi/integrations/bridge/llamaindex_/textnode.py,sha256=68Sur4BJLrLBHLwhXAWkJs0e5jE4aSdnkWqpRztu0CQ,2405
163
+ lionagi/integrations/bridge/pydantic_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
164
+ lionagi/integrations/bridge/pydantic_/pydantic_bridge.py,sha256=rg0S6dEJRZ0vam7UzWEwTx4ZKjW4bkJCThbhXKdsp0o,112
165
+ lionagi/integrations/bridge/transformers_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
+ lionagi/integrations/bridge/transformers_/install_.py,sha256=c9fIAA8cJeqkfEVIbjSEV6M0LEKdoQgAXoTOxJ7BGcw,1246
167
+ lionagi/integrations/chunker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
168
+ lionagi/integrations/chunker/chunk.py,sha256=Hl8j2KDCCkMiOr5cXVPVWKEr7KYpvlIGTDcu3Z1COYw,10695
169
+ lionagi/integrations/config/__init__.py,sha256=zzQGZe3H5vofcNWSjjoqe_gqHpCO8Yl7FefmrUpLqnw,133
170
+ lionagi/integrations/config/mlx_configs.py,sha256=xbostqjnk3aAN-qKyC54YBprHPA38C8YDevXMMEHXWY,44
171
+ lionagi/integrations/config/oai_configs.py,sha256=fgby-3o_tO24QhSiPyko-oeAMEa0cWCThh6L6ChiXoo,3625
172
+ lionagi/integrations/config/ollama_configs.py,sha256=GUn0kagrQA3gpIiaxYyfdi2LAf_Ohz1sVrsAb20OBwo,17
173
+ lionagi/integrations/config/openrouter_configs.py,sha256=x5LjLx-aqCLzzrqr15gVzuTTG4Y_BVS6tRrKout5vPQ,1690
174
+ lionagi/integrations/loader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
175
+ lionagi/integrations/loader/load.py,sha256=KhsbLPwqNK1wRDKSoZPd5yeyMGAPc9Xt_ISR8PK6PCk,8651
176
+ lionagi/integrations/loader/load_util.py,sha256=65qP5kytBJFTaSg7lNCO7rfw6GpPQuvZxoqJ7s83A48,6616
177
+ lionagi/integrations/provider/__init__.py,sha256=mXytlBiHEAIryQJ3ayTCWEB2ATf0RWRFfOgLP_HLL_c,197
178
+ lionagi/integrations/provider/_mapping.py,sha256=gbJMe37jCOG_3XEWQjDuPwm2yVVPs7xzhJsmYWKc_Ow,1347
179
+ lionagi/integrations/provider/litellm.py,sha256=75ElNHYXmgPrgcUElelT_MH2FSB2D8Nvqerc2Pv_zUQ,1283
180
+ lionagi/integrations/provider/mistralai.py,sha256=G-StbfrnUcWZvl0eRby6CZYXxmJf6BRMFzDaix-brmU,7
181
+ lionagi/integrations/provider/mlx_service.py,sha256=G4_hWHI5SngxzruuAeQn6xyJvqaujT6ZyK_h4yU1zyU,1727
182
+ lionagi/integrations/provider/oai.py,sha256=xJsfC13HGT516rSDHk1OrNfACEP7NdkAKtPZ0c5gdcQ,6706
183
+ lionagi/integrations/provider/ollama.py,sha256=lgZAAnmOhAW-RV_OIzEi9SE6MfRj7io_ayT9rxRR3uw,1380
184
+ lionagi/integrations/provider/openrouter.py,sha256=IIERxSnHX1bAjSo_ztqNT5fO6whyGCA1SPTfcGTS84w,5862
185
+ lionagi/integrations/provider/services.py,sha256=SLlJRmemyZ3_I0IfXXaOuLI2Zc2-P7wqd5iWw17g0ck,5413
186
+ lionagi/integrations/provider/transformers.py,sha256=qinKmzKUr3ixO08_NU0LaumfCyWwwNOm9qsuOETMhDQ,3209
187
+ lionagi/integrations/storage/__init__.py,sha256=W5FouDavC32X818ta84GAMc_z9x8onTzXNlYKQpH_a4,79
188
+ lionagi/integrations/storage/neo4j.py,sha256=jp6OthHq9lSHdRO28uDqVEZBKAczsETDXD9_c2FoffE,25926
189
+ lionagi/integrations/storage/storage_util.py,sha256=uSiAkLDuDXIpGw4Uo6344VkaH4TEvPpDgAML5KwDqVk,10850
190
+ lionagi/integrations/storage/structure_excel.py,sha256=kQicF-jeLeowHJCeKZFCgGshrJTzaC4HRd68SAG8C-w,12357
191
+ lionagi/integrations/storage/to_csv.py,sha256=PEk97NHo-_uKDAKR3mkzup7iHY6adeErN6JwXnTsQxc,2918
192
+ lionagi/integrations/storage/to_excel.py,sha256=HNshHOwz9QlQnV-wDiZB2i2JbM0hBPtjzLQ0GytVzAY,3528
193
+ lionagi/libs/__init__.py,sha256=9yvPizpja3Ssyjm8jWERtaE1tg9xLOCmPNJU_ob0JEA,1237
194
+ lionagi/libs/ln_api.py,sha256=kXs5ujNEJHHO8rdd1QuhC2E4J-mRziS17_yuryb1a0Y,36643
195
+ lionagi/libs/ln_async.py,sha256=a1thJjFgqMBYe8Lp2XasCagyPpPpnoaX-hoVxrsRaiA,6075
196
+ lionagi/libs/ln_context.py,sha256=ArYMND6bH5x5Tn4oFlpUizne-JOfZ5gFmYUZyFIsknc,1008
197
+ lionagi/libs/ln_convert.py,sha256=dD_H4O0BQYN-MakRuPKfZqEtDfFrJDnaYlZlYsxKOS4,23529
198
+ lionagi/libs/ln_dataframe.py,sha256=GVBvW414teHgOq-7Uc25ojCK16ZonVgC-zI7vA9n3HE,5597
199
+ lionagi/libs/ln_func_call.py,sha256=_3t1f0k7iBirzqq-uYnxrlfr28dVhQUUKbyOodNFol8,50303
200
+ lionagi/libs/ln_image.py,sha256=WUi2FlMNSJAtTcgNaIRT3TUQ47H93bIQ93jmnFlrI4c,3660
201
+ lionagi/libs/ln_knowledge_graph.py,sha256=Tx5YZX-aCbi6_wk21WN_ngQjd1w3xfVuNvkHukXB6u4,15208
202
+ lionagi/libs/ln_nested.py,sha256=nmvMGLxkltJKblrpgVJ0WcXOCV9NAz1JoRc6cKMyVho,30122
203
+ lionagi/libs/ln_parse.py,sha256=0R9pYSfYLDPg8zOJXj9zQ5E3qJYCApIU-OUb5lZ-y08,27251
204
+ lionagi/libs/ln_queue.py,sha256=kJ-81XNnu2gcHyQ9XL62kCnAzk_0tmRmvhAaj30wIjM,3498
205
+ lionagi/libs/ln_tokenize.py,sha256=SP3mGljwaaxqH0ced54v4lFs8LXU-oIpb33mdrzRSEA,5400
206
+ lionagi/libs/ln_validate.py,sha256=huTnLNaAITni49PK_uI2CXvnFETt87j8-4lF8e5yy0o,8469
207
+ lionagi/libs/special_tokens.py,sha256=ViFaql64LgEGHSXzODzaVMh4GfteN8D2ogmqWYTYwiQ,2411
208
+ lionagi/libs/sys_util.py,sha256=iwzbvt_lGCeRdD1JdPNKE3E3bsrO45JWbWQ-OEQ7fTc,19675
209
+ lionagi/lions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
210
+ lionagi/lions/coder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
211
+ lionagi/lions/coder/add_feature.py,sha256=mLMfz9V9yYbdH6DJs39FOz9IHdhdyPZajocQtQhjgcA,703
212
+ lionagi/lions/coder/base_prompts.py,sha256=SLpC442nZm2cEkB8o9j28kpkB-WzKLjH6sOTS8CnIrY,367
213
+ lionagi/lions/coder/code_form.py,sha256=xW66cWCsrZu2qGu-wGUGSIPL1uZevGQVCE_vBRH9Kmc,384
214
+ lionagi/lions/coder/coder.py,sha256=u-n_7PVdKCAz28SAA2bO4oy1qxGIzEl1PX6iqz7oSoI,5829
215
+ lionagi/lions/coder/util.py,sha256=m9H18JrePpuP1VyjxVXQaLXCGBed04jZIkfNXvF7_gU,2751
216
+ lionagi/lions/researcher/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
217
+ lionagi/lions/researcher/data_source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
+ lionagi/lions/researcher/data_source/finhub_.py,sha256=W63daXgIwHJQ6TDMR2ALQIDk1mV3msoDQ9RgOYXsGoE,8783
219
+ lionagi/lions/researcher/data_source/google_.py,sha256=401SKHQaSpxiOUoXl7stadl4qeF7SIX72lUNK7bKesg,6797
220
+ lionagi/lions/researcher/data_source/wiki_.py,sha256=UPoa2dk_y5sELu7_rkdme2auDpUmc_Dn0Avgjwr2X2g,3145
221
+ lionagi/lions/researcher/data_source/yfinance_.py,sha256=snAf897J69MyAc6fcFjF0irrMjbAh81EZ3RvaFT3hxE,977
222
+ lionagi/version.py,sha256=VrXpHDu3erkzwl_WXrqINBm9xWkcyUy53IQOj042dOs,22
223
+ lionagi-0.3.0.dist-info/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
224
+ lionagi-0.3.0.dist-info/METADATA,sha256=KXd51cEiQSFRu_38WPzaK_0lR47WJrc86x0qXSFAWZo,3149
225
+ lionagi-0.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
226
+ lionagi-0.3.0.dist-info/RECORD,,
lionagi/tests/__init__.py DELETED
File without changes
File without changes
File without changes
@@ -1,25 +0,0 @@
1
- # import pytest
2
- # from api.apicore import _connect as _connect_
3
- # from api.apicore import _config as _config_
4
-
5
-
6
- # """
7
- # Setup the testing construct to ease future testing cases
8
- # """
9
-
10
-
11
- # @pytest.fixture()
12
- # def config():
13
- # _config = _config_.ConfigSingleton()
14
- # _config.config["MOCK"] = True # turn on mock mode
15
- # yield _config
16
-
17
-
18
- # @pytest.fixture
19
- # def test_s3_conn(config):
20
- # yield _connect_.get_object("AWSS3")
21
-
22
-
23
- # @pytest.fixture
24
- # def test_ec2_conn(config):
25
- # yield _connect_.get_object("AWSEC2")
@@ -1,6 +0,0 @@
1
- # from moto import mock_aws
2
-
3
-
4
- # @mock_aws
5
- # def test_awss3_list_bucket_pass(test_s3_conn):
6
- # assert test_s3_conn.list_bucket_names() == []
File without changes
File without changes
@@ -1,48 +0,0 @@
1
- import unittest
2
- from unittest.mock import AsyncMock
3
-
4
- import aiohttp
5
-
6
- from lionagi.libs.ln_api import *
7
-
8
-
9
- class TestAPIUtil(unittest.TestCase):
10
- def test_api_method_post(self):
11
- session = AsyncMock(spec=aiohttp.ClientSession)
12
- method = APIUtil.api_method(session, "post")
13
- self.assertTrue(callable(method))
14
-
15
- def test_api_method_invalid(self):
16
- session = AsyncMock(spec=aiohttp.ClientSession)
17
- with self.assertRaises(ValueError):
18
- APIUtil.api_method(session, "invalid_method")
19
-
20
-
21
- class TestAPIUtilExtended(unittest.TestCase):
22
- def test_api_error_with_error(self):
23
- response_json = {"error": "Something went wrong"}
24
- self.assertTrue(APIUtil.api_error(response_json))
25
-
26
- def test_api_error_without_error(self):
27
- response_json = {"result": "Success"}
28
- self.assertFalse(APIUtil.api_error(response_json))
29
-
30
- def test_api_rate_limit_error_with_rate_limit(self):
31
- response_json = {"error": {"message": "Rate limit exceeded"}}
32
- self.assertTrue(APIUtil.api_rate_limit_error(response_json))
33
-
34
- def test_api_rate_limit_error_without_rate_limit(self):
35
- response_json = {"error": {"message": "Another error"}}
36
- self.assertFalse(APIUtil.api_rate_limit_error(response_json))
37
-
38
- def test_api_endpoint_from_url_valid(self):
39
- valid_url = "https://api.example.com/v1/users"
40
- self.assertEqual(APIUtil.api_endpoint_from_url(valid_url), "users")
41
-
42
- def test_api_endpoint_from_url_invalid(self):
43
- invalid_url = "https://api.example.com/users"
44
- self.assertEqual(APIUtil.api_endpoint_from_url(invalid_url), "")
45
-
46
-
47
- if __name__ == "__main__":
48
- unittest.main()
@@ -1,89 +0,0 @@
1
- import unittest
2
-
3
- from lionagi.libs.ln_convert import *
4
-
5
-
6
- class TestToList(unittest.TestCase):
7
-
8
- def test_empty_input(self):
9
- self.assertEqual(to_list([]), [])
10
-
11
- def test_single_element(self):
12
- self.assertEqual(to_list(5), [5])
13
-
14
- def test_list_input(self):
15
- self.assertEqual(to_list([1, [2, 3]], flatten=False), [1, [2, 3]])
16
-
17
- def test_nested_list(self):
18
- self.assertEqual(to_list([[1, 2], [3, 4]], flatten=True), [1, 2, 3, 4])
19
-
20
- def test_non_list_iterable(self):
21
- self.assertEqual(to_list((1, 2, 3)), [1, 2, 3])
22
-
23
- def test_string_handling(self):
24
- self.assertEqual(to_list("abc"), ["abc"])
25
-
26
- def test_drop_none(self):
27
- self.assertEqual(to_list([1, None, 2], dropna=True), [1, 2])
28
-
29
- class FaultyIterable:
30
- """An iterable class that raises an exception when iterated over."""
31
-
32
- def __iter__(self):
33
- return self
34
-
35
- def __next__(self):
36
- raise RuntimeError("Fault during iteration")
37
-
38
- def test_invalid_input(self):
39
- with self.assertRaises(ValueError):
40
- to_list(TestToList.FaultyIterable())
41
-
42
-
43
- class TestIsStructureHomogeneous(unittest.TestCase):
44
-
45
- def test_homogeneous_structure_list(self):
46
- test_list = [[1, 2], [3, 4]]
47
- self.assertTrue(is_structure_homogeneous(test_list))
48
-
49
- def test_homogeneous_structure_dict(self):
50
- test_dict = {"a": {"b": 1}, "c": {"d": 2}}
51
- self.assertTrue(is_structure_homogeneous(test_dict))
52
-
53
- def test_heterogeneous_structure(self):
54
- test_structure = {"a": [1, 2], "b": {"c": 3}}
55
- self.assertFalse(is_structure_homogeneous(test_structure))
56
-
57
- def test_empty_structure(self):
58
- self.assertTrue(is_structure_homogeneous([]))
59
- self.assertTrue(is_structure_homogeneous({}))
60
-
61
- def test_return_structure_type_flag(self):
62
- test_list = [1, 2, 3]
63
- is_homogeneous, structure_type = is_structure_homogeneous(
64
- test_list, return_structure_type=True
65
- )
66
- self.assertTrue(is_homogeneous)
67
- self.assertIs(structure_type, list)
68
-
69
- test_dict = {"a": 1, "b": 2}
70
- is_homogeneous, structure_type = is_structure_homogeneous(
71
- test_dict, return_structure_type=True
72
- )
73
- self.assertTrue(is_homogeneous)
74
- self.assertIs(structure_type, dict)
75
-
76
- test_mixed = [1, {"a": 2}]
77
- is_homogeneous, structure_type = is_structure_homogeneous(
78
- test_mixed, return_structure_type=True
79
- )
80
- self.assertFalse(is_homogeneous)
81
- self.assertIsNone(structure_type)
82
-
83
- def test_deeply_nested_structures(self):
84
- test_structure = {"a": [{"b": 1}, {"c": [2, 3]}]}
85
- self.assertFalse(is_structure_homogeneous(test_structure))
86
-
87
-
88
- if __name__ == "__main__":
89
- unittest.main()