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.
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/PKG-INFO +1 -1
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/__init__.py +1 -1
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/agent.py +3 -2
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/PKG-INFO +1 -1
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/pyproject.toml +1 -1
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/LICENSE +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/README.md +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/chat_history.py +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager/key_manager.py +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/SOURCES.txt +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/dependency_links.txt +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/requires.txt +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/top_level.txt +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/setup.cfg +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/tests/test_agent.py +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/tests/test_chat_history.py +0 -0
- {llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/tests/test_key_manager.py +0 -0
@@ -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
|
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)
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "llm_dialog_manager"
|
7
|
-
version = "0.
|
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" }]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/requires.txt
RENAMED
File without changes
|
{llm_dialog_manager-0.2.14 → llm_dialog_manager-0.3.1}/llm_dialog_manager.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|