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.
- {olca-0.2.25 → olca-0.2.26}/PKG-INFO +1 -1
- {olca-0.2.25 → olca-0.2.26}/olca/olcacli.py +11 -6
- {olca-0.2.25 → olca-0.2.26}/olca.egg-info/PKG-INFO +1 -1
- {olca-0.2.25 → olca-0.2.26}/olca.egg-info/entry_points.txt +1 -0
- {olca-0.2.25 → olca-0.2.26}/pyproject.toml +2 -1
- {olca-0.2.25 → olca-0.2.26}/setup.py +1 -1
- {olca-0.2.25 → olca-0.2.26}/LICENSE +0 -0
- {olca-0.2.25 → olca-0.2.26}/README.md +0 -0
- {olca-0.2.25 → olca-0.2.26}/olca/__init__.py +0 -0
- {olca-0.2.25 → olca-0.2.26}/olca/fusewill_cli.py +0 -0
- {olca-0.2.25 → olca-0.2.26}/olca/fusewill_utils.py +0 -0
- {olca-0.2.25 → olca-0.2.26}/olca.egg-info/SOURCES.txt +0 -0
- {olca-0.2.25 → olca-0.2.26}/olca.egg-info/dependency_links.txt +0 -0
- {olca-0.2.25 → olca-0.2.26}/olca.egg-info/requires.txt +0 -0
- {olca-0.2.25 → olca-0.2.26}/olca.egg-info/top_level.txt +0 -0
- {olca-0.2.25 → olca-0.2.26}/setup.cfg +0 -0
@@ -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 = {
|
@@ -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)
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|
7
7
|
|
8
8
|
[project]
|
9
9
|
name = "olca"
|
10
|
-
version = "0.2.
|
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.
|
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
|
File without changes
|