olca 0.2.24__py3-none-any.whl → 0.2.26__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.
- olca/olcacli.py +12 -7
 - {olca-0.2.24.dist-info → olca-0.2.26.dist-info}/METADATA +1 -1
 - olca-0.2.26.dist-info/RECORD +10 -0
 - {olca-0.2.24.dist-info → olca-0.2.26.dist-info}/entry_points.txt +1 -0
 - olca-0.2.24.dist-info/RECORD +0 -10
 - {olca-0.2.24.dist-info → olca-0.2.26.dist-info}/LICENSE +0 -0
 - {olca-0.2.24.dist-info → olca-0.2.26.dist-info}/WHEEL +0 -0
 - {olca-0.2.24.dist-info → olca-0.2.26.dist-info}/top_level.txt +0 -0
 
    
        olca/olcacli.py
    CHANGED
    
    | 
         @@ -279,12 +279,7 @@ def main(): 
     | 
|
| 
       279 
279 
     | 
    
         | 
| 
       280 
280 
     | 
    
         
             
                inputs,system_instructions,user_input = prepare_input(user_input, system_instructions, not disable_system_append, human_switch)
         
     | 
| 
       281 
281 
     | 
    
         | 
| 
       282 
     | 
    
         
            -
                 
     | 
| 
       283 
     | 
    
         
            -
                    extra_directories=extract_extra_directories_from_olca_config_system_and_user_input(system_instructions, user_input)
         
     | 
| 
       284 
     | 
    
         
            -
                    ensure_directories_exist(extra_directories)
         
     | 
| 
       285 
     | 
    
         
            -
                except:
         
     | 
| 
       286 
     | 
    
         
            -
                    #We dont want to stop the program if it could not create the extra directories but we want to ensure common olca directories exist
         
     | 
| 
       287 
     | 
    
         
            -
                    ensure_directories_exist()
         
     | 
| 
      
 282 
     | 
    
         
            +
                setup_required_directories(system_instructions, user_input)
         
     | 
| 
       288 
283 
     | 
    
         | 
| 
       289 
284 
     | 
    
         | 
| 
       290 
285 
     | 
    
         
             
                try:
         
     | 
| 
         @@ -294,6 +289,14 @@ def main(): 
     | 
|
| 
       294 
289 
     | 
    
         
             
                    print("Recursion limit reached. Please increase the 'recursion_limit' in the olca_config.yaml file.")
         
     | 
| 
       295 
290 
     | 
    
         
             
                    print("For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT")
         
     | 
| 
       296 
291 
     | 
    
         | 
| 
      
 292 
     | 
    
         
            +
            def setup_required_directories(system_instructions, user_input):
         
     | 
| 
      
 293 
     | 
    
         
            +
                try:    
         
     | 
| 
      
 294 
     | 
    
         
            +
                    extra_directories=extract_extra_directories_from_olca_config_system_and_user_input(system_instructions, user_input)
         
     | 
| 
      
 295 
     | 
    
         
            +
                    ensure_directories_exist(extra_directories)
         
     | 
| 
      
 296 
     | 
    
         
            +
                except:
         
     | 
| 
      
 297 
     | 
    
         
            +
                    #We dont want to stop the program if it could not create the extra directories but we want to ensure common olca directories exist
         
     | 
| 
      
 298 
     | 
    
         
            +
                    ensure_directories_exist()
         
     | 
| 
      
 299 
     | 
    
         
            +
             
     | 
| 
       297 
300 
     | 
    
         
             
            def generate_config_example():
         
     | 
| 
       298 
301 
     | 
    
         
             
                try:
         
     | 
| 
       299 
302 
     | 
    
         
             
                    config = {
         
     | 
| 
         @@ -303,12 +306,14 @@ def generate_config_example(): 
     | 
|
| 
       303 
306 
     | 
    
         
             
                        "temperature": float(input("temperature [0]: ") or 0),
         
     | 
| 
       304 
307 
     | 
    
         
             
                        "human": input("human [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
         
     | 
| 
       305 
308 
     | 
    
         
             
                        "tracing": input("tracing [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
         
     | 
| 
       306 
     | 
    
         
            -
                        "system_instructions": input("system_instructions [ 
     | 
| 
      
 309 
     | 
    
         
            +
                        "system_instructions": input("system_instructions [You are interacting using the human tool addressing carefully what the user is asking.  You carefully go step by step in your interaction with the user.  You are clear and concise in your communication wrapping up the conversation in a coherent manner for the interaction. You make sure to always present what you think is the end-result of the work before quitting the loop and exit the workflow.]: ") or "You are interacting using the human tool addressing carefully what the user is asking.  You carefully go step by step in your interaction with the user.  You are clear and concise in your communication wrapping up the conversation in a coherent manner for the interaction. You make sure to always present what you think is the end-result of the work before quitting the loop and exit the workflow.",
         
     | 
| 
       307 
310 
     | 
    
         
             
                        "user_input": input("user_input [Interact with me to write a story using the 3 act structure that we will save in ./story/]: ") or "Interact with me to write a story using the 3 act structure that we will save in ./story/"
         
     | 
| 
       308 
311 
     | 
    
         
             
                    }
         
     | 
| 
       309 
312 
     | 
    
         
             
                    with open('olca.yml', 'w') as file:
         
     | 
| 
       310 
313 
     | 
    
         
             
                        yaml.dump(config, file)
         
     | 
| 
       311 
314 
     | 
    
         
             
                    print("Configuration file 'olca.yml' created successfully.")
         
     | 
| 
      
 315 
     | 
    
         
            +
                    inputs,system_instructions,user_input = prepare_input(config["user_input"], config["system_instructions"], True, config["human"])
         
     | 
| 
      
 316 
     | 
    
         
            +
                    setup_required_directories(system_instructions, user_input)
         
     | 
| 
       312 
317 
     | 
    
         
             
                except KeyboardInterrupt:
         
     | 
| 
       313 
318 
     | 
    
         
             
                    print("\nConfiguration canceled by user.")
         
     | 
| 
       314 
319 
     | 
    
         
             
                    exit(0)
         
     | 
| 
         @@ -0,0 +1,10 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
         
     | 
| 
      
 2 
     | 
    
         
            +
            olca/fusewill_cli.py,sha256=ZFW2Oeq-gQpAaTIxzsztQWDMv7-R9WJTVcSspbTxpPk,5926
         
     | 
| 
      
 3 
     | 
    
         
            +
            olca/fusewill_utils.py,sha256=TyyCVRkWeXaS14vh0BXGK-tj0ZPZ3_uQNnAOM-IE9FA,3405
         
     | 
| 
      
 4 
     | 
    
         
            +
            olca/olcacli.py,sha256=mx44dqrA4jqIRTs5mVyA0Lg4aQ2X_6Rf6040yh9Va_g,14551
         
     | 
| 
      
 5 
     | 
    
         
            +
            olca-0.2.26.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
         
     | 
| 
      
 6 
     | 
    
         
            +
            olca-0.2.26.dist-info/METADATA,sha256=bjOSqON_iDj7v_BGtHHqRRH6shfnagQ4OSS6DXfhDFk,25311
         
     | 
| 
      
 7 
     | 
    
         
            +
            olca-0.2.26.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
         
     | 
| 
      
 8 
     | 
    
         
            +
            olca-0.2.26.dist-info/entry_points.txt,sha256=AhP5FMv6vnOq9C76V_vxRVIO50smnZXG4RIY47oD2_U,103
         
     | 
| 
      
 9 
     | 
    
         
            +
            olca-0.2.26.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
         
     | 
| 
      
 10 
     | 
    
         
            +
            olca-0.2.26.dist-info/RECORD,,
         
     | 
    
        olca-0.2.24.dist-info/RECORD
    DELETED
    
    | 
         @@ -1,10 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
         
     | 
| 
       2 
     | 
    
         
            -
            olca/fusewill_cli.py,sha256=ZFW2Oeq-gQpAaTIxzsztQWDMv7-R9WJTVcSspbTxpPk,5926
         
     | 
| 
       3 
     | 
    
         
            -
            olca/fusewill_utils.py,sha256=TyyCVRkWeXaS14vh0BXGK-tj0ZPZ3_uQNnAOM-IE9FA,3405
         
     | 
| 
       4 
     | 
    
         
            -
            olca/olcacli.py,sha256=lExp38Vj-PY41StDvvx3up9m0OV5fEj_p_iVwIQv4Dk,13866
         
     | 
| 
       5 
     | 
    
         
            -
            olca-0.2.24.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
         
     | 
| 
       6 
     | 
    
         
            -
            olca-0.2.24.dist-info/METADATA,sha256=SR_XbE2x5fM3mQiQIdeY5aUSNNqnjGC_aFlc0CBTPy4,25311
         
     | 
| 
       7 
     | 
    
         
            -
            olca-0.2.24.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
         
     | 
| 
       8 
     | 
    
         
            -
            olca-0.2.24.dist-info/entry_points.txt,sha256=njL8YpuSEjiYR2mXIholt03mVAfN8ai12UyH-_uUDho,78
         
     | 
| 
       9 
     | 
    
         
            -
            olca-0.2.24.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
         
     | 
| 
       10 
     | 
    
         
            -
            olca-0.2.24.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |