lionagi 0.10.6__py3-none-any.whl → 0.10.7__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.
@@ -1,52 +1,52 @@
1
1
  {
2
- "options": {
3
- "math": {
4
- "name": "Mathematical Framework",
5
- "description": "Offers a suite of math glyphs and notation rules.",
6
- "glyphs": [
7
- {
8
- "symbol": "\u21b9",
9
- "name": "Focus/Filter",
10
- "description": "Used for focusing instructions"
11
- },
12
- {
13
- "symbol": "\u03a3",
14
- "name": "Summarize",
15
- "description": "Condense large sets of data"
16
- },
17
- {
18
- "symbol": "\u2295",
19
- "name": "Combine/Merge",
20
- "description": "Merge multiple data sources"
21
- },
22
- {
23
- "symbol": "\u2022",
24
- "name": "Group Operation",
25
- "description": "Binary operation in group theory"
26
- }
27
- ]
2
+ "options": {
3
+ "math": {
4
+ "name": "Mathematical Framework",
5
+ "description": "Offers a suite of math glyphs and notation rules.",
6
+ "glyphs": [
7
+ {
8
+ "symbol": "\u21b9",
9
+ "name": "Focus/Filter",
10
+ "description": "Used for focusing instructions"
28
11
  },
29
- "optim": {
30
- "name": "Optimization Framework",
31
- "description": "Compression and optimization for code/math expressions.",
32
- "glyphs": [
33
- {
34
- "symbol": "IF",
35
- "name": "Conditional Operator",
36
- "description": "Represents branching logic"
37
- }
38
- ]
12
+ {
13
+ "symbol": "\u03a3",
14
+ "name": "Summarize",
15
+ "description": "Condense large sets of data"
39
16
  },
40
- "custom_algebra": {
41
- "name": "Custom Algebraic Framework",
42
- "description": "Extra rules for ring, group, field expansions.",
43
- "glyphs": [
44
- {
45
- "symbol": "\u221e",
46
- "name": "Infinite Operator",
47
- "description": "Represents unbounded algebraic ops"
48
- }
49
- ]
17
+ {
18
+ "symbol": "\u2295",
19
+ "name": "Combine/Merge",
20
+ "description": "Merge multiple data sources"
21
+ },
22
+ {
23
+ "symbol": "\u2022",
24
+ "name": "Group Operation",
25
+ "description": "Binary operation in group theory"
26
+ }
27
+ ]
28
+ },
29
+ "optim": {
30
+ "name": "Optimization Framework",
31
+ "description": "Compression and optimization for code/math expressions.",
32
+ "glyphs": [
33
+ {
34
+ "symbol": "IF",
35
+ "name": "Conditional Operator",
36
+ "description": "Represents branching logic"
37
+ }
38
+ ]
39
+ },
40
+ "custom_algebra": {
41
+ "name": "Custom Algebraic Framework",
42
+ "description": "Extra rules for ring, group, field expansions.",
43
+ "glyphs": [
44
+ {
45
+ "symbol": "\u221e",
46
+ "name": "Infinite Operator",
47
+ "description": "Represents unbounded algebraic ops"
50
48
  }
49
+ ]
51
50
  }
51
+ }
52
52
  }
@@ -19,10 +19,14 @@ message_text = template.render(**args)
19
19
  print(message_text)
20
20
  ```
21
21
 
22
- Benefits and Customization
23
- • You can easily rearrange sections within these templates without changing your code logic.
24
- • Each message type is clearly separated, making it simpler to maintain or adjust one message format without affecting the others.
25
- • If you find that you use some snippet (like rendering a schema) in multiple templates, you can factor it out into its own partial template (like tool_schemas.jinja2) and include it where needed.
26
- • Over time, you can add more templates or split existing ones if certain messages become too complex.
22
+ Benefits and Customization • You can easily rearrange sections within these
23
+ templates without changing your code logic. • Each message type is clearly
24
+ separated, making it simpler to maintain or adjust one message format without
25
+ affecting the others. • If you find that you use some snippet (like rendering a
26
+ schema) in multiple templates, you can factor it out into its own partial
27
+ template (like tool_schemas.jinja2) and include it where needed. • Over time,
28
+ you can add more templates or split existing ones if certain messages become too
29
+ complex.
27
30
 
28
- By establishing this set of base templates and arguments, you have a starting point. You can expand or refine as your requirements evolve.
31
+ By establishing this set of base templates and arguments, you have a starting
32
+ point. You can expand or refine as your requirements evolve.
lionagi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.10.6"
1
+ __version__ = "0.10.7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lionagi
3
- Version: 0.10.6
3
+ Version: 0.10.7
4
4
  Summary: An Intelligence Operating System.
5
5
  Author-email: HaiyangLi <quantocean.li@gmail.com>
6
6
  License: Apache License
@@ -241,21 +241,28 @@ Description-Content-Type: text/markdown
241
241
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/lionagi?color=blue)
242
242
  ![Python Version](https://img.shields.io/badge/python-3.10%2B-blue)
243
243
 
244
- [Documentation](https://lion-agi.github.io/lionagi/) | [Discord](https://discord.gg/aqSJ2v46vu) | [PyPI](https://pypi.org/project/lionagi/) | [Roadmap](https://trello.com/b/3seomsrI/lionagi)
244
+ [Documentation](https://lion-agi.github.io/lionagi/) |
245
+ [Discord](https://discord.gg/aqSJ2v46vu) |
246
+ [PyPI](https://pypi.org/project/lionagi/) |
247
+ [Roadmap](https://trello.com/b/3seomsrI/lionagi)
245
248
 
246
249
  # LION - Language InterOperable Network
247
250
 
248
251
  ## An Intelligence Operating System
249
252
 
250
- LionAGI is a robust framework for orchestrating multi-step AI operations with precise control. Bring together multiple models, advanced ReAct reasoning, tool integrations, and custom validations in a single coherent pipeline.
253
+ LionAGI is a robust framework for orchestrating multi-step AI operations with
254
+ precise control. Bring together multiple models, advanced ReAct reasoning, tool
255
+ integrations, and custom validations in a single coherent pipeline.
251
256
 
252
257
  ## Why LionAGI?
253
258
 
254
259
  - **Structured**: LLM interactions are validated and typed (via Pydantic).
255
- - **Expandable**: Integrate multiple providers (OpenAI, Anthropic, Perplexity, custom) with minimal friction.
256
- - **Controlled**: Built-in safety checks, concurrency strategies, and advanced multi-step flows—like ReAct with verbose outputs.
257
- - **Transparent**: Real-time logging, message introspection, and easy debugging of tool usage.
258
-
260
+ - **Expandable**: Integrate multiple providers (OpenAI, Anthropic, Perplexity,
261
+ custom) with minimal friction.
262
+ - **Controlled**: Built-in safety checks, concurrency strategies, and advanced
263
+ multi-step flows—like ReAct with verbose outputs.
264
+ - **Transparent**: Real-time logging, message introspection, and easy debugging
265
+ of tool usage.
259
266
 
260
267
  ## Installation
261
268
 
@@ -263,17 +270,11 @@ LionAGI is a robust framework for orchestrating multi-step AI operations with pr
263
270
  pip install lionagi
264
271
  ```
265
272
 
266
- Dependencies:
267
- aiocahce
268
- • aiohttp
269
- • jinja2
270
- • pandas
271
- • pillow
272
- • pydantic
273
- • python-dotenv
274
- • tiktoken
273
+ Dependencies: • aiocahce • aiohttp • jinja2 • pandas • pillow • pydantic
274
+ python-dotenv tiktoken
275
275
 
276
276
  ## Quick Start
277
+
277
278
  ```python
278
279
  from lionagi import Branch, iModel
279
280
 
@@ -294,6 +295,7 @@ print(response)
294
295
  ```
295
296
  You claim to be a dragon, oh what a braggin'!
296
297
  ```
298
+
297
299
  ### Structured Responses
298
300
 
299
301
  Use Pydantic to keep outputs structured:
@@ -311,6 +313,7 @@ res = await hunter.communicate(
311
313
  print(type(response))
312
314
  print(response.joke)
313
315
  ```
316
+
314
317
  ```
315
318
  <class '__main__.Joke'>
316
319
  With fiery claws, dragons hide their laughter flaws!
@@ -318,7 +321,8 @@ With fiery claws, dragons hide their laughter flaws!
318
321
 
319
322
  ### ReAct and Tools
320
323
 
321
- LionAGI supports advanced multi-step reasoning with ReAct. Tools let the LLM invoke external actions:
324
+ LionAGI supports advanced multi-step reasoning with ReAct. Tools let the LLM
325
+ invoke external actions:
322
326
 
323
327
  ```python
324
328
  from lionagi.tools.types import ReaderTool
@@ -336,16 +340,21 @@ result = await branch.ReAct(
336
340
  print(result)
337
341
  ```
338
342
 
339
- The LLM can now open the PDF, read in slices, fetch references, and produce a final structured summary.
343
+ The LLM can now open the PDF, read in slices, fetch references, and produce a
344
+ final structured summary.
340
345
 
341
346
  ### Observability & Debugging
347
+
342
348
  - Inspect messages:
349
+
343
350
  ```python
344
351
  df = branch.to_df()
345
352
  print(df.tail())
346
353
  ```
354
+
347
355
  - Action logs show each tool call, arguments, and outcomes.
348
- - Verbose ReAct provides chain-of-thought analysis (helpful for debugging multi-step flows).
356
+ - Verbose ReAct provides chain-of-thought analysis (helpful for debugging
357
+ multi-step flows).
349
358
 
350
359
  ### Example: Multi-Model Orchestration
351
360
 
@@ -377,10 +386,12 @@ pip install "lionagi[ollama]"
377
386
  ## Community & Contributing
378
387
 
379
388
  We welcome issues, ideas, and pull requests:
389
+
380
390
  - Discord: Join to chat or get help
381
391
  - Issues / PRs: GitHub
382
392
 
383
393
  ### Citation
394
+
384
395
  ```
385
396
  @software{Li_LionAGI_2023,
386
397
  author = {Haiyang Li},
@@ -392,4 +403,6 @@ We welcome issues, ideas, and pull requests:
392
403
  ```
393
404
 
394
405
  **🦁 LionAGI**
395
- > Because real AI orchestration demands more than a single prompt. Try it out and discover the next evolution in structured, multi-model, safe AI.
406
+
407
+ > Because real AI orchestration demands more than a single prompt. Try it out
408
+ > and discover the next evolution in structured, multi-model, safe AI.
@@ -4,7 +4,7 @@ lionagi/_errors.py,sha256=JlBTFJnRWtVYcRxKb7fWFiJHLbykl1E19mSJ8sXYVxg,455
4
4
  lionagi/_types.py,sha256=iDdYewsP9rDrM7QY19_NDTcWUk7swp8vnGCrloHMtUM,53
5
5
  lionagi/settings.py,sha256=W52mM34E6jXF3GyqCFzVREKZrmnUqtZm_BVDsUiDI_s,1627
6
6
  lionagi/utils.py,sha256=uLTJKl7aTnFXV6ehA6zwiwEB7G2nQYKsO2pZ6mqFzUk,78908
7
- lionagi/version.py,sha256=7qmFu9Qmzy5OxKJPN-LQOkzV_2T4cJYrUSLTfq7F3kE,23
7
+ lionagi/version.py,sha256=0tXlefZZVkpPOSdzPCMF-P32mDAIZaCt77gWQCpBAjY,23
8
8
  lionagi/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  lionagi/adapters/adapter.py,sha256=aW7s1OKAdxHd8HBv2UcThn-r2Q08EyArssNyFobMLuA,3357
10
10
  lionagi/adapters/json_adapter.py,sha256=EJj0Jev46ZhU3ZMnlYwyzN2rLxjLCVrMDpHkEuggBvk,4561
@@ -66,7 +66,7 @@ lionagi/libs/token_transform/synthlang_/translate_to_synthlang.py,sha256=lRBpeKG
66
66
  lionagi/libs/token_transform/synthlang_/resources/frameworks/abstract_algebra.toml,sha256=2TuOAo97g8mNhdPH96HP8vYZpnC8neiP-KlhVqbp1Us,970
67
67
  lionagi/libs/token_transform/synthlang_/resources/frameworks/category_theory.toml,sha256=Stg9W3h8o7VkQ9tdAfSZmR3LctFqcH6OhOPdaw9BlIg,1064
68
68
  lionagi/libs/token_transform/synthlang_/resources/frameworks/complex_analysis.toml,sha256=iE6FS7Cn5_uJRG5-StLuMM4XVAk95bxhbYWwlstw_tA,1044
69
- lionagi/libs/token_transform/synthlang_/resources/frameworks/framework_options.json,sha256=phAkedPGrwgNGW8hgPyH6pKU47pvKEAnG7vheWFvOLc,1760
69
+ lionagi/libs/token_transform/synthlang_/resources/frameworks/framework_options.json,sha256=_MQcXWBcgzPM6F13e_JDoF7rzTbi_zlXOXutyyYahBY,1384
70
70
  lionagi/libs/token_transform/synthlang_/resources/frameworks/group_theory.toml,sha256=iVlcS250YMosNRv3l8bz3BT9Tx1xCmiwhfNt4CjjRYc,713
71
71
  lionagi/libs/token_transform/synthlang_/resources/frameworks/math_logic.toml,sha256=jeFOF8gjRhb4hYXpW7AxTX8uk9c6DvGulJK5Bowxhq4,1037
72
72
  lionagi/libs/token_transform/synthlang_/resources/frameworks/reflective_patterns.toml,sha256=LxBIVLHNLfvVdXjLAzqivrYaHNix514DLNYsbA-VSQ4,5730
@@ -159,7 +159,7 @@ lionagi/protocols/messages/instruction.py,sha256=0dUsUYd6xYsbOHU7GafvqBkpDQQoFOX
159
159
  lionagi/protocols/messages/manager.py,sha256=e1jW5JH_3jZpZbFCvWZX0TG0DCgzANRUejW_6NqbtDc,17182
160
160
  lionagi/protocols/messages/message.py,sha256=rrGbya6rF86UB8xZcRP1YjgfJIFCxEWPQfHDcMuyBnM,7724
161
161
  lionagi/protocols/messages/system.py,sha256=x0F1C57SFHaO2-Z9cy1QshYlxv8wjl7VppooaGKbMIg,4658
162
- lionagi/protocols/messages/templates/README.md,sha256=Ch4JrKSjd85fLitAYO1OhZjNOGKHoEwaKQlcV16jiUI,1286
162
+ lionagi/protocols/messages/templates/README.md,sha256=Ux1ua0lN8AP2Ry5_6_eyiPCBtcFHV6e-GdpmEFu3XCs,1282
163
163
  lionagi/protocols/messages/templates/action_request.jinja2,sha256=d6OmxHKyvvNDSK4bnBM3TGSUk_HeE_Q2EtLAQ0ZBEJg,120
164
164
  lionagi/protocols/messages/templates/action_response.jinja2,sha256=Mg0UxmXlIvtP_KPB0GcJxE1TP6lml9BwdPkW1PZxkg8,142
165
165
  lionagi/protocols/messages/templates/assistant_response.jinja2,sha256=oKOX4myBy7it1J1f92mvTS1iBUUlZfsJsY2fC42ygvc,119
@@ -223,7 +223,7 @@ lionagi/tools/file/writer.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,
223
223
  lionagi/tools/file/providers/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
224
224
  lionagi/tools/file/providers/docling_.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
225
225
  lionagi/tools/query/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
226
- lionagi-0.10.6.dist-info/METADATA,sha256=5vxUHPlRrLHQDEKg7Ke_NT5wDxl1hj3Llx3coh2-yro,18465
227
- lionagi-0.10.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
228
- lionagi-0.10.6.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
229
- lionagi-0.10.6.dist-info/RECORD,,
226
+ lionagi-0.10.7.dist-info/METADATA,sha256=LXQN1lR4oZDrgH-hM7Lje0d-yPkP7CCDa-l8VN1KXBQ,18472
227
+ lionagi-0.10.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
228
+ lionagi-0.10.7.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
229
+ lionagi-0.10.7.dist-info/RECORD,,