olca 0.2.7__tar.gz → 0.2.9__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.7
3
+ Version: 0.2.9
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
@@ -273,19 +273,27 @@ def main():
273
273
  print("For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT")
274
274
 
275
275
  def generate_config_example():
276
- config = {
277
- "api_keyname": input("api_keyname [OPENAI_API_KEY_olca]: ") or "OPENAI_API_KEY_olca",
278
- "model_name": input("model_name [gpt-4o-mini]: ") or "gpt-4o-mini",
279
- "recursion_limit": int(input("recursion_limit [12]: ") or 12),
280
- "temperature": float(input("temperature [0]: ") or 0),
281
- "human": input("human [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
282
- "tracing": input("tracing [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
283
- "system_instructions": input("system_instructions [Hello, I am a chatbot. How can I help you today?]: ") 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.",
284
- "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/"
285
- }
286
- with open('olca.yml', 'w') as file:
287
- yaml.dump(config, file)
288
- print("Configuration file 'olca.yml' created successfully.")
276
+ try:
277
+ config = {
278
+ "api_keyname": input("api_keyname [OPENAI_API_KEY_olca]: ") or "OPENAI_API_KEY_olca",
279
+ "model_name": input("model_name [gpt-4o-mini]: ") or "gpt-4o-mini",
280
+ "recursion_limit": int(input("recursion_limit [12]: ") or 12),
281
+ "temperature": float(input("temperature [0]: ") or 0),
282
+ "human": input("human [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
283
+ "tracing": input("tracing [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
284
+ "system_instructions": input("system_instructions [Hello, I am a chatbot. How can I help you today?]: ") 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.",
285
+ "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/"
286
+ }
287
+ with open('olca.yml', 'w') as file:
288
+ yaml.dump(config, file)
289
+ print("Configuration file 'olca.yml' created successfully.")
290
+ except KeyboardInterrupt:
291
+ print("\nConfiguration canceled by user.")
292
+ exit(0)
289
293
 
290
294
  if __name__ == "__main__":
291
- main()
295
+ try:
296
+ main()
297
+ except KeyboardInterrupt:
298
+ print("\nExiting gracefully.")
299
+ exit(0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.7
3
+ Version: 0.2.9
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.7"
10
+ version = "0.2.9"
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.7",
5
+ version = "0.2.9",
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