entari-plugin-hyw 4.0.0rc13__tar.gz

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 (78) hide show
  1. entari_plugin_hyw-4.0.0rc13/MANIFEST.in +3 -0
  2. entari_plugin_hyw-4.0.0rc13/PKG-INFO +118 -0
  3. entari_plugin_hyw-4.0.0rc13/README.md +87 -0
  4. entari_plugin_hyw-4.0.0rc13/pyproject.toml +53 -0
  5. entari_plugin_hyw-4.0.0rc13/setup.cfg +4 -0
  6. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw/Untitled-1 +1865 -0
  7. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw/__init__.py +1005 -0
  8. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw/filters.py +83 -0
  9. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw/history.py +251 -0
  10. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw/misc.py +214 -0
  11. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw/search_cache.py +154 -0
  12. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw.egg-info/PKG-INFO +118 -0
  13. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw.egg-info/SOURCES.txt +76 -0
  14. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw.egg-info/dependency_links.txt +1 -0
  15. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw.egg-info/requires.txt +13 -0
  16. entari_plugin_hyw-4.0.0rc13/src/entari_plugin_hyw.egg-info/top_level.txt +2 -0
  17. entari_plugin_hyw-4.0.0rc13/src/hyw_core/__init__.py +94 -0
  18. entari_plugin_hyw-4.0.0rc13/src/hyw_core/agent.py +705 -0
  19. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/__init__.py +63 -0
  20. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/index.html +425 -0
  21. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/anthropic.svg +1 -0
  22. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/cerebras.svg +9 -0
  23. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/deepseek.png +0 -0
  24. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/gemini.svg +1 -0
  25. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/google.svg +1 -0
  26. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/grok.png +0 -0
  27. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/huggingface.png +0 -0
  28. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/microsoft.svg +15 -0
  29. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/minimax.png +0 -0
  30. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/mistral.png +0 -0
  31. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/nvida.png +0 -0
  32. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/openai.svg +1 -0
  33. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/openrouter.png +0 -0
  34. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/perplexity.svg +24 -0
  35. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/qwen.png +0 -0
  36. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/xai.png +0 -0
  37. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/xiaomi.png +0 -0
  38. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/logos/zai.png +0 -0
  39. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/card-dist/vite.svg +1 -0
  40. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/index.html +5691 -0
  41. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/anthropic.svg +1 -0
  42. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/cerebras.svg +9 -0
  43. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/deepseek.png +0 -0
  44. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/gemini.svg +1 -0
  45. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/google.svg +1 -0
  46. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/grok.png +0 -0
  47. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/huggingface.png +0 -0
  48. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/microsoft.svg +15 -0
  49. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/minimax.png +0 -0
  50. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/mistral.png +0 -0
  51. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/nvida.png +0 -0
  52. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/openai.svg +1 -0
  53. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/openrouter.png +0 -0
  54. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/perplexity.svg +24 -0
  55. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/qwen.png +0 -0
  56. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/xai.png +0 -0
  57. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/xiaomi.png +0 -0
  58. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/assets/logos/zai.png +0 -0
  59. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/engines/__init__.py +15 -0
  60. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/engines/base.py +13 -0
  61. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/engines/default.py +166 -0
  62. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/engines/duckduckgo.py +171 -0
  63. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/landing.html +172 -0
  64. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/manager.py +173 -0
  65. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/renderer.py +446 -0
  66. entari_plugin_hyw-4.0.0rc13/src/hyw_core/browser_control/service.py +940 -0
  67. entari_plugin_hyw-4.0.0rc13/src/hyw_core/config.py +154 -0
  68. entari_plugin_hyw-4.0.0rc13/src/hyw_core/core.py +462 -0
  69. entari_plugin_hyw-4.0.0rc13/src/hyw_core/crawling/__init__.py +18 -0
  70. entari_plugin_hyw-4.0.0rc13/src/hyw_core/crawling/completeness.py +437 -0
  71. entari_plugin_hyw-4.0.0rc13/src/hyw_core/crawling/models.py +88 -0
  72. entari_plugin_hyw-4.0.0rc13/src/hyw_core/definitions.py +104 -0
  73. entari_plugin_hyw-4.0.0rc13/src/hyw_core/image_cache.py +274 -0
  74. entari_plugin_hyw-4.0.0rc13/src/hyw_core/pipeline.py +502 -0
  75. entari_plugin_hyw-4.0.0rc13/src/hyw_core/search.py +171 -0
  76. entari_plugin_hyw-4.0.0rc13/src/hyw_core/stages/__init__.py +21 -0
  77. entari_plugin_hyw-4.0.0rc13/src/hyw_core/stages/base.py +95 -0
  78. entari_plugin_hyw-4.0.0rc13/src/hyw_core/stages/summary.py +191 -0
@@ -0,0 +1,3 @@
1
+ recursive-include src/entari_plugin_hyw *
2
+ global-exclude *.pyc
3
+ global-exclude __pycache__
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: entari_plugin_hyw
3
+ Version: 4.0.0rc13
4
+ Summary: Use large language models to interpret chat messages
5
+ Author-email: kumoSleeping <zjr2992@outlook.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/kumoSleeping/entari-plugin-hyw
8
+ Project-URL: Repository, https://github.com/kumoSleeping/entari-plugin-hyw
9
+ Project-URL: Issue Tracker, https://github.com/kumoSleeping/entari-plugin-hyw/issues
10
+ Keywords: entari,llm,ai,bot,chat
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Requires-Python: <3.13,>=3.10
18
+ Description-Content-Type: text/markdown
19
+ Requires-Dist: arclet-entari[full]>=0.16.5
20
+ Requires-Dist: openai
21
+ Requires-Dist: httpx
22
+ Requires-Dist: markdown>=3.10
23
+ Requires-Dist: DrissionPage>=4.1.1.2
24
+ Requires-Dist: trafilatura>=1.6.0
25
+ Requires-Dist: json-repair>=0.55.0
26
+ Provides-Extra: dev
27
+ Requires-Dist: entari-plugin-server>=0.5.0; extra == "dev"
28
+ Requires-Dist: satori-python-adapter-onebot11>=0.2.5; extra == "dev"
29
+ Requires-Dist: noneprompt; extra == "dev"
30
+ Requires-Dist: rich; extra == "dev"
31
+
32
+ # Entari Plugin HYW
33
+
34
+ [![PyPI version](https://badge.fury.io/py/entari-plugin-hyw.svg)](https://badge.fury.io/py/entari-plugin-hyw)
35
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
36
+ [![Python Versions](https://img.shields.io/pypi/pyversions/entari-plugin-hyw.svg)](https://pypi.org/project/entari-plugin-hyw/)
37
+
38
+ **English** | [įŽ€äŊ“中文](docs/README_CN.md)
39
+
40
+ **Entari Plugin HYW** is an advanced agentic chat plugin for the [Entari](https://github.com/entari-org/entari) framework. It leverages Large Language Models (LLMs) to provide intelligent, context-aware, and multi-modal responses within instant messaging environments (OneBot 11, Satori).
41
+
42
+ The plugin implements a three-stage pipeline (**Vision**, **Instruct**, **Agent**) to autonomously decide when to search the web, crawl pages, or analyze images to answer user queries effectively.
43
+
44
+ <p align="center">
45
+ <img src="docs/demo_mockup.svg" width="800" />
46
+ </p>
47
+
48
+ ## Features
49
+
50
+ - 📖 **Agentic Workflow**
51
+ Autonomous decision-making process to search, browse, and reason.
52
+
53
+ - 🎑 **Multi-Modal Support**
54
+ Native support for image analysis using Vision Language Models (VLMs).
55
+
56
+ - 🔍 **Web Search & Crawling**
57
+ Integrated **DuckDuckGo** and **Crawl4AI** for real-time information retrieval.
58
+
59
+ - 🎨 **Rich Rendering**
60
+ Responses are rendered as images containing Markdown, syntax-highlighted code, LaTeX math, and citation badges.
61
+
62
+ - 🔌 **Protocol Support**
63
+ Deep integration with OneBot 11 and Satori protocols, handling reply context and JSON cards perfectly.
64
+
65
+ ## Installation
66
+
67
+ ```bash
68
+ pip install entari-plugin-hyw
69
+ ```
70
+
71
+ ## Configuration
72
+
73
+ Configure the plugin in your `entari.yml`.
74
+
75
+ ### Minimal Configuration
76
+
77
+ ```yaml
78
+ plugins:
79
+ entari_plugin_hyw:
80
+ model_name: google/gemini-2.0-flash-exp
81
+ api_key: "your-or-api-key-here"
82
+ # Rendering Configuration
83
+ render_timeout_ms: 6000 # Browser wait timeout
84
+ render_image_timeout_ms: 3000 # Image load wait timeout
85
+ ```
86
+
87
+ ## Usage
88
+
89
+ ### Commands
90
+
91
+ - **Text Query**
92
+ ```text
93
+ /q What's the latest news on Rust 1.83?
94
+ ```
95
+
96
+ - **Image Analysis**
97
+ *(Send an image with command, or reply to an image)*
98
+ ```text
99
+ /q [Image] Explain this error.
100
+ ```
101
+ - **Quote Query**
102
+ ```text
103
+ [quote: User Message] /q
104
+ ```
105
+
106
+ - **Follow-up**
107
+ *Reply to the bot's message to continue the conversation.*
108
+
109
+ ## Documentation for AI/LLMs
110
+
111
+ - [Instruction Guide (English)](docs/README_LLM_EN.md)
112
+ - [指å¯ŧ手册 (įŽ€äŊ“中文)](docs/README_LLM_CN.md)
113
+
114
+ ---
115
+
116
+ ## License
117
+
118
+ This project is licensed under the MIT License.
@@ -0,0 +1,87 @@
1
+ # Entari Plugin HYW
2
+
3
+ [![PyPI version](https://badge.fury.io/py/entari-plugin-hyw.svg)](https://badge.fury.io/py/entari-plugin-hyw)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![Python Versions](https://img.shields.io/pypi/pyversions/entari-plugin-hyw.svg)](https://pypi.org/project/entari-plugin-hyw/)
6
+
7
+ **English** | [įŽ€äŊ“中文](docs/README_CN.md)
8
+
9
+ **Entari Plugin HYW** is an advanced agentic chat plugin for the [Entari](https://github.com/entari-org/entari) framework. It leverages Large Language Models (LLMs) to provide intelligent, context-aware, and multi-modal responses within instant messaging environments (OneBot 11, Satori).
10
+
11
+ The plugin implements a three-stage pipeline (**Vision**, **Instruct**, **Agent**) to autonomously decide when to search the web, crawl pages, or analyze images to answer user queries effectively.
12
+
13
+ <p align="center">
14
+ <img src="docs/demo_mockup.svg" width="800" />
15
+ </p>
16
+
17
+ ## Features
18
+
19
+ - 📖 **Agentic Workflow**
20
+ Autonomous decision-making process to search, browse, and reason.
21
+
22
+ - 🎑 **Multi-Modal Support**
23
+ Native support for image analysis using Vision Language Models (VLMs).
24
+
25
+ - 🔍 **Web Search & Crawling**
26
+ Integrated **DuckDuckGo** and **Crawl4AI** for real-time information retrieval.
27
+
28
+ - 🎨 **Rich Rendering**
29
+ Responses are rendered as images containing Markdown, syntax-highlighted code, LaTeX math, and citation badges.
30
+
31
+ - 🔌 **Protocol Support**
32
+ Deep integration with OneBot 11 and Satori protocols, handling reply context and JSON cards perfectly.
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ pip install entari-plugin-hyw
38
+ ```
39
+
40
+ ## Configuration
41
+
42
+ Configure the plugin in your `entari.yml`.
43
+
44
+ ### Minimal Configuration
45
+
46
+ ```yaml
47
+ plugins:
48
+ entari_plugin_hyw:
49
+ model_name: google/gemini-2.0-flash-exp
50
+ api_key: "your-or-api-key-here"
51
+ # Rendering Configuration
52
+ render_timeout_ms: 6000 # Browser wait timeout
53
+ render_image_timeout_ms: 3000 # Image load wait timeout
54
+ ```
55
+
56
+ ## Usage
57
+
58
+ ### Commands
59
+
60
+ - **Text Query**
61
+ ```text
62
+ /q What's the latest news on Rust 1.83?
63
+ ```
64
+
65
+ - **Image Analysis**
66
+ *(Send an image with command, or reply to an image)*
67
+ ```text
68
+ /q [Image] Explain this error.
69
+ ```
70
+ - **Quote Query**
71
+ ```text
72
+ [quote: User Message] /q
73
+ ```
74
+
75
+ - **Follow-up**
76
+ *Reply to the bot's message to continue the conversation.*
77
+
78
+ ## Documentation for AI/LLMs
79
+
80
+ - [Instruction Guide (English)](docs/README_LLM_EN.md)
81
+ - [指å¯ŧ手册 (įŽ€äŊ“中文)](docs/README_LLM_CN.md)
82
+
83
+ ---
84
+
85
+ ## License
86
+
87
+ This project is licensed under the MIT License.
@@ -0,0 +1,53 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "entari_plugin_hyw"
7
+ version = "4.0.0-rc13"
8
+ description = "Use large language models to interpret chat messages"
9
+ authors = [{name = "kumoSleeping", email = "zjr2992@outlook.com"}]
10
+ dependencies = [
11
+ "arclet-entari[full]>=0.16.5",
12
+ "openai",
13
+ "httpx",
14
+ "markdown>=3.10",
15
+ "DrissionPage>=4.1.1.2",
16
+ "trafilatura>=1.6.0",
17
+ "json-repair>=0.55.0",
18
+ ]
19
+ requires-python = ">=3.10,<3.13"
20
+ readme = "README.md"
21
+ license = {text = "MIT"}
22
+ keywords = ["entari", "llm", "ai", "bot", "chat"]
23
+ classifiers = [
24
+ "Development Status :: 3 - Alpha",
25
+ "Intended Audience :: Developers",
26
+ "License :: OSI Approved :: MIT License",
27
+ "Programming Language :: Python :: 3.10",
28
+ "Programming Language :: Python :: 3.11",
29
+ "Programming Language :: Python :: 3.12",
30
+ ]
31
+
32
+ [project.optional-dependencies]
33
+ dev = [
34
+ "entari-plugin-server>=0.5.0",
35
+ "satori-python-adapter-onebot11>=0.2.5",
36
+ "noneprompt",
37
+ "rich",
38
+ ]
39
+
40
+ [project.urls]
41
+ Homepage = "https://github.com/kumoSleeping/entari-plugin-hyw"
42
+ Repository = "https://github.com/kumoSleeping/entari-plugin-hyw"
43
+ "Issue Tracker" = "https://github.com/kumoSleeping/entari-plugin-hyw/issues"
44
+
45
+ [tool.setuptools]
46
+ include-package-data = true
47
+
48
+ [tool.setuptools.packages.find]
49
+ where = ["src"]
50
+ include = ["entari_plugin_hyw*", "hyw_core*"]
51
+
52
+ [tool.setuptools.package-data]
53
+ "hyw_core.browser_control" = ["assets/**/*", "landing.html"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+