olca 0.2.8__py3-none-any.whl → 0.2.10__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 CHANGED
@@ -273,19 +273,23 @@ 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]: ") or "OPENAI_API_KEY",
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
295
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.8
3
+ Version: 0.2.10
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
@@ -0,0 +1,8 @@
1
+ olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
2
+ olca/olcacli.py,sha256=B3uZcl_873zBy4vmXmcyN6Z8ofQA-anzX2aLuvUTSpk,12281
3
+ olca-0.2.10.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
4
+ olca-0.2.10.dist-info/METADATA,sha256=JKm1ryzvJZnoPLKK0u1jyLOUs1FbgCJhTVUJzPhCwQs,22013
5
+ olca-0.2.10.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
6
+ olca-0.2.10.dist-info/entry_points.txt,sha256=XwHDvSB6qlO1oIEtLCwrVJoVV91S405JL_iXl0G211A,44
7
+ olca-0.2.10.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
8
+ olca-0.2.10.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
2
- olca/olcacli.py,sha256=hVwGjf2gktIMq1baDbI_KStsUV_jYS0P3lSdl9CsU40,12133
3
- olca-0.2.8.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
4
- olca-0.2.8.dist-info/METADATA,sha256=gguKgCUL3SqLNxno_mTBKPKruqDu7XPpnMSP92zLJ6k,22012
5
- olca-0.2.8.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
6
- olca-0.2.8.dist-info/entry_points.txt,sha256=XwHDvSB6qlO1oIEtLCwrVJoVV91S405JL_iXl0G211A,44
7
- olca-0.2.8.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
8
- olca-0.2.8.dist-info/RECORD,,
File without changes
File without changes