@coinbase/agentkit 0.1.0 → 0.1.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 +8 -7
- package/dist/agentkit.d.ts +1 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -4
- package/dist/network/index.d.ts +1 -0
- package/dist/network/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,9 +8,10 @@ AgentKit is a framework for easily enabling AI agents to take actions onchain. I
|
|
|
8
8
|
- [Getting Started](#getting-started)
|
|
9
9
|
- [Installation](#installation)
|
|
10
10
|
- [Usage](#usage)
|
|
11
|
-
- [Create an AgentKit instance](
|
|
12
|
-
- [Create an AgentKit instance with a specified wallet provider](#
|
|
13
|
-
- [Create an AgentKit instance with a specified action providers](#
|
|
11
|
+
- [Create an AgentKit instance](##create-an-agentkit-instance-if-no-wallet-or-action-providers-are-specified-the-agent-will-use-the-cdpwalletprovider-and-walletprovider-action-provider)
|
|
12
|
+
- [Create an AgentKit instance with a specified wallet provider](#create-an-agentkit-instance-with-a-specified-wallet-provider)
|
|
13
|
+
- [Create an AgentKit instance with a specified action providers](#create-an-agentkit-instance-with-a-specified-action-providers)
|
|
14
|
+
- [Use the agent's actions with a framework extension. For example, using LangChain + OpenAI](#use-the-agents-actions-with-a-framework-extension-for-example-using-langchain--openai)
|
|
14
15
|
- [Wallet Providers](#wallet-providers)
|
|
15
16
|
- [CdpWalletProvider](#cdpwalletprovider)
|
|
16
17
|
- [Network Configuration](#network-configuration)
|
|
@@ -35,7 +36,7 @@ npm install @coinbase/agentkit
|
|
|
35
36
|
|
|
36
37
|
## Usage
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
### Create an AgentKit instance. If no wallet or action providers are specified, the agent will use the `CdpWalletProvider` and `WalletProvider` action provider.
|
|
39
40
|
|
|
40
41
|
```typescript
|
|
41
42
|
const agentKit = await AgentKit.from({
|
|
@@ -44,7 +45,7 @@ const agentKit = await AgentKit.from({
|
|
|
44
45
|
});
|
|
45
46
|
```
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
### Create an AgentKit instance with a specified wallet provider.
|
|
48
49
|
|
|
49
50
|
```typescript
|
|
50
51
|
import { CdpWalletProvider } from "@coinbase/agentkit";
|
|
@@ -60,7 +61,7 @@ const agentKit = await AgentKit.from({
|
|
|
60
61
|
});
|
|
61
62
|
```
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
### Create an AgentKit instance with a specified action providers.
|
|
64
65
|
|
|
65
66
|
```typescript
|
|
66
67
|
import { cdpApiActionProvider, pythActionProvider } from "@coinbase/agentkit";
|
|
@@ -77,7 +78,7 @@ const agentKit = await AgentKit.from({
|
|
|
77
78
|
});
|
|
78
79
|
```
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
### Use the agent's actions with a framework extension. For example, using LangChain + OpenAI.
|
|
81
82
|
|
|
82
83
|
*Prerequisites*:
|
|
83
84
|
- [OpenAI API Key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key)
|
package/dist/agentkit.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Action, ActionProvider } from "./action-providers";
|
|
|
3
3
|
/**
|
|
4
4
|
* Configuration options for AgentKit
|
|
5
5
|
*/
|
|
6
|
-
type AgentKitOptions = {
|
|
6
|
+
export type AgentKitOptions = {
|
|
7
7
|
cdpApiKeyName?: string;
|
|
8
8
|
cdpApiKeyPrivateKey?: string;
|
|
9
9
|
walletProvider?: WalletProvider;
|
|
@@ -42,4 +42,3 @@ export declare class AgentKit {
|
|
|
42
42
|
*/
|
|
43
43
|
getActions(): Action[];
|
|
44
44
|
}
|
|
45
|
-
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,9 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports
|
|
18
|
-
// Export CDP AgentKit
|
|
19
|
-
var agentkit_1 = require("./agentkit");
|
|
20
|
-
Object.defineProperty(exports, "AgentKit", { enumerable: true, get: function () { return agentkit_1.AgentKit; } });
|
|
17
|
+
__exportStar(require("./agentkit"), exports);
|
|
21
18
|
__exportStar(require("./wallet-providers"), exports);
|
|
22
19
|
__exportStar(require("./action-providers"), exports);
|
|
20
|
+
__exportStar(require("./network"), exports);
|
package/dist/network/index.d.ts
CHANGED
package/dist/network/index.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@coinbase/agentkit",
|
|
3
3
|
"description": "Coinbase AgentKit core primitives",
|
|
4
4
|
"repository": "https://github.com/coinbase/agentkit",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.1",
|
|
6
6
|
"author": "Coinbase Inc.",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"main": "dist/index.js",
|