dsh-web-search-enhanced 0.2.0 → 0.2.2
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.
- package/README.md +27 -3
- package/lib/client.cjs +764 -555
- package/lib/client.cjs.map +1 -1
- package/lib/index.js +1592 -295
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@ row `web-search-enhanced` and selects its provider in the shared `web` row.
|
|
|
8
8
|
| --- | --- |
|
|
9
9
|
| Row id | `web-search-enhanced` |
|
|
10
10
|
| Provider id in `ctx.web` | `search-enhanced` |
|
|
11
|
-
| Model surface | DSH's own `web_search` (tool-web), unchanged |
|
|
12
|
-
| Per conversation | one connection or Off, from the composer menu or `/setup-search` |
|
|
11
|
+
| Model surface | DSH's own `web_search` (tool-web), unchanged; with the row's Enhanced tools switch on, also `web_search_enhanced` and `list_web_search_providers` |
|
|
12
|
+
| Per conversation | one connection or Off, from the composer menu or the Host command `/setup-search` (Web GUI and dsh-TUI) |
|
|
13
13
|
| Settings | row settings page on the Plugins page (`plugins.row.config`) |
|
|
14
14
|
|
|
15
15
|
## What it does
|
|
@@ -24,6 +24,30 @@ connections over Anthropic Messages, OpenAI Responses or OpenAI Chat
|
|
|
24
24
|
Completions. Native connections keep the behaviour of DSH's own providers;
|
|
25
25
|
only their error messages are restated.
|
|
26
26
|
|
|
27
|
+
- **Remote services start off.** DeepSeek Search API, Exa, Firecrawl, Tavily,
|
|
28
|
+
Tinyfish, OpenAlex and Semantic Scholar must be turned on in the row
|
|
29
|
+
settings before a conversation can choose them; turning one on agrees that
|
|
30
|
+
queries go to it. DeepSeek Messages (the default) and the conversation model
|
|
31
|
+
stay on; custom connections are on when created. When every remote service
|
|
32
|
+
is off, the composer menu says more services can be turned on in settings.
|
|
33
|
+
- **`/setup-search`.** A Host command, so it works in the Web GUI and in
|
|
34
|
+
dsh-TUI. `off`, a connection id or `freshness auto|fresh|realtime` change
|
|
35
|
+
the choice from the next model request; dsh-TUI completes these arguments.
|
|
36
|
+
Without arguments the Web GUI opens the chooser, and dsh-TUI prints the
|
|
37
|
+
current choice, routing and the enabled connections (0.16.1 shows only the
|
|
38
|
+
start of that, as a one-line notice). Its description and output are
|
|
39
|
+
English.
|
|
40
|
+
- **Enhanced tools (optional).** With the row's Enhanced tools switch on (off
|
|
41
|
+
by default; turning it on agrees that the query goes to the service the
|
|
42
|
+
Agent picks), the Agent also gets `web_search_enhanced` (`queries` plus a
|
|
43
|
+
required `provider`, a connection id) and `list_web_search_providers`. They
|
|
44
|
+
are registered only while the `web` row routes search to this plugin, and
|
|
45
|
+
only conversations started afterwards get them, limited to the connections
|
|
46
|
+
enabled when the conversation started. An explicit call never changes the
|
|
47
|
+
conversation's choice or model memory, is refused when the conversation
|
|
48
|
+
turned search off, and runs through the same execution layer; a backend
|
|
49
|
+
failure tells the Agent to pick another provider.
|
|
50
|
+
|
|
27
51
|
- **Where the query goes.** Every connection sends the query to the service
|
|
28
52
|
named in its label (a model connection: to the model's provider). Model
|
|
29
53
|
search is billed per search by that provider, on top of the tokens it uses.
|
|
@@ -42,7 +66,7 @@ only their error messages are restated.
|
|
|
42
66
|
For the catalog, model-search options, settings grammar and error behavior,
|
|
43
67
|
see [Functional design](../../docs/design.md): [connections](../../docs/design.md#连接与目录),
|
|
44
68
|
[session selection](../../docs/design.md#会话选择), [settings document](../../docs/design.md#配置文档),
|
|
45
|
-
[model backend](../../docs/design.md#model-后端) and [errors](../../docs/design.md#错误与上游说明).
|
|
69
|
+
[model backend](../../docs/design.md#model-后端), [enhanced tools](../../docs/design.md#增强工具) and [errors](../../docs/design.md#错误与上游说明).
|
|
46
70
|
|
|
47
71
|
## Upgrading from 0.1.x
|
|
48
72
|
|