@moneytools-dev/ai-sdk 0.1.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/README.md +11 -7
- package/dist/index.d.ts +2237 -1
- package/dist/index.js +106 -5
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
| Tool | Cost | What it does |
|
|
6
6
|
|---|---|---|
|
|
7
|
-
| `
|
|
7
|
+
| `precheck` | free daily tier, then 0.005 USDC | Check an x402 seller URL before paying (402 terms + OFAC screen of payTo) |
|
|
8
|
+
| `walletRiskCard` | 0.02 USDC | 0-100 risk score, A-F grade, OFAC SDN match, address checks, open approvals |
|
|
9
|
+
| `tokenSafetyCheck` | free daily tier, then 0.005 USDC | USDC → token → USDC honeypot / sell-tax simulation |
|
|
10
|
+
| `tokenContractInfo` | free daily tier, then 0.005 USDC | ERC-20 name, symbol, decimals, supply, owner, paused, proxy |
|
|
11
|
+
| `transcribeAudio` | 0.005 USDC / started minute | Speech-to-text for a public audio/video URL (up to 3 h) |
|
|
8
12
|
| `getTranscription` | free | Job status/result as JSON, SRT, VTT or text |
|
|
9
|
-
| `spendCheck` | 0.
|
|
10
|
-
| `setSpendCap` | 0.
|
|
11
|
-
| `verifyPayment` | 0.
|
|
13
|
+
| `spendCheck` | 0.005 USDC | Allow/deny a planned x402 payment against this wallet's caps |
|
|
14
|
+
| `setSpendCap` | 0.005 USDC | Per-call / per-day caps and allowed hosts |
|
|
15
|
+
| `verifyPayment` | 0.005 USDC | Verify an x402 USDC payment on Base |
|
|
12
16
|
|
|
13
17
|
```bash
|
|
14
18
|
npm install @moneytools-dev/ai-sdk ai zod viem
|
|
@@ -22,12 +26,12 @@ import { moneytoolsTools } from "@moneytools-dev/ai-sdk";
|
|
|
22
26
|
const account = privateKeyToAccount(process.env.MONEYTOOLS_EVM_PRIVATE_KEY as `0x${string}`);
|
|
23
27
|
const { text } = await generateText({
|
|
24
28
|
model: "openai/gpt-5-mini",
|
|
25
|
-
prompt: "
|
|
29
|
+
prompt: "Precheck https://seller.example/data, then score wallet 0x64eB63904Cf9688AC5B3087A72AcF9C31a273169 on Base.",
|
|
26
30
|
tools: moneytoolsTools({ account, maxUsdPerRequest: 0.5 }),
|
|
27
31
|
stopWhen: isStepCount(3),
|
|
28
32
|
});
|
|
29
33
|
```
|
|
30
34
|
|
|
31
|
-
`maxUsdPerRequest` caps
|
|
35
|
+
`maxUsdPerRequest` caps Transcripts payments. `maxPaymentUsdc` (default 0.02) caps precheck, wallet-risk and token-safety payments. Anything above the cap is refused before signing. The key stays in your process.
|
|
32
36
|
|
|
33
|
-
Docs: https://
|
|
37
|
+
Docs: https://moneytools.dev/products/payment-safety/guides/vercel-ai-sdk/ · MIT
|