Skip to content

Commit

Permalink
feat: Release AgentKit.js 0.1.1 with Network re-exported
Browse files Browse the repository at this point in the history
  • Loading branch information
John-peterson-coinbase committed Feb 2, 2025
1 parent 048cc00 commit e69f9c9
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 19 deletions.
40 changes: 33 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions typescript/agentkit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

## [0.1.1] - 2025-02-02

### Added

- Added re-export for `./src/network/` in `./src/index.ts`

## [0.1.0] - 2025-02-01

### Added
Expand Down
15 changes: 8 additions & 7 deletions typescript/agentkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ AgentKit is a framework for easily enabling AI agents to take actions onchain. I
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Usage](#usage)
- [Create an AgentKit instance](#1-create-an-agentkit-instance)
- [Create an AgentKit instance with a specified wallet provider](#2-create-an-agentkit-instance-with-a-specified-wallet-provider)
- [Create an AgentKit instance with a specified action providers](#3-create-an-agentkit-instance-with-a-specified-action-providers)
- [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)
- [Create an AgentKit instance with a specified wallet provider](#create-an-agentkit-instance-with-a-specified-wallet-provider)
- [Create an AgentKit instance with a specified action providers](#create-an-agentkit-instance-with-a-specified-action-providers)
- [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)
- [Wallet Providers](#wallet-providers)
- [CdpWalletProvider](#cdpwalletprovider)
- [Network Configuration](#network-configuration)
Expand All @@ -35,7 +36,7 @@ npm install @coinbase/agentkit

## Usage

1. Create an AgentKit instance. If no wallet or action providers are specified, the agent will use the `CdpWalletProvider` and `WalletProvider` action provider.
### Create an AgentKit instance. If no wallet or action providers are specified, the agent will use the `CdpWalletProvider` and `WalletProvider` action provider.

```typescript
const agentKit = await AgentKit.from({
Expand All @@ -44,7 +45,7 @@ const agentKit = await AgentKit.from({
});
```

2. Create an AgentKit instance with a specified wallet provider.
### Create an AgentKit instance with a specified wallet provider.

```typescript
import { CdpWalletProvider } from "@coinbase/agentkit";
Expand All @@ -60,7 +61,7 @@ const agentKit = await AgentKit.from({
});
```

3. Create an AgentKit instance with a specified action providers.
### Create an AgentKit instance with a specified action providers.

```typescript
import { cdpApiActionProvider, pythActionProvider } from "@coinbase/agentkit";
Expand All @@ -77,7 +78,7 @@ const agentKit = await AgentKit.from({
});
```

4. Use the agent's actions with a framework extension. For example, using LangChain + OpenAI.
### Use the agent's actions with a framework extension. For example, using LangChain + OpenAI.

*Prerequisites*:
- [OpenAI API Key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key)
Expand Down
2 changes: 1 addition & 1 deletion typescript/agentkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@coinbase/agentkit",
"description": "Coinbase AgentKit core primitives",
"repository": "https://github.com/coinbase/agentkit",
"version": "0.1.0",
"version": "0.1.1",
"author": "Coinbase Inc.",
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion typescript/agentkit/src/agentkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Action, ActionProvider, walletActionProvider } from "./action-providers
/**
* Configuration options for AgentKit
*/
type AgentKitOptions = {
export type AgentKitOptions = {
cdpApiKeyName?: string;
cdpApiKeyPrivateKey?: string;
walletProvider?: WalletProvider;
Expand Down
5 changes: 2 additions & 3 deletions typescript/agentkit/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Export CDP AgentKit
export { AgentKit } from "./agentkit";

export * from "./agentkit";
export * from "./wallet-providers";
export * from "./action-providers";
export * from "./network";
1 change: 1 addition & 0 deletions typescript/agentkit/src/network/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./types";
export * from "./network";

0 comments on commit e69f9c9

Please sign in to comment.