pycoze 0.1.399__py3-none-any.whl → 0.1.400__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.
- pycoze/bot/chat.py +2 -2
- pycoze/bot/chat_base.py +2 -2
- pycoze/bot/lib.py +2 -2
- pycoze/bot/prompt.md +1 -1
- {pycoze-0.1.399.dist-info → pycoze-0.1.400.dist-info}/METADATA +1 -1
- {pycoze-0.1.399.dist-info → pycoze-0.1.400.dist-info}/RECORD +9 -9
- {pycoze-0.1.399.dist-info → pycoze-0.1.400.dist-info}/LICENSE +0 -0
- {pycoze-0.1.399.dist-info → pycoze-0.1.400.dist-info}/WHEEL +0 -0
- {pycoze-0.1.399.dist-info → pycoze-0.1.400.dist-info}/top_level.txt +0 -0
pycoze/bot/chat.py
CHANGED
@@ -110,8 +110,8 @@ def chat(bot_setting_file: str):
|
|
110
110
|
abilities = get_abilities(bot_setting)
|
111
111
|
|
112
112
|
continuouslyRememberToolResults = bot_setting["continuouslyRememberToolResults"]
|
113
|
-
|
114
|
-
if
|
113
|
+
folder_context = bot_setting["folderContext"]
|
114
|
+
if folder_context:
|
115
115
|
cwd = bot_setting["specifiedWorkingDirectory"]
|
116
116
|
else:
|
117
117
|
cwd = tempfile.mkdtemp()
|
pycoze/bot/chat_base.py
CHANGED
@@ -40,11 +40,11 @@ def generate_user_task_prompt(conversation_history, cwd, user_input: str, bot_se
|
|
40
40
|
# 需要重新读取openedFiles和activeFile
|
41
41
|
with open(bot_setting_file, encoding="utf-8") as f:
|
42
42
|
bot_setting = json.load(f)
|
43
|
-
|
43
|
+
folder_context = bot_setting["folderContext"]
|
44
44
|
opened_files = bot_setting["openedFiles"]
|
45
45
|
active_file = bot_setting["activeFile"]
|
46
46
|
|
47
|
-
if
|
47
|
+
if folder_context:
|
48
48
|
potential_paths = guess_files_in_message(cwd, user_input)
|
49
49
|
|
50
50
|
existing_files = get_formatted_filelist_str(cwd, True, 200)
|
pycoze/bot/lib.py
CHANGED
@@ -82,7 +82,7 @@ def get_system_prompt(abilities, bot_setting):
|
|
82
82
|
"allow_search_files": False,
|
83
83
|
"allow_list_files": False,
|
84
84
|
"allow_access_webpage": False,
|
85
|
-
"
|
85
|
+
"folder_context": bot_setting["folderContext"],
|
86
86
|
}
|
87
87
|
|
88
88
|
context.update(bot_setting["systemAbility"])
|
@@ -91,7 +91,7 @@ def get_system_prompt(abilities, bot_setting):
|
|
91
91
|
if len(abilities) > 0:
|
92
92
|
has_any_tool = True
|
93
93
|
for key in bot_setting["systemAbility"]:
|
94
|
-
if key != "
|
94
|
+
if key != "folder_context" and bot_setting["systemAbility"][key] == True:
|
95
95
|
has_any_tool = True
|
96
96
|
break
|
97
97
|
|
pycoze/bot/prompt.md
CHANGED
@@ -317,7 +317,7 @@ def complete_all_tasks(result: str, command: str = None) -> None:
|
|
317
317
|
3. The values of explanatory parameters such as {% if allow_access_webpage %} "question" {% endif %} {% if allow_access_webpage and no_exit_if_incomplete %} and {% endif %} {% if no_exit_if_incomplete %} "result" and "<thinking>" {% endif %} need to be in the language used in the <task>...task content</task> by the user;
|
318
318
|
{% endif %}
|
319
319
|
4. When encountering an irreparable error, please explain to the user what specific error has been encountered.
|
320
|
-
{% if
|
320
|
+
{% if folder_context %}
|
321
321
|
5. Be thorough, precise, and thoughtful in every interaction.
|
322
322
|
6. Always explain your reasoning, offering insights into why your solution is optimal rather than just presenting json content.
|
323
323
|
7. Consider edge cases, potential impacts, and backward compatibility in your suggestions.
|
@@ -11,11 +11,11 @@ pycoze/api/lib/view.py,sha256=_PIpTfeuTPPlMDKshMGsqFQYMq7ZiO4Hg5XwHwDoU60,7357
|
|
11
11
|
pycoze/api/lib/web.py,sha256=GWgtiTJOolKOX2drXcwuyqTcbo5FQVxa1NuBGcNyjyc,223
|
12
12
|
pycoze/api/lib/window.py,sha256=dkzWfLwn5pE_L0DfQ38K8nx9tQyT5KO-GYyXi0rytFc,2073
|
13
13
|
pycoze/bot/__init__.py,sha256=rL3Q-ycczRpSFfKn84fg3QBl5k22WpyeIU5qOEjEby8,79
|
14
|
-
pycoze/bot/chat.py,sha256=
|
15
|
-
pycoze/bot/chat_base.py,sha256=
|
16
|
-
pycoze/bot/lib.py,sha256=
|
14
|
+
pycoze/bot/chat.py,sha256=qEuMxH0cVFU9QSU36FrOsjhRAxtsvOv7CQtuXvM3F6Y,6446
|
15
|
+
pycoze/bot/chat_base.py,sha256=u2TDvXwtxcboXq8zixck1A6HHgQ1kDEMXFMON--fBLM,10314
|
16
|
+
pycoze/bot/lib.py,sha256=_bQ52mKsWgFGAogFHnmRBJbvK_tPOwsAJ8NqJNMR5K4,7210
|
17
17
|
pycoze/bot/message.py,sha256=udnIi-h4QgGzkbr_5VcAsVGjoLp9wXJSfBCeuOz7_Bk,802
|
18
|
-
pycoze/bot/prompt.md,sha256=
|
18
|
+
pycoze/bot/prompt.md,sha256=qG3JlhZPXPgETOZJ6_wfTapLLfnjFiIzDjkg-4yv8ak,13761
|
19
19
|
pycoze/bot/tools.py,sha256=X5gpYbiRQZMvduhfXZy8VGYwjXGw5ndqbGHb-gXTQIE,10276
|
20
20
|
pycoze/reference/__init__.py,sha256=zgqGqvmA9HaqytEM33B6vi0kQVk8IiCwJaXa22xsFz8,114
|
21
21
|
pycoze/reference/bot.py,sha256=UZK24Qm8kpqpwXJy_zNZeTEEDee05luXdSBeUm0NCt0,2029
|
@@ -32,8 +32,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
|
|
32
32
|
pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
33
33
|
pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
|
34
34
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
35
|
-
pycoze-0.1.
|
36
|
-
pycoze-0.1.
|
37
|
-
pycoze-0.1.
|
38
|
-
pycoze-0.1.
|
39
|
-
pycoze-0.1.
|
35
|
+
pycoze-0.1.400.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
36
|
+
pycoze-0.1.400.dist-info/METADATA,sha256=VNXHtzBGWxsjIlXcjjZEnb822SVLMW_MAp29nwsyyqs,854
|
37
|
+
pycoze-0.1.400.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
38
|
+
pycoze-0.1.400.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
39
|
+
pycoze-0.1.400.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|