@covalenthq/ai-agent-sdk
Advanced tools
Comparing version 0.1.0 to 0.1.1-alpha.1
import { OnchainService } from "./services/OnchainService"; | ||
import type { OnchainProvider } from "./services/OnchainService"; | ||
export type { ChainName, Currency, OnchainProvider, } from "./services/OnchainService"; | ||
export { OnchainProvider } from "./services/OnchainService"; | ||
export type { ChainName, Currency } from "./services/OnchainService"; | ||
export declare class Agent { | ||
@@ -5,0 +6,0 @@ OnchainService: OnchainService; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Agent = void 0; | ||
exports.Agent = exports.OnchainProvider = void 0; | ||
const OnchainService_1 = require("./services/OnchainService"); | ||
var OnchainService_2 = require("./services/OnchainService"); | ||
Object.defineProperty(exports, "OnchainProvider", { enumerable: true, get: function () { return OnchainService_2.OnchainProvider; } }); | ||
class Agent { | ||
@@ -6,0 +8,0 @@ OnchainService; |
125
package.json
{ | ||
"name": "@covalenthq/ai-agent-sdk", | ||
"version": "0.1.0", | ||
"description": "Covalent Agent SDK. Build cool AI agents for the blockchain", | ||
"main": "dist", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "tsc", | ||
"clean": "rm -rf dist", | ||
"prepublishOnly": "npm run build", | ||
"lint": "eslint .", | ||
"pretty": "prettier . --write" | ||
}, | ||
"author": { | ||
"name": "covalenthq", | ||
"url": "https://covalenthq.com" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@covalenthq/client-sdk": "^2.2.1", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@trivago/prettier-plugin-sort-imports": "^5.2.0", | ||
"@types/node": "^22.10.1", | ||
"@typescript-eslint/eslint-plugin": "^8.18.0", | ||
"@typescript-eslint/parser": "^8.18.0", | ||
"eslint": "^9.16.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"prettier-plugin-tailwindcss": "^0.6.9", | ||
"typescript": "^5.7.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"/dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/covalenthq/ai-agent-sdk.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/covalenthq/ai-agent-sdk/issues" | ||
}, | ||
"homepage": "https://github.com/covalenthq/ai-agent-sdk#readme", | ||
"keywords": [ | ||
"frontend", | ||
"blockchain", | ||
"cryptocurrency", | ||
"web3", | ||
"ai", | ||
"ai-agent", | ||
"blockchain-data" | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
} | ||
"name": "@covalenthq/ai-agent-sdk", | ||
"version": "0.1.1-alpha.1", | ||
"description": "Covalent Agent SDK. Build cool AI agents for the blockchain", | ||
"main": "dist", | ||
"types": "./dist/index.d.ts", | ||
"author": { | ||
"name": "covalenthq", | ||
"url": "https://covalenthq.com" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@covalenthq/client-sdk": "^2.2.1", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@trivago/prettier-plugin-sort-imports": "^5.2.0", | ||
"@types/node": "^22.10.1", | ||
"@typescript-eslint/eslint-plugin": "^8.18.0", | ||
"@typescript-eslint/parser": "^8.18.0", | ||
"eslint": "^9.16.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"prettier-plugin-tailwindcss": "^0.6.9", | ||
"typescript": "^5.7.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"/dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/covalenthq/ai-agent-sdk.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/covalenthq/ai-agent-sdk/issues" | ||
}, | ||
"homepage": "https://github.com/covalenthq/ai-agent-sdk#readme", | ||
"keywords": [ | ||
"frontend", | ||
"blockchain", | ||
"cryptocurrency", | ||
"web3", | ||
"ai", | ||
"ai-agent", | ||
"blockchain-data" | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
} | ||
} | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "tsc", | ||
"clean": "rm -rf dist", | ||
"lint": "eslint .", | ||
"pretty": "prettier . --write" | ||
} | ||
} |
@@ -20,11 +20,13 @@ <div align="center"> | ||
Currently available: | ||
* Read onchain data using the [GoldRush API](https://goldrush.dev/) | ||
- Read onchain data using the [GoldRush API](https://goldrush.dev/) | ||
Roadmap: | ||
* Access offchain and private data | ||
* Train and fine-tune Large/Small Language Models | ||
* Identity services to securely store your agent's private keys | ||
* Communication services to post to social media | ||
* Memory Bank to provide a trustless, verifiable persistent store for critical states, outputs and decisions | ||
- Access offchain and private data | ||
- Train and fine-tune Large/Small Language Models | ||
- Identity services to securely store your agent's private keys | ||
- Communication services to post to social media | ||
- Memory Bank to provide a trustless, verifiable persistent store for critical states, outputs and decisions | ||
## Using the SDK | ||
@@ -36,3 +38,3 @@ | ||
or | ||
or | ||
@@ -44,3 +46,3 @@ > npm install | ||
```js | ||
import { Agent, BaseChain, GoldRushAPI } from "@covalenthq/ai-agent-sdk"; | ||
import { Agent, BaseChain, OnchainProvider } from "@covalenthq/ai-agent-sdk"; | ||
@@ -50,6 +52,5 @@ new Agent({ | ||
key: "XXX", | ||
provider: GoldRushAPI | ||
} | ||
}) | ||
provider: OnchainProvider.GoldRushAPI, | ||
}, | ||
}); | ||
``` | ||
@@ -60,3 +61,6 @@ | ||
```js | ||
const balances = agent.onchain.getTokenBalancesForWalletAddress(BaseChain, "demo.eth"); | ||
const balances = agent.onchain.getTokenBalancesForWalletAddress( | ||
BaseChain, | ||
"demo.eth", | ||
); | ||
``` | ||
@@ -63,0 +67,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
594
75
38347