beswarm 0.2.21__py3-none-any.whl → 0.2.22__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.
- beswarm/tools/worker.py +2 -2
- {beswarm-0.2.21.dist-info → beswarm-0.2.22.dist-info}/METADATA +1 -1
- {beswarm-0.2.21.dist-info → beswarm-0.2.22.dist-info}/RECORD +5 -5
- {beswarm-0.2.21.dist-info → beswarm-0.2.22.dist-info}/WHEEL +0 -0
- {beswarm-0.2.21.dist-info → beswarm-0.2.22.dist-info}/top_level.txt +0 -0
beswarm/tools/worker.py
CHANGED
@@ -158,7 +158,7 @@ async def worker(goal, tools, work_dir, cache_messages=None):
|
|
158
158
|
"在 tag <work_agent_conversation_start>...</work_agent_conversation_end> 之前的对话历史都是工作智能体的对话历史。\n\n",
|
159
159
|
"根据以上对话历史和目标,请生成下一步指令。如果任务已完成,请回复'任务已完成'。\n\n",
|
160
160
|
])
|
161
|
-
if last_instruction:
|
161
|
+
if last_instruction and 'fetch_gpt_response_stream HTTP Error' not in last_instruction:
|
162
162
|
instruction_prompt = (
|
163
163
|
f"{instruction_prompt}\n\n"
|
164
164
|
"你生成的指令格式错误,必须把给assistant的指令放在<instructions>...</instructions>标签内。请重新生成格式正确的指令。"
|
@@ -358,7 +358,7 @@ async def worker_gen(goal, tools, work_dir, cache_messages=None):
|
|
358
358
|
"在 tag <work_agent_conversation_start>...</work_agent_conversation_end> 之前的对话历史都是工作智能体的对话历史。\n\n",
|
359
359
|
"根据以上对话历史和目标,请生成下一步指令。如果任务已完成,请回复'任务已完成'。\n\n",
|
360
360
|
])
|
361
|
-
if last_instruction:
|
361
|
+
if last_instruction and 'fetch_gpt_response_stream HTTP Error' not in last_instruction:
|
362
362
|
instruction_prompt = (
|
363
363
|
f"{instruction_prompt}\n\n"
|
364
364
|
"你生成的指令格式错误,必须把给assistant的指令放在<instructions>...</instructions>标签内。请重新生成格式正确的指令。"
|
@@ -135,8 +135,8 @@ beswarm/tools/screenshot.py,sha256=u6t8FCgW5YHJ_Oc4coo8e0F3wTusWE_-H8dFh1rBq9Q,1
|
|
135
135
|
beswarm/tools/search_arxiv.py,sha256=caVIUOzMhFu-r_gVgJZrH2EO9xI5iV_qLAg0b3Ie9Xg,8095
|
136
136
|
beswarm/tools/search_web.py,sha256=tLdw63doMTorrCG3ZoQkKvQPYBdx-m-SJskAXxfdim8,11958
|
137
137
|
beswarm/tools/taskmanager.py,sha256=oB_768qy6Lb58JNIcSLVgbPrgNB3duIq9DawbVHRbrg,6270
|
138
|
-
beswarm/tools/worker.py,sha256=
|
139
|
-
beswarm-0.2.
|
140
|
-
beswarm-0.2.
|
141
|
-
beswarm-0.2.
|
142
|
-
beswarm-0.2.
|
138
|
+
beswarm/tools/worker.py,sha256=Rxc8OnbqSrNeZc1ZvEPSKgFHbJnlG_fO6NF61m6f4OU,23808
|
139
|
+
beswarm-0.2.22.dist-info/METADATA,sha256=62WXG9mPgoiF0gsEpdQfzpTueuvBJIi_5W4r4uVD2yc,3847
|
140
|
+
beswarm-0.2.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
141
|
+
beswarm-0.2.22.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
142
|
+
beswarm-0.2.22.dist-info/RECORD,,
|
File without changes
|
File without changes
|