olca 0.2.31__tar.gz → 0.2.32__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.31
3
+ Version: 0.2.32
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
@@ -177,11 +177,11 @@ def main():
177
177
  if args.yes:
178
178
  pass
179
179
  else:
180
- generate_config_example()
180
+ initialize_config_file()
181
181
  return
182
182
 
183
183
  if not os.path.exists(olca_config_file):
184
- generate_config_example()
184
+ initialize_config_file()
185
185
  return
186
186
 
187
187
  config = load_config(olca_config_file)
@@ -269,6 +269,9 @@ def main():
269
269
  else:
270
270
  tools = load_tools( selected_tools, allow_dangerous_tools=True)
271
271
 
272
+ if human_switch:
273
+ user_input = user_input + " Dont forget to USE THE HUMAN-IN-THE-LOOP TOOL"
274
+ system_instructions= system_instructions + ". Use the human-in-the-loop tool"
272
275
 
273
276
  # Define the graph
274
277
  graph = create_react_agent(model, tools=tools)
@@ -297,7 +300,7 @@ def setup_required_directories(system_instructions, user_input):
297
300
  #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
301
  ensure_directories_exist()
299
302
 
300
- def generate_config_example():
303
+ def initialize_config_file():
301
304
  try:
302
305
  default_system_instructions = "You are interacting using the human tool addressing carefully what the user is asking."
303
306
  default_user_input = "Interact with me to write a story using the 3 act structure that we will save in ./story/ - Make sure you interact with me and wont quit."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.31
3
+ Version: 0.2.32
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
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "olca"
10
- version = "0.2.31"
10
+ version = "0.2.32"
11
11
 
12
12
  description = "A Python package for experimental usage of Langchain and Human-in-the-Loop"
13
13
  readme = "README.md"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='olca',
5
- version = "0.2.31",
5
+ version = "0.2.32",
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