pycoze 0.1.441__py3-none-any.whl → 0.1.443__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/lib.py +1 -0
- pycoze/bot/prompt.md +4 -0
- pycoze/reference/tool.py +3 -1
- pycoze/reference/workflow.py +1 -1
- {pycoze-0.1.441.dist-info → pycoze-0.1.443.dist-info}/METADATA +1 -1
- {pycoze-0.1.441.dist-info → pycoze-0.1.443.dist-info}/RECORD +9 -9
- {pycoze-0.1.441.dist-info → pycoze-0.1.443.dist-info}/LICENSE +0 -0
- {pycoze-0.1.441.dist-info → pycoze-0.1.443.dist-info}/WHEEL +0 -0
- {pycoze-0.1.441.dist-info → pycoze-0.1.443.dist-info}/top_level.txt +0 -0
pycoze/bot/lib.py
CHANGED
pycoze/bot/prompt.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
{{ prompt }}
|
2
2
|
|
3
|
+
{% if use_draft %}
|
4
|
+
Think step by step, but only keep a minimum draft for each thinking step, with 5 words at most. Return the answer at the end of the response after a separator ####.
|
5
|
+
{% endif %}
|
6
|
+
|
3
7
|
{% if has_any_tool %}
|
4
8
|
==== Tool Usage
|
5
9
|
You have access to a set of tools running on the {{ system }} system that are executed upon user approval. Only one tool can be used per message, and you will receive the result of the tool's execution in the user's response. You progressively use these tools to accomplish tasks, with each tool's usage being based on the outcome of the previous tool.
|
pycoze/reference/tool.py
CHANGED
@@ -21,7 +21,7 @@ def ref_tools(tool_id, workspace_path=None):
|
|
21
21
|
try:
|
22
22
|
with ModuleManager(module_path) as manager:
|
23
23
|
module = importlib.import_module("tool")
|
24
|
-
export_tools = getattr(module, "
|
24
|
+
export_tools = getattr(module, "__all__")
|
25
25
|
|
26
26
|
except Exception as e:
|
27
27
|
print(f"Error loading tool {tool_id}: {e}")
|
@@ -35,3 +35,5 @@ def ref_tools(tool_id, workspace_path=None):
|
|
35
35
|
ret_export_tools.append(tool)
|
36
36
|
|
37
37
|
return ret_export_tools
|
38
|
+
|
39
|
+
|
pycoze/reference/workflow.py
CHANGED
@@ -21,7 +21,7 @@ def _ref_workflows(workflow_id, workspace_path=None):
|
|
21
21
|
try:
|
22
22
|
with ModuleManager(module_path) as manager:
|
23
23
|
module = importlib.import_module("tool")
|
24
|
-
export_tools = getattr(module, "
|
24
|
+
export_tools = getattr(module, "__all__")
|
25
25
|
|
26
26
|
except Exception as e:
|
27
27
|
print(f"Error loading workflow {workflow_id}: {e}")
|
@@ -12,15 +12,15 @@ pycoze/api/lib/window.py,sha256=dkzWfLwn5pE_L0DfQ38K8nx9tQyT5KO-GYyXi0rytFc,2073
|
|
12
12
|
pycoze/bot/__init__.py,sha256=rL3Q-ycczRpSFfKn84fg3QBl5k22WpyeIU5qOEjEby8,79
|
13
13
|
pycoze/bot/chat.py,sha256=bScsMc0hGh2NlvhQxzWEbnA_WXU9JdAJv-rx27SpEB8,6554
|
14
14
|
pycoze/bot/chat_base.py,sha256=I_QOB22Ud1HpBDg8kip9AW4stGbbLOrKpZPSMCHEMAE,12567
|
15
|
-
pycoze/bot/lib.py,sha256=
|
15
|
+
pycoze/bot/lib.py,sha256=RivPA2f5fqzqbW6jL0sx9X9pwgFPxwkk8lt62CWvaZo,7255
|
16
16
|
pycoze/bot/message.py,sha256=udnIi-h4QgGzkbr_5VcAsVGjoLp9wXJSfBCeuOz7_Bk,802
|
17
|
-
pycoze/bot/prompt.md,sha256=
|
17
|
+
pycoze/bot/prompt.md,sha256=UtwZ31wFvNtvM9ZTA4BU2yT1Rb-qnUdU3Ny1O37Tt3Q,14077
|
18
18
|
pycoze/bot/tools.py,sha256=BWMdwvqLzvcyaW38lzxUWtc0K1V-C_qPSEZ3OKlAQvU,11108
|
19
19
|
pycoze/reference/__init__.py,sha256=zgqGqvmA9HaqytEM33B6vi0kQVk8IiCwJaXa22xsFz8,114
|
20
20
|
pycoze/reference/bot.py,sha256=UZK24Qm8kpqpwXJy_zNZeTEEDee05luXdSBeUm0NCt0,2029
|
21
21
|
pycoze/reference/lib.py,sha256=T-oBOKxkus5dTouc0oDgfRzUyi6aTyY-FF4yX7SzF5M,3755
|
22
|
-
pycoze/reference/tool.py,sha256=
|
23
|
-
pycoze/reference/workflow.py,sha256=
|
22
|
+
pycoze/reference/tool.py,sha256=kv5Ww8fZVECNJfE7Ku5M88jqHgSO0yTF0S6eijQu9KE,1104
|
23
|
+
pycoze/reference/workflow.py,sha256=59teXvIM_kOa-rJMLudJaJb9FBumYEmOzMT5jifKqDY,1337
|
24
24
|
pycoze/ui/__init__.py,sha256=uaXet23wUk64TcZjpBX8qOx4aUhwA_ucrmcxy7Q4Qr4,929
|
25
25
|
pycoze/ui/base.py,sha256=7drlRZ40zF1nwGIRwLTC3EuZOSENz2qhQEWUM5yd9cg,1081
|
26
26
|
pycoze/ui/color.py,sha256=cT9Ib8uNzkOKxyW0IwVj46o4LwdB1xgNCj1_Rou9d_4,854
|
@@ -31,8 +31,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
|
|
31
31
|
pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
|
32
32
|
pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
|
33
33
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
34
|
-
pycoze-0.1.
|
35
|
-
pycoze-0.1.
|
36
|
-
pycoze-0.1.
|
37
|
-
pycoze-0.1.
|
38
|
-
pycoze-0.1.
|
34
|
+
pycoze-0.1.443.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
35
|
+
pycoze-0.1.443.dist-info/METADATA,sha256=7i8XAdzc7dMY18ubEbrFL_kumLnjLHAN3ZsP2faXoDk,854
|
36
|
+
pycoze-0.1.443.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
37
|
+
pycoze-0.1.443.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
38
|
+
pycoze-0.1.443.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|