@wolido/pi-anysearch 0.2.0 → 0.2.1
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/package.json +1 -1
- package/src/index.ts +4 -4
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -136,7 +136,7 @@ const DOMAIN_DESCRIPTION =
|
|
|
136
136
|
const DOMAINS_ARRAY_DESCRIPTION =
|
|
137
137
|
"List of top-level capability domains to inspect. Valid values: " +
|
|
138
138
|
DOMAIN_LIST_TEXT +
|
|
139
|
-
". Pass all 17 values to list the full capability table.
|
|
139
|
+
". Pass all 17 values to list the full capability table. AnySearch documentation recommends requesting at most 5 domains per call.";
|
|
140
140
|
|
|
141
141
|
const extractSchema = Type.Object({
|
|
142
142
|
url: Type.String({ description: "URL of the page to extract readable content from" }),
|
|
@@ -252,11 +252,11 @@ export default function anysearchExtension(pi: ExtensionAPI) {
|
|
|
252
252
|
name: "anysearch_search",
|
|
253
253
|
label: "AnySearch Search",
|
|
254
254
|
description:
|
|
255
|
-
"Search the web with AnySearch, a vertical search API
|
|
255
|
+
"Search the web with AnySearch, a vertical search API covering 40 capability domains " +
|
|
256
256
|
"(finance, academic, legal, security, health, travel, ...). Returns titles, URLs, snippets and " +
|
|
257
257
|
"extracted page content. When the query clearly belongs to a vertical, pass its capability tag " +
|
|
258
258
|
"(e.g. finance.quote for stock quotes, academic.search for papers, security.vuln for CVEs, " +
|
|
259
|
-
"code.doc for API documentation)
|
|
259
|
+
"code.doc for API documentation): the tag routes the query to that vertical index. Omit tag for general web search.",
|
|
260
260
|
promptSnippet: "Vertical web search via AnySearch (40 capability tags, cn/intl zones)",
|
|
261
261
|
promptGuidelines: [
|
|
262
262
|
"Use anysearch_search for web lookups; set its tag parameter when the request matches a vertical such as finance.quote, academic.search, code.doc or security.vuln.",
|
|
@@ -343,7 +343,7 @@ export default function anysearchExtension(pi: ExtensionAPI) {
|
|
|
343
343
|
name: "anysearch_domains",
|
|
344
344
|
label: "AnySearch Domains",
|
|
345
345
|
description:
|
|
346
|
-
"List the
|
|
346
|
+
"List the capability sub-domains AnySearch covers under a top-level domain " +
|
|
347
347
|
'(e.g. "finance", "academic", "legal"). Use this to discover which capability tags exist ' +
|
|
348
348
|
"before choosing a tag for anysearch_search.",
|
|
349
349
|
promptSnippet: "Discover AnySearch capability sub-domains and tags",
|