llm-dialog-manager 0.2.14__tar.gz → 0.3.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (17) hide show
  1. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/PKG-INFO +1 -1
  2. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/__init__.py +1 -1
  3. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/agent.py +3 -2
  4. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/PKG-INFO +1 -1
  5. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/pyproject.toml +1 -1
  6. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/LICENSE +0 -0
  7. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/README.md +0 -0
  8. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/chat_history.py +0 -0
  9. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/key_manager.py +0 -0
  10. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/SOURCES.txt +0 -0
  11. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/dependency_links.txt +0 -0
  12. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/requires.txt +0 -0
  13. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/top_level.txt +0 -0
  14. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/setup.cfg +0 -0
  15. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/tests/test_agent.py +0 -0
  16. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/tests/test_chat_history.py +0 -0
  17. {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/tests/test_key_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llm_dialog_manager
3
- Version: 0.2.14
3
+ Version: 0.3.1
4
4
  Summary: A Python package for managing LLM chat conversation history
5
5
  Author-email: xihajun <work@2333.fun>
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
1
  from .chat_history import ChatHistory
2
2
  from .agent import Agent
3
3
 
4
- __version__ = "0.2.14"
4
+ __version__ = "0.3.1"
@@ -264,8 +264,9 @@ class Agent:
264
264
  with open(filename, 'w', encoding='utf-8') as file:
265
265
  json.dump(self.history.messages, file, ensure_ascii=False, indent=4)
266
266
 
267
- def load_conversation(self):
268
- filename = f"{self.id}.json"
267
+ def load_conversation(self, filename=None):
268
+ if filename is None:
269
+ filename = f"{self.id}.json"
269
270
  with open(filename, 'r', encoding='utf-8') as file:
270
271
  messages = json.load(file)
271
272
  self.history = ChatHistory(messages)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llm_dialog_manager
3
- Version: 0.2.14
3
+ Version: 0.3.1
4
4
  Summary: A Python package for managing LLM chat conversation history
5
5
  Author-email: xihajun <work@2333.fun>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "llm_dialog_manager"
7
- version = "0.2.14"
7
+ version = "0.3.1"
8
8
  description = "A Python package for managing LLM chat conversation history"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "xihajun", email = "work@2333.fun" }]