olca 0.2.25__tar.gz → 0.2.26__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.25
3
+ Version: 0.2.26
4
4
  Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
5
5
  Home-page: https://github.com/jgwill/olca
6
6
  Author: Jean GUillaume ISabelle
@@ -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
- try:
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 = {
@@ -309,6 +312,8 @@ def generate_config_example():
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.25
3
+ Version: 0.2.26
4
4
  Summary: A Python package for experimental usage of Langchain and Human-in-the-Loop
5
5
  Home-page: https://github.com/jgwill/olca
6
6
  Author: Jean GUillaume ISabelle
@@ -1,3 +1,4 @@
1
1
  [console_scripts]
2
2
  fusewill = olca.fusewill_cli:main
3
+ olca = olca.olcacli:main
3
4
  olca2 = olca.olcacli:main
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "olca"
10
- version = "0.2.25"
10
+ version = "0.2.26"
11
11
 
12
12
  description = "A Python package for experimental usage of Langchain and Human-in-the-Loop"
13
13
  readme = "README.md"
@@ -40,4 +40,5 @@ classifiers = [
40
40
 
41
41
  [project.scripts]
42
42
  olca2 = "olca.olcacli:main"
43
+ olca = "olca.olcacli:main"
43
44
  fusewill = "olca.fusewill_cli:main"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='olca',
5
- version = "0.2.25",
5
+ version = "0.2.26",
6
6
  author='Jean GUillaume ISabelle',
7
7
  author_email='jgi@jgwill.com',
8
8
  description='A Python package for experimenting with Langchain agent and interactivity in Terminal modalities.',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes