New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@covalenthq/ai-agent-sdk

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@covalenthq/ai-agent-sdk - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

dist/core/agent/index.d.ts

16

dist/index.d.ts

@@ -1,13 +0,5 @@

import { OnchainService } from "./services/OnchainService";
import type { OnchainProvider } from "./services/OnchainService";
export type { ChainName, Currency, OnchainProvider, } from "./services/OnchainService";
export declare class Agent {
OnchainService: OnchainService;
constructor(options: {
onchain: {
key: string;
provider: OnchainProvider;
};
});
}
export * from "./core/agent";
export * from "./core/llm";
export * from "./core/tools";
export * from "./core/zee";
//# sourceMappingURL=index.d.ts.map
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Agent = void 0;
const OnchainService_1 = require("./services/OnchainService");
class Agent {
OnchainService;
constructor(options) {
this.OnchainService = new OnchainService_1.OnchainService(options);
}
}
exports.Agent = Agent;
__exportStar(require("./core/agent"), exports);
__exportStar(require("./core/llm"), exports);
__exportStar(require("./core/tools"), exports);
__exportStar(require("./core/zee"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@covalenthq/ai-agent-sdk",
"version": "0.1.1",
"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 clean && 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.2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md"
],
"publishConfig": {
"access": "public"
},
"license": "MIT",
"dependencies": {
"commander": "^13.1.0",
"dotenv": "^16.4.7",
"openai": "^4.79.1",
"pino": "^9.6.0",
"pino-pretty": "^13.0.0",
"typescript": "^5.7.3",
"zod": "^3.24.1",
"zod-to-json-schema": "^3.24.1"
},
"devDependencies": {
"@types/node": "^22.10.7",
"node-fetch": "^3.3.2",
"vitest": "^3.0.2"
},
"scripts": {
"test": "vitest",
"build": "tsc",
"clean": "rm -rf dist",
"lint": "eslint .",
"pretty": "prettier . --write"
}
}

@@ -5,2 +5,4 @@ <div align="center">

[![NPM Version](https://img.shields.io/npm/v/@covalenthq/ai-agent-sdk)](https://www.npmjs.com/package/@covalenthq/ai-agent-sdk)
[![NPM Downloads](https://img.shields.io/npm/dt/@covalenthq/ai-agent-sdk)](https://www.npmjs.com/package/@covalenthq/ai-agent-sdk)
[![GitHub license](https://img.shields.io/github/license/covalenthq/ai-agent-sdk)](https://github.com/covalenthq/ai-agent-sdk/blob/main/LICENSE)

@@ -16,44 +18,49 @@ [![GitHub last commit](https://img.shields.io/github/last-commit/covalenthq/ai-agent-sdk)](https://github.com/covalenthq/ai-agent-sdk/commits/master)

<p>A TypeScript SDK to build, deploy and interact with AI agents. Create intelligent, context-aware agents with unprecedented ease and functionality.</p>
<p>Build autonomous AI agents for the Zero-Employee Enterprise (ZEE). Create intelligent, context-aware agents with unprecedented ease and functionality. The Agent SDK supports single model inference calls to multi-agent systems that use tools. The SDK provides primitives that are designed to be easily composable, extendable and flexible for advanced use cases.</p>
## Features
Currently available:
* Read onchain data using the [GoldRush API](https://goldrush.dev/)
- LLMs - a unified interface for all LLMs
- Agents - a single model with a system prompt and a set of tools
- Tools - extend the capabilities of agents with external tools
- ZEE Workflows - compose agents to solve complex problems
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
## Using the SDK (Quick Start)
## Using the SDK
### 1. Start with a template
### 1. Setup and installation
> npx create-zee-app
> yarn install
This will create a new project with a basic setup.
or
### 2. Modify the agent
> npm install
```js
const agent1 = new Agent({
name: "Agent1",
model: {
provider: "OPEN_AI",
name: "gpt-4o-mini",
},
description: "A helpful AI assistant that can engage in conversation.",
});
```
### 2. Initialization
### 3. Modify the ZEE Workflow
```js
import { Agent, BaseChain, GoldRushAPI } from "@covalenthq/ai-agent-sdk";
new Agent({
onchain: {
key: "XXX",
provider: GoldRushAPI
}
})
const zee = new ZeeWorkflow({
description: "A workflow of agents that do stuff together",
output: "Just bunch of stuff",
agents: { agent1, agent2 },
});
```
### 3. Retrieve Token Balances for Wallet on Base Chain
### 4. Run the Zee Workflow
```js
const balances = agent.onchain.getTokenBalancesForWalletAddress(BaseChain, "demo.eth");
(async function main() {
const result = await zee.run();
console.log(result);
})();
```

@@ -60,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc