entari-plugin-hyw 3.2.107__py3-none-any.whl → 3.2.108__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.
- entari_plugin_hyw/core/render.py +4 -4
- entari_plugin_hyw/utils/prompts.py +3 -3
- {entari_plugin_hyw-3.2.107.dist-info → entari_plugin_hyw-3.2.108.dist-info}/METADATA +1 -1
- {entari_plugin_hyw-3.2.107.dist-info → entari_plugin_hyw-3.2.108.dist-info}/RECORD +6 -6
- {entari_plugin_hyw-3.2.107.dist-info → entari_plugin_hyw-3.2.108.dist-info}/WHEEL +0 -0
- {entari_plugin_hyw-3.2.107.dist-info → entari_plugin_hyw-3.2.108.dist-info}/top_level.txt +0 -0
entari_plugin_hyw/core/render.py
CHANGED
|
@@ -224,10 +224,10 @@ class ContentRenderer:
|
|
|
224
224
|
parts = re.split(r'(<code.*?>.*?</code>)', content_html, flags=re.DOTALL)
|
|
225
225
|
for i, part in enumerate(parts):
|
|
226
226
|
if not part.startswith('<code'):
|
|
227
|
-
# 1. Numeric Citations [1
|
|
228
|
-
part = re.sub(r'\[(\d+)\
|
|
229
|
-
# 2. Alphabetical Citations [a
|
|
230
|
-
part = re.sub(r'\[([a-zA-Z]+)\
|
|
227
|
+
# 1. Numeric Citations [references](/1) -> Blue Style (References)
|
|
228
|
+
part = re.sub(r'\[references\]\(/(\d+)\)', r'<span class="inline-flex items-center justify-center min-w-[16px] h-4 px-0.5 text-[10px] font-bold text-blue-600 bg-blue-50 border border-blue-200 rounded mx-0.5 align-top relative -top-0.5">\1</span>', part)
|
|
229
|
+
# 2. Alphabetical Citations [mcp](/a) -> Orange Style (MCP Flow)
|
|
230
|
+
part = re.sub(r'\[mcp\]\(/([a-zA-Z]+)\)', r'<span class="inline-flex items-center justify-center min-w-[16px] h-4 px-0.5 text-[10px] font-bold text-orange-600 bg-orange-50 border border-orange-200 rounded mx-0.5 align-top relative -top-0.5">\1</span>', part)
|
|
231
231
|
parts[i] = part
|
|
232
232
|
content_html = "".join(parts)
|
|
233
233
|
|
|
@@ -60,7 +60,7 @@ AGENT_SYSTEM_PROMPT_SEARCH_ADD = """
|
|
|
60
60
|
|
|
61
61
|
[最终回复]
|
|
62
62
|
- 图片: 如果本次回答适合配图, 对搜索到的图片, 选择 1-3 张合适的尽量类型、来源、不同、主题契合的图片, 美观分布嵌入正文 ``.
|
|
63
|
-
- 搜索引用: 在正文中使用 `[
|
|
63
|
+
- 搜索引用: 在正文中使用 `[references](/数字id)` 如 `[references](/1)` 标注来源, 并在文末通过 `references` 代码块列出.
|
|
64
64
|
- 你需要在最终回复底部添加 `references` 代码块.
|
|
65
65
|
|
|
66
66
|
```references
|
|
@@ -75,9 +75,9 @@ AGENT_SYSTEM_PROMPT_MCP_ADD = """
|
|
|
75
75
|
{tools_desc}
|
|
76
76
|
|
|
77
77
|
> 积极使用工具完成任务,工具优先于文本回复。
|
|
78
|
-
|
|
78
|
+
秧根扭起来,我们喜羊羊大东北是我的家乡,我就在这一个人
|
|
79
79
|
[最终回复格式]
|
|
80
|
-
- 工具引用: 在正文中使用 `[
|
|
80
|
+
- 工具引用: 在正文中使用 `[mcp](/字母顺序)` 如 `[mcp](/a)` 标注来源, 并在文末通过 `mcp` 代码块列出.
|
|
81
81
|
- 底部添加 `mcp` 代码块列出工具调用流程:
|
|
82
82
|
- 格式: `[图标] 工具名称` + 文本描述
|
|
83
83
|
- 图标: navigate, snapshot, click, type, code, wait, default
|
|
@@ -32,16 +32,16 @@ entari_plugin_hyw/core/config.py,sha256=LUP1LY0U9xfF_rzV2HxnNfJnfi929RNUZeFgbFFs
|
|
|
32
32
|
entari_plugin_hyw/core/history.py,sha256=vqp7itwR5-KaqC4Ftmq6GOz7OM9GsiFJnSN9JJ2P6L4,5894
|
|
33
33
|
entari_plugin_hyw/core/hyw.py,sha256=QwLB2YpUnzbVCWXcJF0uUeDAjxd4LWMzm9EjB9T1G1g,1671
|
|
34
34
|
entari_plugin_hyw/core/pipeline.py,sha256=nV07UxzCXLLvAYDzcxgoYTxbxcHzD-_Ym4ZluvM82xg,38673
|
|
35
|
-
entari_plugin_hyw/core/render.py,sha256=
|
|
35
|
+
entari_plugin_hyw/core/render.py,sha256=IRAgi8muKB5iUV1dan7WTzGU6x-_bVVHjlpkkdUMR4w,25857
|
|
36
36
|
entari_plugin_hyw/core/render.py.bak,sha256=qMd6Tk0p6ItqGmErR6dkWRwCuKQYXINc7KRxnP-mb_s,48768
|
|
37
37
|
entari_plugin_hyw/utils/__init__.py,sha256=2JEC3lqFoa8FgR1kUjNUbwSph23YSOxbCaqYSgFomxs,128
|
|
38
38
|
entari_plugin_hyw/utils/browser.py,sha256=Szr7oIx8My9Qnh8_bQsEm7o3iUZYk9Gamtz7kvwTNyg,2086
|
|
39
39
|
entari_plugin_hyw/utils/mcp_playwright.py,sha256=WB8LPrmfMotfX6C-4h2WxEKXypnSzQ4-poNS-lTNe7c,4680
|
|
40
40
|
entari_plugin_hyw/utils/misc.py,sha256=_7iHVYj_mJ6OGq6FU1s_cFeS1Ao-neBjZYd6eI2p95U,3482
|
|
41
41
|
entari_plugin_hyw/utils/playwright_tool.py,sha256=eSIfur64U8Z5rN0UlZK8qg3vJrGgZZHjhyIId1jSHzs,1507
|
|
42
|
-
entari_plugin_hyw/utils/prompts.py,sha256=
|
|
42
|
+
entari_plugin_hyw/utils/prompts.py,sha256=K7jePB6mDZAief2HvpD21oijHJvZonjjrIiRUsAscus,3237
|
|
43
43
|
entari_plugin_hyw/utils/search.py,sha256=v9lW18V8rAGneejAiqJ4hCiCy7mIjkRCmR4UuiBqRxY,8048
|
|
44
|
-
entari_plugin_hyw-3.2.
|
|
45
|
-
entari_plugin_hyw-3.2.
|
|
46
|
-
entari_plugin_hyw-3.2.
|
|
47
|
-
entari_plugin_hyw-3.2.
|
|
44
|
+
entari_plugin_hyw-3.2.108.dist-info/METADATA,sha256=3b-XHZSuXyM7CHqAYd1zP6KJ4yjDqepC6iPNPqCQiq0,4697
|
|
45
|
+
entari_plugin_hyw-3.2.108.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
46
|
+
entari_plugin_hyw-3.2.108.dist-info/top_level.txt,sha256=TIDsn6XPs6KA5e3ezsE65JoXsy03ejDdrB41I4SPjmo,18
|
|
47
|
+
entari_plugin_hyw-3.2.108.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|