olca 0.2.6__py3-none-any.whl → 0.2.8__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
@@ -214,7 +214,8 @@ def main():
214
214
 
215
215
  system_instructions = config.get('system_instructions', '')
216
216
  user_input = config.get('user_input', '')
217
- model_name=config.get('model_name', "gpt-4o-mini")
217
+ default_model_id = "gpt-4o-mini"
218
+ model_name=config.get('model_name', default_model_id)
218
219
  recursion_limit=config.get('recursion_limit', 15)
219
220
  disable_system_append = _parse_args().disable_system_append
220
221
 
@@ -279,12 +280,16 @@ def generate_config_example():
279
280
  "temperature": float(input("temperature [0]: ") or 0),
280
281
  "human": input("human [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
281
282
  "tracing": input("tracing [true]: ").lower() in ["true", "yes", "y", "1", ""] or True,
282
- "system_instructions": input("system_instructions [Hello, I am a chatbot. How can I help you today?]: ") or "Hello, I am a chatbot. How can I help you today?",
283
- "user_input": input("user_input [What is the weather in NYC?]: ") or "What is the weather in NYC?"
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/"
284
285
  }
285
286
  with open('olca.yml', 'w') as file:
286
287
  yaml.dump(config, file)
287
288
  print("Configuration file 'olca.yml' created successfully.")
288
289
 
289
290
  if __name__ == "__main__":
290
- main()
291
+ try:
292
+ main()
293
+ except KeyboardInterrupt:
294
+ print("\nExiting gracefully.")
295
+ exit(0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: olca
3
- Version: 0.2.6
3
+ Version: 0.2.8
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
@@ -363,6 +363,7 @@ Requires-Dist: langchain
363
363
  Requires-Dist: langchain-openai
364
364
  Requires-Dist: langchain-experimental
365
365
  Requires-Dist: click
366
+ Requires-Dist: langgraph
366
367
 
367
368
  # oLCa
368
369
 
@@ -0,0 +1,8 @@
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,,
@@ -1,8 +0,0 @@
1
- olca/__init__.py,sha256=3QyLLAys_KiiDIe-cfO_7QyY7di_qCaCS-sVziW2BOw,23
2
- olca/olcacli.py,sha256=NRDqKX9y9GU-JG3o2jEITYAo-TCODsO2ga5p2x8JbyU,11522
3
- olca-0.2.6.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
4
- olca-0.2.6.dist-info/METADATA,sha256=vWkQb6pJ_kQFKc48_8jM675KXF-WzTfH0zR8Q7Dw8JA,21987
5
- olca-0.2.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
6
- olca-0.2.6.dist-info/entry_points.txt,sha256=XwHDvSB6qlO1oIEtLCwrVJoVV91S405JL_iXl0G211A,44
7
- olca-0.2.6.dist-info/top_level.txt,sha256=bGDtAReS-xlS0F6MM-DyD0IQUqjNdWmgemnM3vNtrpI,5
8
- olca-0.2.6.dist-info/RECORD,,
File without changes
File without changes