entari-plugin-hyw 4.0.0rc4__py3-none-any.whl → 4.0.0rc6__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.

Potentially problematic release.


This version of entari-plugin-hyw might be problematic. Click here for more details.

Files changed (30) hide show
  1. entari_plugin_hyw/__init__.py +216 -75
  2. entari_plugin_hyw/assets/card-dist/index.html +70 -79
  3. entari_plugin_hyw/browser/__init__.py +10 -0
  4. entari_plugin_hyw/browser/engines/base.py +13 -0
  5. entari_plugin_hyw/browser/engines/bing.py +95 -0
  6. entari_plugin_hyw/browser/engines/duckduckgo.py +137 -0
  7. entari_plugin_hyw/browser/engines/google.py +155 -0
  8. entari_plugin_hyw/browser/landing.html +172 -0
  9. entari_plugin_hyw/browser/manager.py +153 -0
  10. entari_plugin_hyw/browser/service.py +304 -0
  11. entari_plugin_hyw/card-ui/src/App.vue +526 -182
  12. entari_plugin_hyw/card-ui/src/components/MarkdownContent.vue +7 -11
  13. entari_plugin_hyw/card-ui/src/components/StageCard.vue +33 -30
  14. entari_plugin_hyw/card-ui/src/types.ts +9 -0
  15. entari_plugin_hyw/definitions.py +155 -0
  16. entari_plugin_hyw/history.py +111 -33
  17. entari_plugin_hyw/misc.py +34 -0
  18. entari_plugin_hyw/modular_pipeline.py +384 -0
  19. entari_plugin_hyw/render_vue.py +326 -239
  20. entari_plugin_hyw/search.py +95 -708
  21. entari_plugin_hyw/stage_base.py +92 -0
  22. entari_plugin_hyw/stage_instruct.py +345 -0
  23. entari_plugin_hyw/stage_instruct_deepsearch.py +104 -0
  24. entari_plugin_hyw/stage_summary.py +164 -0
  25. {entari_plugin_hyw-4.0.0rc4.dist-info → entari_plugin_hyw-4.0.0rc6.dist-info}/METADATA +4 -4
  26. {entari_plugin_hyw-4.0.0rc4.dist-info → entari_plugin_hyw-4.0.0rc6.dist-info}/RECORD +28 -16
  27. entari_plugin_hyw/pipeline.py +0 -1219
  28. entari_plugin_hyw/prompts.py +0 -47
  29. {entari_plugin_hyw-4.0.0rc4.dist-info → entari_plugin_hyw-4.0.0rc6.dist-info}/WHEEL +0 -0
  30. {entari_plugin_hyw-4.0.0rc4.dist-info → entari_plugin_hyw-4.0.0rc6.dist-info}/top_level.txt +0 -0
@@ -1,47 +0,0 @@
1
- INSTRUCT_SP = """# 你是一个专业的指导专家.
2
-
3
- ## 核心任务
4
- - 决定预处理工具:
5
- - 用户消息包含链接: 调用 crawl_page 获取内容, 无需其他工具
6
- - 用户消息包含典型名词、可能的专有名词组合: 调用 internal_web_search
7
- - 提炼出关键词搜索关键词本身, 不添加任何其他辅助搜索词, 搜索效果最好
8
- - 用户消息不需要搜索: 不调用工具
9
- - 如果内容包含以下方向, 则调用 refuse_answer
10
- - 鉴政、涉政内容
11
- - 过于露骨的 r18+、r18g 内容
12
- - 空白内容, 无意义内容
13
- > 所有工具需要在本次对话同时调用
14
-
15
- ## 视觉理解
16
- - 如果用户提供了图片,请结合图片内容和文字问题进行判断。
17
-
18
- ## 调用工具
19
- - 使用工具时, 必须通过 function_call / tool_call 机制调用.
20
- {tools_desc}
21
-
22
- ## 你的回复
23
- 调用工具后无需回复额外文本节省 token.
24
-
25
- User: {user_msgs}
26
- """
27
-
28
- SUMMARY_SP = """# 你是一个信息整合专家 (Summary Agent).
29
- 你需要根据用户问题、搜索结果和网页详细内容,生成最终的回答。
30
-
31
- ## 过程要求
32
- - 语言: {language}, 百科式风格, 语言严谨不啰嗦.
33
- - 视觉信息: 输入中包含自动获取的网页截图,请优先分析图片中的信息作为核心参考。
34
- - 正文格式:
35
- - 先给出一个 `# `大标题约 8-10 个字, 不要有多余废话, 不要直接回答用户的提问.
36
- - 然后紧接着给出一个 <summary>...</summary>, 除了给出一个约 100 字的纯文本简介, 介绍本次输出的长文的清晰、重点概括.
37
- - 随后开始详细二级标题 + markdown 正文, 语言描绘格式丰富多样, 简洁准确可信.
38
- - 请不要给出过长的代码、表格列数等, 只讲重点和准确的数据.
39
- - 不支持渲染: 链接, 图片链接, mermaid
40
- - 支持渲染: 公式, 代码高亮, 只在需要的时候给出.
41
- - 图片链接、链接框架会自动渲染出, 你无需显式给出.
42
- - 引用:
43
- > 重要: 所有正文内容必须基于实际信息, 保证百分百真实度
44
- - 信息来源已按获取顺序编号为 [1], [2], [3]...
45
- - 正文中直接使用 [1] 格式引用, 只引用对回答有帮助的来源, 只使用官方性较强的 wiki、官方网站、资源站等等, 不使用第三方转载新闻网站.
46
- - 无需给出参考文献列表, 系统会自动生成
47
- """