@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 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](#1-create-an-agentkit-instance)
12
- - [Create an AgentKit instance with a specified wallet provider](#2-create-an-agentkit-instance-with-a-specified-wallet-provider)
13
- - [Create an AgentKit instance with a specified action providers](#3-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
- 1. Create an AgentKit instance. If no wallet or action providers are specified, the agent will use the `CdpWalletProvider` and `WalletProvider` action provider.
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
- 2. Create an AgentKit instance with a specified wallet provider.
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
- 3. Create an AgentKit instance with a specified action providers.
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
- 4. Use the agent's actions with a framework extension. For example, using LangChain + OpenAI.
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)
@@ -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
@@ -1,3 +1,4 @@
1
- export { AgentKit } from "./agentkit";
1
+ export * from "./agentkit";
2
2
  export * from "./wallet-providers";
3
3
  export * from "./action-providers";
4
+ export * from "./network";
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.AgentKit = void 0;
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);
@@ -1 +1,2 @@
1
1
  export * from "./types";
2
+ export * from "./network";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./network"), exports);
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.0",
5
+ "version": "0.1.1",
6
6
  "author": "Coinbase Inc.",
7
7
  "license": "Apache-2.0",
8
8
  "main": "dist/index.js",