pycoze 0.1.383__py3-none-any.whl → 0.1.384__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 +4 -1
- pycoze/bot/chat_base.py +1 -4
- pycoze/bot/lib.py +1 -1
- {pycoze-0.1.383.dist-info → pycoze-0.1.384.dist-info}/METADATA +1 -1
- {pycoze-0.1.383.dist-info → pycoze-0.1.384.dist-info}/RECORD +8 -8
- {pycoze-0.1.383.dist-info → pycoze-0.1.384.dist-info}/LICENSE +0 -0
- {pycoze-0.1.383.dist-info → pycoze-0.1.384.dist-info}/WHEEL +0 -0
- {pycoze-0.1.383.dist-info → pycoze-0.1.384.dist-info}/top_level.txt +0 -0
pycoze/bot/chat.py
CHANGED
@@ -93,9 +93,12 @@ def chat(bot_setting_file: str):
|
|
93
93
|
with open(bot_setting_file, encoding="utf-8") as f:
|
94
94
|
bot_setting = json.load(f)
|
95
95
|
abilities = get_abilities(bot_setting)
|
96
|
+
|
96
97
|
continuouslyRememberToolResults = bot_setting["continuouslyRememberToolResults"]
|
98
|
+
programmer_mode = bot_setting["programmerMode"]
|
99
|
+
specified_working_directory =programmer_mode and bot_setting["specifiedWorkingDirectory"]
|
97
100
|
|
98
|
-
if
|
101
|
+
if specified_working_directory:
|
99
102
|
cwd = tempfile.mkdtemp()
|
100
103
|
else:
|
101
104
|
cwd = Path(bot_setting["specifiedWorkingDirectory"]).as_posix()
|
pycoze/bot/chat_base.py
CHANGED
@@ -56,9 +56,6 @@ List of files under path:
|
|
56
56
|
return f"""<task>
|
57
57
|
{user_input}
|
58
58
|
</task>
|
59
|
-
<environment_details>
|
60
|
-
Current working directory: {cwd}
|
61
|
-
</environment_details>
|
62
59
|
"""
|
63
60
|
|
64
61
|
|
@@ -143,7 +140,7 @@ async def handle_user_inputs(
|
|
143
140
|
conversation_history, user_input, cwd, abilities, has_any_tool, bot_setting
|
144
141
|
):
|
145
142
|
no_exit_if_incomplete = bot_setting["systemAbility"]["no_exit_if_incomplete"]
|
146
|
-
programmer_mode = bot_setting["
|
143
|
+
programmer_mode = bot_setting["programmerMode"]
|
147
144
|
show_tool_results = bot_setting["showToolResults"]
|
148
145
|
|
149
146
|
start_new_stream = {
|
pycoze/bot/lib.py
CHANGED
@@ -74,7 +74,6 @@ def get_system_prompt(abilities, bot_setting):
|
|
74
74
|
"system": system,
|
75
75
|
"cd_prompt": cd_prompt,
|
76
76
|
"abilities_str": abilities_str,
|
77
|
-
"programmer_mode": False,
|
78
77
|
"no_exit_if_incomplete": False,
|
79
78
|
"allow_read_file": False,
|
80
79
|
"allow_read_multiple_files": False,
|
@@ -84,6 +83,7 @@ def get_system_prompt(abilities, bot_setting):
|
|
84
83
|
"allow_search_files": False,
|
85
84
|
"allow_list_files": False,
|
86
85
|
"allow_access_webpage": False,
|
86
|
+
"programmer_mode": bot_setting["programmerMode"],
|
87
87
|
}
|
88
88
|
|
89
89
|
context.update(bot_setting["systemAbility"])
|
@@ -12,9 +12,9 @@ pycoze/api/lib/view.py,sha256=_PIpTfeuTPPlMDKshMGsqFQYMq7ZiO4Hg5XwHwDoU60,7357
|
|
12
12
|
pycoze/api/lib/web.py,sha256=GWgtiTJOolKOX2drXcwuyqTcbo5FQVxa1NuBGcNyjyc,223
|
13
13
|
pycoze/api/lib/window.py,sha256=bTkQCzQZ7i3pYXB70bUSTBNJ9C4TW_X3yMae1VkquGk,1944
|
14
14
|
pycoze/bot/__init__.py,sha256=rL3Q-ycczRpSFfKn84fg3QBl5k22WpyeIU5qOEjEby8,79
|
15
|
-
pycoze/bot/chat.py,sha256=
|
16
|
-
pycoze/bot/chat_base.py,sha256=
|
17
|
-
pycoze/bot/lib.py,sha256=
|
15
|
+
pycoze/bot/chat.py,sha256=XcDOq5fCpWUbg6bKrRLonh9ceEUb0c88B44eK54pHo8,5930
|
16
|
+
pycoze/bot/chat_base.py,sha256=cvwGmk8CfmaMPegWEPFzYSI8f2GojHugNp7-VlpGAv4,9618
|
17
|
+
pycoze/bot/lib.py,sha256=wr8omzBtTwj63PrrN6SaNM0HDPPQGGTag4KkG6rixq4,7248
|
18
18
|
pycoze/bot/message.py,sha256=udnIi-h4QgGzkbr_5VcAsVGjoLp9wXJSfBCeuOz7_Bk,802
|
19
19
|
pycoze/bot/prompt.md,sha256=OBxwUY6yiwEmusnUHhwixWYByrWX3BpwfxG_Gfas8UM,15783
|
20
20
|
pycoze/bot/tools.py,sha256=Pet8QbJ2E-qvoIEZ61-IZSOkjTi9elwSB5-2pAQmrZM,10311
|
@@ -33,8 +33,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
|
|
33
33
|
pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
34
34
|
pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
|
35
35
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
36
|
-
pycoze-0.1.
|
37
|
-
pycoze-0.1.
|
38
|
-
pycoze-0.1.
|
39
|
-
pycoze-0.1.
|
40
|
-
pycoze-0.1.
|
36
|
+
pycoze-0.1.384.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
37
|
+
pycoze-0.1.384.dist-info/METADATA,sha256=YdZUKjFTsnWbiNbcFfiRN9ZjgZ2OpegaTEMbytoEX7I,854
|
38
|
+
pycoze-0.1.384.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
39
|
+
pycoze-0.1.384.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
40
|
+
pycoze-0.1.384.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|