@specstream/ai-sdk 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 +3 -3
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ npm install @specstream/ai-sdk ai zod
|
|
|
7
7
|
export SPECSTREAM_API_KEY=ss_live_... # Agents & API in your SpecStream workspace
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
A free account comes with $10 of credit
|
|
10
|
+
A free account comes with $10 of credit and needs no card: [specstream.ai](https://specstream.ai/signup).
|
|
11
11
|
|
|
12
12
|
## An agent that can find lists
|
|
13
13
|
|
|
@@ -59,7 +59,7 @@ The tool's result wraps the rows with `status`, `list_id`, `list_link`, `row_cou
|
|
|
59
59
|
| `specstream_find_list` | `request`, `maxResults` (1 to 1000, default 25) | Reads the request, prices it, starts it only within `maxPriceUsd`, waits up to `waitSeconds` (7 minutes by default) and returns every row | Only delivered rows |
|
|
60
60
|
| `specstream_get_list_results` | `listId` | Every row found so far, for a list that was still running | Free |
|
|
61
61
|
|
|
62
|
-
When the price is above your maximum, nothing runs: the tool returns `status: "over_maximum"` and the price, so the agent can ask for fewer rows or tell the user. When a request is too vague to price
|
|
62
|
+
When the price is above your maximum, nothing runs: the tool returns `status: "over_maximum"` and the price, so the agent can ask for fewer rows or tell the user. When a request is too vague to price, it returns `status: "needs_edit"` and how SpecStream read it, so the agent can add the place or the conditions.
|
|
63
63
|
|
|
64
64
|
Settings, all optional except the price:
|
|
65
65
|
|
|
@@ -102,7 +102,7 @@ else console.log(list.message); // "over_maximum" or "needs_edit": nothing ran
|
|
|
102
102
|
|
|
103
103
|
## When to reach for it
|
|
104
104
|
|
|
105
|
-
When the answer is many things that meet conditions
|
|
105
|
+
When the answer is many things that meet conditions. For a single fact or a summary of one page, a search tool fits better.
|
|
106
106
|
|
|
107
107
|
## Versions
|
|
108
108
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The SpecStream REST calls the tools share: read a request, price it, start it within a maximum, read its rows. */
|
|
2
2
|
export declare const DEFAULT_BASE_URL = "https://api.specstream.ai";
|
|
3
|
-
export declare const USER_AGENT = "@specstream/ai-sdk/0.2.
|
|
3
|
+
export declare const USER_AGENT = "@specstream/ai-sdk/0.2.2";
|
|
4
4
|
/** A list runs for up to about five minutes, so the tools wait a little longer than that by default. */
|
|
5
5
|
export declare const DEFAULT_WAIT_SECONDS = 420;
|
|
6
6
|
export declare const DEFAULT_POLL_INTERVAL_SECONDS = 3;
|
package/dist/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The SpecStream REST calls the tools share: read a request, price it, start it within a maximum, read its rows. */
|
|
2
2
|
export const DEFAULT_BASE_URL = "https://api.specstream.ai";
|
|
3
|
-
export const USER_AGENT = "@specstream/ai-sdk/0.2.
|
|
3
|
+
export const USER_AGENT = "@specstream/ai-sdk/0.2.2";
|
|
4
4
|
/** A list runs for up to about five minutes, so the tools wait a little longer than that by default. */
|
|
5
5
|
export const DEFAULT_WAIT_SECONDS = 420;
|
|
6
6
|
export const DEFAULT_POLL_INTERVAL_SECONDS = 3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@specstream/ai-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The live web data engine for the Vercel AI SDK: Search API ($5 per 1,000 searches), Extract API ($0.80 per 1,000 pages) and Deep Search.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|