pi-web-providers 3.3.0 → 3.5.0
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 +48 -17
- package/dist/index.js +2305 -794
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -188,7 +188,22 @@ in tool calls.
|
|
|
188
188
|
Unlike the other managed tools, `web_research` does not accept local timeout,
|
|
189
189
|
retry, polling, or resume controls. Research has one opinionated execution
|
|
190
190
|
style: pi starts it asynchronously, tracks it locally, and saves the final
|
|
191
|
-
report under `.pi/artifacts/research/`.
|
|
191
|
+
report under `.pi/artifacts/research/`. Saved research reports are Markdown
|
|
192
|
+
files with YAML frontmatter for job metadata such as query, provider, status,
|
|
193
|
+
and timestamps.
|
|
194
|
+
|
|
195
|
+
Use `/web-research` in interactive pi sessions to browse and manage researches.
|
|
196
|
+
The command opens a table of running and finished researches with status, date,
|
|
197
|
+
provider, duration, and title. Running researches show a live spinner and
|
|
198
|
+
elapsed time; press `c` twice to cancel one. Cancellation aborts the provider
|
|
199
|
+
call and records a durable `cancelled` artifact under
|
|
200
|
+
`.pi/artifacts/research/`. Press `Enter` on a finished research to read the
|
|
201
|
+
report in a scrollable Markdown overlay; from there, `c` copies the report as
|
|
202
|
+
Markdown to the clipboard and `i` injects it into the current conversation so
|
|
203
|
+
the agent can build on earlier research.
|
|
204
|
+
|
|
205
|
+
While researches run, a one-line summary above the editor shows the number of
|
|
206
|
+
active researches with their status and elapsed time.
|
|
192
207
|
|
|
193
208
|
</details>
|
|
194
209
|
|
|
@@ -302,10 +317,12 @@ scope, or account ID is usually wrong.
|
|
|
302
317
|
- SDK: `exa-js`
|
|
303
318
|
- Supports `web_search`, `web_contents`, `web_answer`, and `web_research`
|
|
304
319
|
- `web_research` is exposed through pi's async research workflow
|
|
305
|
-
- Neural, keyword, hybrid, and deep-
|
|
320
|
+
- Neural, keyword, hybrid, and deep-search search modes
|
|
306
321
|
- Inline text-content extraction on search results
|
|
307
|
-
- Exposes search options such as `category`, `type`, date
|
|
308
|
-
`includeDomains`, `excludeDomains`, `
|
|
322
|
+
- Exposes search options such as `category`, `type`, crawl and publish date
|
|
323
|
+
filters, `includeDomains`, `excludeDomains`, `includeText`, `excludeText`,
|
|
324
|
+
`userLocation`, `additionalQueries`, `systemPrompt`, and richer `contents`
|
|
325
|
+
controls such as `livecrawl`, `maxAgeHours`, `subpages`, and `extras`
|
|
309
326
|
- Persisted Exa defaults are scoped under `providers.exa.options.search`
|
|
310
327
|
- `web_contents`, `web_answer`, and `web_research` currently use fixed provider behavior with no extra per-call provider options
|
|
311
328
|
|
|
@@ -322,11 +339,15 @@ scope, or account ID is usually wrong.
|
|
|
322
339
|
set `options.url` in the `web_answer` call or
|
|
323
340
|
`providers.firecrawl.options.answer.url` as a default
|
|
324
341
|
- Exposes search options such as `lang`, `country`, `sources`, `categories`,
|
|
325
|
-
`location`, `timeout`, and `scrapeOptions`
|
|
342
|
+
domain filters, `tbs`, `location`, `timeout`, and `scrapeOptions`
|
|
326
343
|
- Exposes contents options such as `formats`, `onlyMainContent`, `includeTags`,
|
|
327
|
-
`excludeTags`, `waitFor`, `headers`, `location`, `mobile`,
|
|
344
|
+
`excludeTags`, `waitFor`, `timeout`, `headers`, `location`, `mobile`,
|
|
345
|
+
`proxy`, `fastMode`, `blockAds`, `removeBase64Images`, `redactPII`, and
|
|
346
|
+
cache controls
|
|
328
347
|
- Exposes answer options `url`, `onlyMainContent`, `includeTags`,
|
|
329
|
-
`excludeTags`, `waitFor`, `headers`, `location`, `mobile`,
|
|
348
|
+
`excludeTags`, `waitFor`, `timeout`, `headers`, `location`, `mobile`,
|
|
349
|
+
`proxy`, `fastMode`, `blockAds`, `removeBase64Images`, `redactPII`, and
|
|
350
|
+
cache controls
|
|
330
351
|
- Firecrawl charges 5 credits per page for the `question` format
|
|
331
352
|
- Optional `baseUrl` overrides are supported for self-hosted Firecrawl
|
|
332
353
|
instances, proxies, and testing. API keys are required for Firecrawl Cloud,
|
|
@@ -411,10 +432,12 @@ Minimal config:
|
|
|
411
432
|
- Supports `web_search`, `web_answer`, and `web_research`
|
|
412
433
|
- Uses the Responses API for structured web search, grounded answers, and
|
|
413
434
|
deep-research runs
|
|
414
|
-
-
|
|
415
|
-
|
|
416
|
-
- Exposes `model
|
|
417
|
-
|
|
435
|
+
- Enables OpenAI's built-in `web_search` tool for search, answer, and research
|
|
436
|
+
calls
|
|
437
|
+
- Exposes `model`, `instructions`, `searchContextSize`, `allowedDomains`, and
|
|
438
|
+
`userLocation` for `web_search` and `web_answer`
|
|
439
|
+
- Exposes `model`, `instructions`, `max_tool_calls`, `searchContextSize`,
|
|
440
|
+
`allowedDomains`, and `userLocation` for `web_research`
|
|
418
441
|
- Good fit when you want official OpenAI web-grounded search, answers, and deep
|
|
419
442
|
research behind pi's managed tool abstractions
|
|
420
443
|
|
|
@@ -481,7 +504,7 @@ call.
|
|
|
481
504
|
<summary><strong>Parallel</strong></summary>
|
|
482
505
|
|
|
483
506
|
- SDK: `parallel-web`
|
|
484
|
-
-
|
|
507
|
+
- Search modes `advanced`, `basic`, and `turbo`
|
|
485
508
|
- Page content extraction with excerpt and full-content toggles
|
|
486
509
|
- Exposes search option `mode`
|
|
487
510
|
- Exposes contents options `excerpts` and `full_content`
|
|
@@ -547,12 +570,20 @@ Minimal config:
|
|
|
547
570
|
- Supports `web_search`, `web_contents`, `web_answer`, and `web_research`
|
|
548
571
|
- `web_research` is exposed through pi's async research workflow
|
|
549
572
|
- Web, proprietary, and news search types
|
|
550
|
-
- Exposes search options `searchType`, `responseLength`,
|
|
551
|
-
|
|
573
|
+
- Exposes search options such as `searchType`, `responseLength`,
|
|
574
|
+
`countryCode`, source filters, `sourceBiases`, date filters,
|
|
575
|
+
`historicalCache`, `fastMode`, `urlOnly`, and `instructions`
|
|
576
|
+
- Exposes contents options such as `summary`, `extractEffort`,
|
|
577
|
+
`responseLength`, `maxPriceDollars`, `screenshot`, date filters, and
|
|
578
|
+
`historicalCache`
|
|
579
|
+
- Exposes answer options such as `structuredOutput`, `systemInstructions`,
|
|
580
|
+
`searchType`, `dataMaxPrice`, source filters, date filters, `countryCode`,
|
|
581
|
+
and `fastMode`
|
|
582
|
+
- Exposes research options such as `mode`, `outputFormats`, `search`,
|
|
583
|
+
and `tools`
|
|
552
584
|
- Persisted Valyu defaults are scoped under `providers.valyu.options.search`,
|
|
553
|
-
`providers.valyu.options.
|
|
554
|
-
|
|
555
|
-
provider options
|
|
585
|
+
`providers.valyu.options.contents`, `providers.valyu.options.answer`, and
|
|
586
|
+
`providers.valyu.options.research`
|
|
556
587
|
|
|
557
588
|
</details>
|
|
558
589
|
|