beswarm 0.2.22__py3-none-any.whl → 0.2.24__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/prompt.py CHANGED
@@ -85,6 +85,7 @@ Always adhere to this format for all tool uses to ensure proper parsing and exec
85
85
  1. You must use the exact name field of the tool as the top-level XML tag. For example, if the tool name is "read_file", you must use <read_file> as the tag, not any other variant or self-created tag.
86
86
  2. It is prohibited to use any self-created tags that are not tool names as top-level tags.
87
87
  3. XML tags are case-sensitive, ensure they match the tool name exactly.
88
+ 4. For tools that take no arguments, you must use a full open/close tag pair (e.g., `<actual_tool_name_here></actual_tool_name_here>`). Self-closing tags (e.g., `<actual_tool_name_here/>`) are invalid and must not be used.
88
89
  </instructions for tool use>
89
90
 
90
91
  You can use tools as follows:
beswarm/tools/worker.py CHANGED
@@ -38,11 +38,12 @@ def create_task(goal, tools, work_dir):
38
38
  启动一个子任务来自动完成指定的任务目标 (`goal`)。
39
39
 
40
40
  这个子任务接收一个清晰的任务描述、一组可供调用的工具 (`tools`),以及一个工作目录 (`work_dir`)。
41
- 它会利用语言模型的能力,结合可用的工具,自主规划并逐步执行必要的操作,直到最终完成指定的任务目标。
41
+ 它会结合可用的工具,自主规划并逐步执行必要的操作,直到最终完成指定的任务目标。
42
42
  核心功能是根据输入的目标,驱动整个任务执行流程。
43
+ 子任务下上文为空,因此需要细致的背景信息。
43
44
 
44
45
  Args:
45
- goal (str): 需要完成的具体任务目标描述。子任务将围绕此目标进行工作。必须清晰、具体。
46
+ goal (str): 需要完成的具体任务目标描述。子任务将围绕此目标进行工作。必须清晰、具体。必须包含背景信息,完成指标等。写清楚什么时候算任务完成,同时交代清楚任务的背景信息,这个背景信息可以是需要读取的文件等一切有助于完成任务的信息。
46
47
  tools (list[str]): 一个包含可用工具函数对象的列表。子任务在执行任务时可能会调用这些工具来与环境交互(例如读写文件、执行命令等)。
47
48
  work_dir (str): 工作目录的绝对路径。子任务将在此目录上下文中执行操作。子任务的工作目录位置在主任务的工作目录的子目录。
48
49
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beswarm
3
- Version: 0.2.22
3
+ Version: 0.2.24
4
4
  Summary: MAS
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -1,5 +1,5 @@
1
1
  beswarm/__init__.py,sha256=HZjUOJtZR5QhMuDbq-wukQQn1VrBusNWai_ysGo-VVI,20
2
- beswarm/prompt.py,sha256=_hYKZ0MUiMRs3C-1PMlFKIVgTKFcp_irla3p3wQNF3c,32015
2
+ beswarm/prompt.py,sha256=5JMfOuXWHscsaeDzwBn223mj9N85eAQdOHXQZk7zeWE,32238
3
3
  beswarm/utils.py,sha256=xxbNifOPlfcVkKmF_qFzuEnZgF3MQg3mnOfz1EF0Qss,6697
4
4
  beswarm/aient/main.py,sha256=SiYAIgQlLJqYusnTVEJOx1WNkSJKMImhgn5aWjfroxg,3814
5
5
  beswarm/aient/setup.py,sha256=TTd2yaKXQpCf2v-b35OeJhLMXEJ-QRkhO48wTq7edKk,487
@@ -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=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,,
138
+ beswarm/tools/worker.py,sha256=Vwn1XuTZ2dIStd5dQ6DhJ4f7LmwDc-Sx9PwLG0Xw-MQ,24062
139
+ beswarm-0.2.24.dist-info/METADATA,sha256=PbLmlEKhy1mc1phhuG61O-XtynVlNWpG0y0NKB9Szho,3847
140
+ beswarm-0.2.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
141
+ beswarm-0.2.24.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
142
+ beswarm-0.2.24.dist-info/RECORD,,