quantalogic 0.80__py3-none-any.whl → 0.93__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/flow/__init__.py +16 -34
- quantalogic/main.py +11 -6
- quantalogic/tools/tool.py +8 -922
- quantalogic-0.93.dist-info/METADATA +475 -0
- {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/RECORD +8 -54
- quantalogic/codeact/TODO.md +0 -14
- quantalogic/codeact/__init__.py +0 -0
- quantalogic/codeact/agent.py +0 -478
- quantalogic/codeact/cli.py +0 -50
- quantalogic/codeact/cli_commands/__init__.py +0 -0
- quantalogic/codeact/cli_commands/create_toolbox.py +0 -45
- quantalogic/codeact/cli_commands/install_toolbox.py +0 -20
- quantalogic/codeact/cli_commands/list_executor.py +0 -15
- quantalogic/codeact/cli_commands/list_reasoners.py +0 -15
- quantalogic/codeact/cli_commands/list_toolboxes.py +0 -47
- quantalogic/codeact/cli_commands/task.py +0 -215
- quantalogic/codeact/cli_commands/tool_info.py +0 -24
- quantalogic/codeact/cli_commands/uninstall_toolbox.py +0 -43
- quantalogic/codeact/config.yaml +0 -21
- quantalogic/codeact/constants.py +0 -9
- quantalogic/codeact/events.py +0 -85
- quantalogic/codeact/examples/README.md +0 -342
- quantalogic/codeact/examples/agent_sample.yaml +0 -29
- quantalogic/codeact/executor.py +0 -186
- quantalogic/codeact/history_manager.py +0 -94
- quantalogic/codeact/llm_util.py +0 -57
- quantalogic/codeact/plugin_manager.py +0 -92
- quantalogic/codeact/prompts/error_format.j2 +0 -11
- quantalogic/codeact/prompts/generate_action.j2 +0 -77
- quantalogic/codeact/prompts/generate_program.j2 +0 -52
- quantalogic/codeact/prompts/response_format.j2 +0 -11
- quantalogic/codeact/react_agent.py +0 -318
- quantalogic/codeact/reasoner.py +0 -185
- quantalogic/codeact/templates/toolbox/README.md.j2 +0 -10
- quantalogic/codeact/templates/toolbox/pyproject.toml.j2 +0 -16
- quantalogic/codeact/templates/toolbox/tools.py.j2 +0 -6
- quantalogic/codeact/templates.py +0 -7
- quantalogic/codeact/tools_manager.py +0 -258
- quantalogic/codeact/utils.py +0 -62
- quantalogic/codeact/xml_utils.py +0 -126
- quantalogic/flow/flow.py +0 -1070
- quantalogic/flow/flow_extractor.py +0 -783
- quantalogic/flow/flow_generator.py +0 -322
- quantalogic/flow/flow_manager.py +0 -676
- quantalogic/flow/flow_manager_schema.py +0 -287
- quantalogic/flow/flow_mermaid.py +0 -365
- quantalogic/flow/flow_validator.py +0 -479
- quantalogic/flow/flow_yaml.linkedin.md +0 -31
- quantalogic/flow/flow_yaml.md +0 -767
- quantalogic/flow/templates/prompt_check_inventory.j2 +0 -1
- quantalogic/flow/templates/system_check_inventory.j2 +0 -1
- quantalogic-0.80.dist-info/METADATA +0 -900
- {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/LICENSE +0 -0
- {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/WHEEL +0 -0
- {quantalogic-0.80.dist-info → quantalogic-0.93.dist-info}/entry_points.txt +0 -0
    
        quantalogic/flow/__init__.py
    CHANGED
    
    | @@ -1,40 +1,22 @@ | |
| 1 | 
            -
            """
         | 
| 2 | 
            -
             | 
| 1 | 
            +
            """Stub alias for backwards compatibility: re-export Flow API from the quantalogic_flow package."""
         | 
| 2 | 
            +
            from quantalogic_flow import (
         | 
| 3 | 
            +
                Nodes,
         | 
| 4 | 
            +
                Workflow,
         | 
| 5 | 
            +
                WorkflowEngine,
         | 
| 6 | 
            +
                WorkflowManager,
         | 
| 7 | 
            +
                extract_workflow_from_file,
         | 
| 8 | 
            +
                generate_executable_script,
         | 
| 9 | 
            +
                generate_mermaid_diagram,
         | 
| 10 | 
            +
                validate_workflow_definition,
         | 
| 11 | 
            +
            )
         | 
| 3 12 |  | 
| 4 | 
            -
            This module initializes the flow package and provides package-level imports.
         | 
| 5 | 
            -
            Now supports nested workflows for hierarchical flow definitions.
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            Key Visualization Utilities:
         | 
| 8 | 
            -
            - generate_mermaid_diagram(): Convert workflow definitions to visual Mermaid flowcharts
         | 
| 9 | 
            -
                - Supports pastel-colored node styling
         | 
| 10 | 
            -
                - Generates interactive, readable workflow diagrams
         | 
| 11 | 
            -
                - Handles complex workflows with multiple node types
         | 
| 12 | 
            -
             | 
| 13 | 
            -
                - Generates descriptive labels
         | 
| 14 | 
            -
                - Supports conditional node detection
         | 
| 15 | 
            -
            """
         | 
| 16 | 
            -
             | 
| 17 | 
            -
            from loguru import logger
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            # Expose key components for easy importing
         | 
| 20 | 
            -
            from .flow import Nodes, Workflow, WorkflowEngine
         | 
| 21 | 
            -
            from .flow_extractor import extract_workflow_from_file
         | 
| 22 | 
            -
            from .flow_generator import generate_executable_script
         | 
| 23 | 
            -
            from .flow_manager import WorkflowManager
         | 
| 24 | 
            -
            from .flow_mermaid import generate_mermaid_diagram
         | 
| 25 | 
            -
            from .flow_validator import validate_workflow_definition
         | 
| 26 | 
            -
             | 
| 27 | 
            -
            # Define which symbols are exported when using `from flow import *`
         | 
| 28 13 | 
             
            __all__ = [
         | 
| 29 | 
            -
                " | 
| 14 | 
            +
                "extract_workflow_from_file",
         | 
| 15 | 
            +
                "generate_executable_script",
         | 
| 16 | 
            +
                "generate_mermaid_diagram",
         | 
| 30 17 | 
             
                "Nodes",
         | 
| 18 | 
            +
                "validate_workflow_definition",
         | 
| 31 19 | 
             
                "Workflow",
         | 
| 32 20 | 
             
                "WorkflowEngine",
         | 
| 33 | 
            -
                " | 
| 34 | 
            -
                "extract_workflow_from_file",
         | 
| 35 | 
            -
                "generate_executable_script",
         | 
| 36 | 
            -
                "validate_workflow_definition"
         | 
| 21 | 
            +
                "WorkflowManager",
         | 
| 37 22 | 
             
            ]
         | 
| 38 | 
            -
             | 
| 39 | 
            -
            # Package-level logger configuration
         | 
| 40 | 
            -
            logger.info("Initializing Quantalogic Flow Package")
         | 
    
        quantalogic/main.py
    CHANGED
    
    | @@ -18,6 +18,11 @@ load_dotenv() | |
| 18 18 |  | 
| 19 19 | 
             
            # Configure logger
         | 
| 20 20 | 
             
            logger.remove()
         | 
| 21 | 
            +
            logger.add(
         | 
| 22 | 
            +
                sys.stderr,
         | 
| 23 | 
            +
                level="ERROR",  # Changed from WARNING to ERROR
         | 
| 24 | 
            +
                format="<green>{time:YYYY-MM-DD HH:mm:ss}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>"
         | 
| 25 | 
            +
            )
         | 
| 21 26 |  | 
| 22 27 | 
             
            from rich.console import Console  # noqa: E402
         | 
| 23 28 | 
             
            from rich.panel import Panel  # noqa: E402
         | 
| @@ -98,9 +103,9 @@ def restore_terminal(old_settings): | |
| 98 103 | 
             
            )
         | 
| 99 104 | 
             
            @click.option(
         | 
| 100 105 | 
             
                "--log",
         | 
| 101 | 
            -
                type=click.Choice(["info", "debug", "warning"]),
         | 
| 106 | 
            +
                type=click.Choice(["info", "debug", "warning", "error"]),
         | 
| 102 107 | 
             
                default="info",
         | 
| 103 | 
            -
                help="Set logging level (info/debug/warning).",
         | 
| 108 | 
            +
                help="Set logging level (info/debug/warning/error).",
         | 
| 104 109 | 
             
            )
         | 
| 105 110 | 
             
            @click.option("--verbose", is_flag=True, help="Enable verbose output.")
         | 
| 106 111 | 
             
            @click.option("--mode", type=click.Choice(AGENT_MODES), default="basic", help="Agent mode (code/search/full/chat).")
         | 
| @@ -196,9 +201,9 @@ def cli( | |
| 196 201 | 
             
            @click.option("--mode", type=click.Choice(AGENT_MODES), default="basic", help="Agent mode (code/search/full/chat).")
         | 
| 197 202 | 
             
            @click.option(
         | 
| 198 203 | 
             
                "--log",
         | 
| 199 | 
            -
                type=click.Choice(["info", "debug", "warning"]),
         | 
| 204 | 
            +
                type=click.Choice(["info", "debug", "warning", "error"]),
         | 
| 200 205 | 
             
                default="info",
         | 
| 201 | 
            -
                help="Set logging level (info/debug/warning).",
         | 
| 206 | 
            +
                help="Set logging level (info/debug/warning/error).",
         | 
| 202 207 | 
             
            )
         | 
| 203 208 | 
             
            @click.option(
         | 
| 204 209 | 
             
                "--vision-model-name",
         | 
| @@ -318,9 +323,9 @@ def list_models(search: Optional[str] = None): | |
| 318 323 | 
             
            )
         | 
| 319 324 | 
             
            @click.option(
         | 
| 320 325 | 
             
                "--log",
         | 
| 321 | 
            -
                type=click.Choice(["info", "debug", "warning"]),
         | 
| 326 | 
            +
                type=click.Choice(["info", "debug", "warning", "error"]),
         | 
| 322 327 | 
             
                default="info",
         | 
| 323 | 
            -
                help="Set logging level (info/debug/warning).",
         | 
| 328 | 
            +
                help="Set logging level (info/debug/warning/error).",
         | 
| 324 329 | 
             
            )
         | 
| 325 330 | 
             
            @click.option("--verbose", is_flag=True, help="Enable verbose output.")
         | 
| 326 331 | 
             
            @click.option(
         |