Skip to content

Commit

Permalink
chore: Fix README Use With Agent Quickstart Instructions (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
John-peterson-coinbase authored Dec 11, 2024
1 parent baafb15 commit 5a89384
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cdp-langchain/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CDP AgentKit Extension - Langchain Toolkit

[![npm version](https://img.shields.io/npm/v/@coinbase/cdp-langchain.svg?style=flat-square)](https://www.npmjs.com/package/@coinbase/cdp-langchain) [![GitHub star chart](https://img.shields.io/github/stars/coinbase/cdp-agentkit?style=flat-square)](https://star-history.com/#coinbase/cdp-agentkit-nodejs) [![Open Issues](https://img.shields.io/github/issues-raw/coinbase/cdp-agentkit?style=flat-square)](https://github.com/coinbase/cdp-agentkit-nodejs/issues)
[![npm version](https://img.shields.io/npm/v/@coinbase/cdp-langchain.svg?style=flat-square)](https://www.npmjs.com/package/@coinbase/cdp-langchain) [![GitHub star chart](https://img.shields.io/github/stars/coinbase/cdp-agentkit-nodejs?style=flat-square)](https://star-history.com/#coinbase/cdp-agentkit-nodejs) [![Open Issues](https://img.shields.io/github/issues-raw/coinbase/cdp-agentkit-nodejs?style=flat-square)](https://github.com/coinbase/cdp-agentkit-nodejs/issues)

CDP integration with Langchain to enable agentic workflows using the core primitives defined in `cdp-agentkit-core`. This toolkit contains tools that enable an LLM agent to interact with the [Coinbase Developer Platform](https://docs.cdp.coinbase.com/). The toolkit provides a wrapper around the CDP SDK, allowing agents to perform onchain operations like transfers, trades, and smart contract interactions.

Expand Down Expand Up @@ -64,6 +64,11 @@ The toolkit provides the following tools:

### Using with an Agent

#### Additional Installations
```bash
npm install @langchain/langgraph @langchain/openai
```

```typescript
import { ChatOpenAI } from "@langchain/openai";
import { HumanMessage } from "@langchain/core/messages";
Expand Down
8 changes: 7 additions & 1 deletion twitter-langchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export TWITTER_ACCESS_TOKEN_SECRET=<your-access-token-secret>
### Basic Setup

```typescript
import { TwitterAgentkit, TwitterToolkit } from "@coinbase/twitter-langchain";
import { TwitterAgentkit } from "@coinbase/cdp-agentkit-core";
import { TwitterToolkit } from "@coinbase/twitter-langchain";

// Initialize Twitter AgentKit
const agentkit = new TwitterAgentkit();
Expand All @@ -56,6 +57,11 @@ The toolkit provides the following tools:

### Using with an Agent

#### Additional Installations
```bash
npm install @langchain/langgraph @langchain/openai
```

```typescript
import { ChatOpenAI } from "@langchain/openai";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
Expand Down

0 comments on commit 5a89384

Please sign in to comment.