quantalogic 0.53.0__py3-none-any.whl → 0.56.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.
- quantalogic/__init__.py +7 -0
- quantalogic/flow/flow.py +267 -80
- quantalogic/flow/flow_extractor.py +216 -87
- quantalogic/flow/flow_generator.py +157 -88
- quantalogic/flow/flow_manager.py +252 -125
- quantalogic/flow/flow_manager_schema.py +62 -43
- quantalogic/flow/flow_mermaid.py +151 -68
- quantalogic/flow/flow_validator.py +204 -77
- quantalogic/flow/flow_yaml.md +341 -156
- quantalogic/tools/safe_python_interpreter_tool.py +6 -1
- quantalogic/xml_parser.py +5 -1
- quantalogic/xml_tool_parser.py +4 -1
- {quantalogic-0.53.0.dist-info → quantalogic-0.56.0.dist-info}/METADATA +16 -6
- {quantalogic-0.53.0.dist-info → quantalogic-0.56.0.dist-info}/RECORD +17 -17
- {quantalogic-0.53.0.dist-info → quantalogic-0.56.0.dist-info}/LICENSE +0 -0
- {quantalogic-0.53.0.dist-info → quantalogic-0.56.0.dist-info}/WHEEL +0 -0
- {quantalogic-0.53.0.dist-info → quantalogic-0.56.0.dist-info}/entry_points.txt +0 -0
@@ -11,7 +11,12 @@ Description:
|
|
11
11
|
from __future__ import annotations
|
12
12
|
|
13
13
|
import concurrent.futures
|
14
|
-
from typing import Any, List, Literal
|
14
|
+
from typing import Any, List, Literal
|
15
|
+
|
16
|
+
try:
|
17
|
+
from typing import Self # Python 3.11+
|
18
|
+
except ImportError:
|
19
|
+
from typing_extensions import Self # Python 3.10 compatibility
|
15
20
|
|
16
21
|
from loguru import logger
|
17
22
|
from pydantic import Field, model_validator
|
quantalogic/xml_parser.py
CHANGED
@@ -7,7 +7,11 @@ with support for handling malformed XML and CDATA sections.
|
|
7
7
|
import html
|
8
8
|
import re
|
9
9
|
from collections import defaultdict
|
10
|
-
|
10
|
+
|
11
|
+
try:
|
12
|
+
from typing import Self # Python 3.11+
|
13
|
+
except ImportError:
|
14
|
+
from typing_extensions import Self # Python 3.10 compatibility
|
11
15
|
|
12
16
|
from loguru import logger
|
13
17
|
from pydantic import BaseModel, Field, model_validator
|
quantalogic/xml_tool_parser.py
CHANGED
@@ -4,7 +4,10 @@ This module provides functionality for parsing tool arguments from XML-like
|
|
4
4
|
input, with support for validation and error handling.
|
5
5
|
"""
|
6
6
|
|
7
|
-
|
7
|
+
try:
|
8
|
+
from typing import Self # Python 3.11+
|
9
|
+
except ImportError:
|
10
|
+
from typing_extensions import Self # Python 3.10 compatibility
|
8
11
|
|
9
12
|
from loguru import logger
|
10
13
|
from pydantic import BaseModel, Field
|
@@ -1,11 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: quantalogic
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.56.0
|
4
4
|
Summary: QuantaLogic ReAct Agents
|
5
5
|
Author: Raphaël MANSUY
|
6
6
|
Author-email: raphael.mansuy@gmail.com
|
7
|
-
Requires-Python: >=3.
|
7
|
+
Requires-Python: >=3.10,<4.0
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
9
11
|
Classifier: Programming Language :: Python :: 3.12
|
10
12
|
Classifier: Programming Language :: Python :: 3.13
|
11
13
|
Requires-Dist: beautifulsoup4 (>=4.12.3,<5.0.0)
|
@@ -42,6 +44,7 @@ Requires-Dist: tree-sitter-rust (>=0.23.2,<0.24.0)
|
|
42
44
|
Requires-Dist: tree-sitter-scala (>=0.23.4,<0.24.0)
|
43
45
|
Requires-Dist: tree-sitter-typescript (>=0.23.2,<0.24.0)
|
44
46
|
Requires-Dist: types-pyyaml (>=6.0.12.20241230,<7.0.0.0)
|
47
|
+
Requires-Dist: typing-extensions (>=4.12.2,<5.0.0)
|
45
48
|
Description-Content-Type: text/markdown
|
46
49
|
|
47
50
|
# QuantaLogic
|
@@ -61,6 +64,7 @@ Picture this: a CLI that’s as easy as a snap, a Python API that’s pure magic
|
|
61
64
|
---
|
62
65
|
[Chinese Version](./README_CN.md)
|
63
66
|
[French Version](./README_FR.md)
|
67
|
+
[German Version](./README_DE.md)
|
64
68
|
|
65
69
|
## Why QuantaLogic?
|
66
70
|
|
@@ -91,7 +95,7 @@ At [QuantaLogic](https://www.quantalogic.app), we spotted a black hole: amazing
|
|
91
95
|
- [ReAct Framework: Dynamic Agents](#react-framework-dynamic-agents)
|
92
96
|
- [Flow Module: Structured Workflows](#flow-module-structured-workflows)
|
93
97
|
- 📘 **[Workflow YAML DSL Specification](./quantalogic/flow/flow_yaml.md)**: Comprehensive guide to defining powerful, structured workflows using our Domain-Specific Language
|
94
|
-
- 📚 **[Flow YAML Documentation](
|
98
|
+
- 📚 **[Flow YAML Documentation](./quantalogic/flow/flow_yaml)**: Dive into the official documentation for a deeper understanding of Flow YAML and its applications
|
95
99
|
- [ReAct vs. Flow: Pick Your Power](#react-vs-flow-pick-your-power)
|
96
100
|
- [Using the CLI](#using-the-cli)
|
97
101
|
- [Examples That Spark Joy](#examples-that-spark-joy)
|
@@ -462,7 +466,7 @@ This example demonstrates:
|
|
462
466
|
- Conditional branching for iterative chapter generation
|
463
467
|
- Context management for tracking progress
|
464
468
|
|
465
|
-
The full example is available at [examples/flow/story_generator_agent.py](./examples/flow/story_generator_agent.py).
|
469
|
+
The full example is available at [examples/flow/story_generator/story_generator_agent.py](./examples/flow/story_generator/story_generator_agent.py).
|
466
470
|
|
467
471
|
### Flow Visualized
|
468
472
|
```mermaid
|
@@ -568,7 +572,13 @@ Use a `.env` file or export these variables in your shell for seamless integrati
|
|
568
572
|
|
569
573
|
## Examples That Spark Joy
|
570
574
|
|
571
|
-
|
575
|
+
Explore our collection of examples to see QuantaLogic in action:
|
576
|
+
|
577
|
+
- [Flow Examples](./examples/flow/README.md): Discover practical workflows showcasing Quantalogic Flow capabilities
|
578
|
+
- [Agent Examples](./examples/agent/README.md): See dynamic agents in action with the ReAct framework
|
579
|
+
- [Tool Examples](./examples/tools/README.md): Explore our powerful tool integrations
|
580
|
+
|
581
|
+
Each example comes with detailed documentation and ready-to-run code.
|
572
582
|
|
573
583
|
### Video Magic
|
574
584
|
[](./examples/generated_tutorials/python/quantalogic_long.mp4)
|
@@ -584,7 +594,7 @@ Let’s light up your imagination with these gems:
|
|
584
594
|
| Code Screen | Advanced code generation | [06-code-screen.py](./examples/06-code-screen.py) |
|
585
595
|
| Tutorial Writer | Write technical tutorials | [07-write-tutorial.py](./examples/07-write-tutorial.py) |
|
586
596
|
| PRD Writer | Product Requirements Document | [08-prd-writer.py](./examples/08-prd-writer.py) |
|
587
|
-
| Story Generator | Flow-based story creation | [story_generator_agent.py](./examples/flow/story_generator_agent.py) |
|
597
|
+
| Story Generator | Flow-based story creation | [story_generator_agent.py](./examples/flow/story_generator/story_generator_agent.py) |
|
588
598
|
| SQL Query | Database query generation | [09-sql-query.py](./examples/09-sql-query.py) |
|
589
599
|
| Finance Agent | Financial analysis and tasks | [10-finance-agent.py](./examples/10-finance-agent.py) |
|
590
600
|
| Textual Interface | Agent with textual UI | [11-textual-agent-interface.py](./examples/11-textual-agent-interface.py) |
|
@@ -1,4 +1,4 @@
|
|
1
|
-
quantalogic/__init__.py,sha256=
|
1
|
+
quantalogic/__init__.py,sha256=qFbvfHOd_chAu536pH816E3uo6CdyAgXCpQOwMXXVnY,1076
|
2
2
|
quantalogic/agent.py,sha256=8Zz0kzFcOVdZSQ2FraoWirk8dWrBCKILNGbF9oPXMpY,41163
|
3
3
|
quantalogic/agent_config.py,sha256=fPyMfm77BzimyfyFkTzb2ZdyZtGlr2fq5aTRETu77Vs,8202
|
4
4
|
quantalogic/agent_factory.py,sha256=LO0qsFtHxU7lcEi8dn-nDHhkh6Dl8Is6sP_3f1ap_Vg,6251
|
@@ -10,14 +10,14 @@ quantalogic/create_custom_agent.py,sha256=1ZMsbpQGHFueJJpfJIuYCWvR3LUsEtDYqDbr6O
|
|
10
10
|
quantalogic/docs_cli.py,sha256=Ie6NwKQuxLKwVQ-cjhFMCttXeiHDjGhNY4hSmMtc0Qg,1664
|
11
11
|
quantalogic/event_emitter.py,sha256=e_1r6hvx5GmW84iuRkoqcjpjRiYHBk4hzujd5ZoUC6U,16777
|
12
12
|
quantalogic/flow/__init__.py,sha256=MD5FAdD6jnVnTPMIOmToKjFxHBQvLmOCT0VeaWhASBc,1295
|
13
|
-
quantalogic/flow/flow.py,sha256=
|
14
|
-
quantalogic/flow/flow_extractor.py,sha256=
|
15
|
-
quantalogic/flow/flow_generator.py,sha256=
|
16
|
-
quantalogic/flow/flow_manager.py,sha256=
|
17
|
-
quantalogic/flow/flow_manager_schema.py,sha256=
|
18
|
-
quantalogic/flow/flow_mermaid.py,sha256=
|
19
|
-
quantalogic/flow/flow_validator.py,sha256=
|
20
|
-
quantalogic/flow/flow_yaml.md,sha256=
|
13
|
+
quantalogic/flow/flow.py,sha256=QC6U0MRjaAdViSfSGGOwcjYnsPB5FLzJfh7MfPGBrT4,37881
|
14
|
+
quantalogic/flow/flow_extractor.py,sha256=GNmGOZH8zs4USHxCOURF0wiZtYqchZcscBX137DZuac,34275
|
15
|
+
quantalogic/flow/flow_generator.py,sha256=6vBsl9wceJfCRKpib_SMl-QrMty3hYoH-IKpLgOEvO8,16041
|
16
|
+
quantalogic/flow/flow_manager.py,sha256=WpwfpwkWDVr4KNDzG19gBveaqK2VQQjlqgEhnqOxGk0,28531
|
17
|
+
quantalogic/flow/flow_manager_schema.py,sha256=MR-dw51NEGCDctGZDeJcH49Dpl4Ym0DCw7E7-t6qk10,9240
|
18
|
+
quantalogic/flow/flow_mermaid.py,sha256=sl5ioOHop8AW5NZsOHLKb7juvieqXU_ZkdzSBSO_INs,16296
|
19
|
+
quantalogic/flow/flow_validator.py,sha256=6T4XUPjiHX_oKQVY_dXmRK8aICHnvQCKcyXAaomXtWY,23581
|
20
|
+
quantalogic/flow/flow_yaml.md,sha256=9Oe5ZPlME4Gf-WZB8Vy5i_s7E5YCrU-zFhOdupBjTSM,25304
|
21
21
|
quantalogic/generative_model.py,sha256=os30wdVRq3OsSf8M7TjoaGqJweL99UINQtSGCwoE91k,15913
|
22
22
|
quantalogic/get_model_info.py,sha256=RgblwjjP7G97v_AzoGbXxXBIO082jVCRmvRwxnEpW_s,2991
|
23
23
|
quantalogic/interactive_text_editor.py,sha256=CzefvRiLscFfOKBS4gmrI10Gn3SF_eS5zbiLVQ9Gugw,16334
|
@@ -126,7 +126,7 @@ quantalogic/tools/read_file_tool.py,sha256=l6k-SOIV9krpXAmUTkxzua51S-KHgzGqkcDlD
|
|
126
126
|
quantalogic/tools/read_html_tool.py,sha256=KmXTeSrQZj0L-OAwl3xZQybdAhhyAeK3wgblhXgf3oM,10999
|
127
127
|
quantalogic/tools/replace_in_file_tool.py,sha256=8cbM0MqNpQynNwbkHR7kqYoG-1JBxDjpMjHHVCwiS8w,13854
|
128
128
|
quantalogic/tools/ripgrep_tool.py,sha256=sRzHaWac9fa0cCGhECJN04jw_Ko0O3u45KDWzMIYcvY,14291
|
129
|
-
quantalogic/tools/safe_python_interpreter_tool.py,sha256=
|
129
|
+
quantalogic/tools/safe_python_interpreter_tool.py,sha256=eqwI0sHNt4mTvd8witCc0cecydKJNXNN3HNFfr4sCkI,8036
|
130
130
|
quantalogic/tools/search_definition_names.py,sha256=zqtaqq8aS5jdDQOkbd4wMUPFyL6Bq-4q9NWyLKdXL1E,18771
|
131
131
|
quantalogic/tools/sequence_tool.py,sha256=Hb2FSjWWACvXZX7rmJXPk5lnnnqaDeRTbhQQRtCd8hI,11169
|
132
132
|
quantalogic/tools/serpapi_search_tool.py,sha256=sX-Noch77kGP2XiwislPNFyy3_4TH6TwMK6C81L3q9Y,5316
|
@@ -161,10 +161,10 @@ quantalogic/utils/xml_utility.py,sha256=gLB0vpbpxbfc297Fy37Zd3O_-sbt6DoRUZrSkhPq
|
|
161
161
|
quantalogic/version.py,sha256=ea_cRutaQk5_lwlLbUUvPFuOT7Of7-gAsDl7wdveS-g,107
|
162
162
|
quantalogic/version_check.py,sha256=JyQFTNMDWtpHCLnN-BiakzB2cyXf6kUFsTjvmSruZi4,1623
|
163
163
|
quantalogic/welcome_message.py,sha256=o4tHdgabNuIV9kbIDPgS3_2yzJhayK30oKad2UouYDc,3020
|
164
|
-
quantalogic/xml_parser.py,sha256=
|
165
|
-
quantalogic/xml_tool_parser.py,sha256=
|
166
|
-
quantalogic-0.
|
167
|
-
quantalogic-0.
|
168
|
-
quantalogic-0.
|
169
|
-
quantalogic-0.
|
170
|
-
quantalogic-0.
|
164
|
+
quantalogic/xml_parser.py,sha256=bLLwIwO-VEHWF3heNS7nuPC8wgdYw9F_fVZZNW1figY,11728
|
165
|
+
quantalogic/xml_tool_parser.py,sha256=hGHA1q20JUoTNTbZYmi4FTdA5I25-AGEIP8DwZgQCNA,3897
|
166
|
+
quantalogic-0.56.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
167
|
+
quantalogic-0.56.0.dist-info/METADATA,sha256=N1WD5PThI7ECEe0p8sxzj4n5nK0G7dFhsCxRnptflXo,28783
|
168
|
+
quantalogic-0.56.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
169
|
+
quantalogic-0.56.0.dist-info/entry_points.txt,sha256=h74O_Q3qBRCrDR99qvwB4BpBGzASPUIjCfxHq6Qnups,183
|
170
|
+
quantalogic-0.56.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|