entari-plugin-hyw 3.3.4__py3-none-any.whl → 3.3.5__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.

@@ -18,6 +18,7 @@ class HYWConfig:
18
18
  search_base_url: str = "https://lite.duckduckgo.com/lite/?q={query}"
19
19
  image_search_base_url: str = "https://duckduckgo.com/?q={query}&iax=images&ia=images"
20
20
  search_params: Optional[str] = None # e.g. "&kl=cn-zh" for China region
21
+ search_limit: int = 8
21
22
  extra_body: Optional[Dict[str, Any]] = None
22
23
  temperature: float = 0.4
23
24
  max_turns: int = 10
@@ -62,6 +62,7 @@ AGENT_SP = """# 你是一个 Agent 总控专家, 你需要理解用户意图,
62
62
  - 工具引用:
63
63
  - 搜索摘要引用: 使用 `search:数字id` 如 `search:3`
64
64
  - 页面内容引用: 使用 `page:数字id` 如 `page:5`
65
+ - 图片内容不引用
65
66
  - 每个引用必须分开标注
66
67
  - 在正文底部添加 references 代码块:
67
68
  - 用不到的条目不写, 没有专家给信息就不写.
@@ -33,7 +33,7 @@ class SearchService:
33
33
  """
34
34
  def __init__(self, config: Any):
35
35
  self.config = config
36
- self._default_limit = 8
36
+ self._default_limit = getattr(config, "search_limit", 8)
37
37
  self._crawler: Optional[AsyncWebCrawler] = None
38
38
 
39
39
  def _build_search_url(self, query: str) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: entari_plugin_hyw
3
- Version: 3.3.4
3
+ Version: 3.3.5
4
4
  Summary: Use large language models to interpret chat messages
5
5
  Author-email: kumoSleeping <zjr2992@outlook.com>
6
6
  License: MIT
@@ -28,7 +28,7 @@ entari_plugin_hyw/assets/libs/katex.css,sha256=UF1fgpAiu3tPJN_uCqEUHNe7pnr-QR0SQ
28
28
  entari_plugin_hyw/assets/libs/katex.js,sha256=3ISyluw-iE3gkxWPdg_Z1Ftser5YtTgVV_ThOPRqWK4,277038
29
29
  entari_plugin_hyw/assets/libs/tailwind.css,sha256=QlYLtFooDB4H5-2bxuS8DJD5L1_cZgjEQnrYvUXVFnI,19889
30
30
  entari_plugin_hyw/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- entari_plugin_hyw/core/config.py,sha256=onodNERVzpjZBhi8_asyO38T0Yfxr7rHL-sEdTAwepQ,1607
31
+ entari_plugin_hyw/core/config.py,sha256=ph9-_hDLaemyh9Hx5A44POhoRh8-gwNhUxXieaCPYu8,1634
32
32
  entari_plugin_hyw/core/history.py,sha256=vqp7itwR5-KaqC4Ftmq6GOz7OM9GsiFJnSN9JJ2P6L4,5894
33
33
  entari_plugin_hyw/core/hyw.py,sha256=RCRjV9uYmvXysiliztphLP3VyUabrf0LY2Bk66W5JGA,1927
34
34
  entari_plugin_hyw/core/pipeline.py,sha256=kejGXClgE9o7G6p7Kc3Kgh-AJYQqN7tA-Z3I5U3iuJU,48356
@@ -38,9 +38,9 @@ entari_plugin_hyw/utils/__init__.py,sha256=TnkxDqYr0zgRE7TC92tVbUaY8m1UyyoLg2zvz
38
38
  entari_plugin_hyw/utils/browser.py,sha256=LJlFh-oSqt9mQBpMALxbYGUG__t1YLUo7RxUAslsWUc,1416
39
39
  entari_plugin_hyw/utils/misc.py,sha256=_7iHVYj_mJ6OGq6FU1s_cFeS1Ao-neBjZYd6eI2p95U,3482
40
40
  entari_plugin_hyw/utils/playwright_tool.py,sha256=ZZNkzFtUt_Gxny3Od4boBAgNF9J0N84uySatzn1Bwe4,1272
41
- entari_plugin_hyw/utils/prompts.py,sha256=Hbp1zVrrlXrOp6wI5YNoDaob-3VwKc-_ohJJQhw83no,3607
42
- entari_plugin_hyw/utils/search.py,sha256=5fjV3k--VjNIwsAT4aP82xKvsK7spx8X9H0HzPBUEQ4,10029
43
- entari_plugin_hyw-3.3.4.dist-info/METADATA,sha256=_dZ6feG2Omxw2u4wbupIlm1umo8A51kyBLkFUDmllcs,4646
44
- entari_plugin_hyw-3.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
- entari_plugin_hyw-3.3.4.dist-info/top_level.txt,sha256=TIDsn6XPs6KA5e3ezsE65JoXsy03ejDdrB41I4SPjmo,18
46
- entari_plugin_hyw-3.3.4.dist-info/RECORD,,
41
+ entari_plugin_hyw/utils/prompts.py,sha256=WiAzFdEnlhcVTzEAxsFxa5mlIN_x95dv5bSCD0wARgc,3633
42
+ entari_plugin_hyw/utils/search.py,sha256=HiAfCAHMiMaYgOcrhDDfyOyKST17m-edwx8oKW1AC0E,10062
43
+ entari_plugin_hyw-3.3.5.dist-info/METADATA,sha256=b_QZnmZKNJEb5-lpO1Zx9IPQk5NA8II6cKffmwfjYSw,4646
44
+ entari_plugin_hyw-3.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
+ entari_plugin_hyw-3.3.5.dist-info/top_level.txt,sha256=TIDsn6XPs6KA5e3ezsE65JoXsy03ejDdrB41I4SPjmo,18
46
+ entari_plugin_hyw-3.3.5.dist-info/RECORD,,