mirror of
https://github.com/deepseek-ai/awesome-deepseek-integration.git
synced 2025-02-23 06:09:02 -05:00
feat: sendai agent kit
This commit is contained in:
parent
5b8fad04a6
commit
13738e4169
10
README.md
10
README.md
@ -221,6 +221,16 @@ English/[简体中文](https://github.com/deepseek-ai/awesome-deepseek-integrati
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
### Solana frameworks
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td> <img src="./docs/solana-agent-kit/assets/sendai-logo.png" alt="Icon" width="128" height="auto" /> </td>
|
||||||
|
<td> <a href="https://github.com/deepseek-ai/awesome-deepseek-integration/blob/main/docs/ragflow/README.md"> Solana Agent Kit </a> </td>
|
||||||
|
<td>An open-source toolkit for connecting AI agents to Solana protocols. Now, any agent, using any Deepseek LLM, can autonomously perform 60+ Solana actions: </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
### Synthetic data curation
|
### Synthetic data curation
|
||||||
|
|
||||||
|
10
README_cn.md
10
README_cn.md
@ -168,6 +168,16 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
### Solana 框架
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td> <img src="./docs/solana-agent-kit/assets/sendai-logo.png" alt="Icon" width="128" height="auto" /> </td>
|
||||||
|
<td> <a href="https://github.com/deepseek-ai/awesome-deepseek-integration/blob/main/docs/ragflow/README.md"> Solana Agent Kit </a> </td>
|
||||||
|
<td>一个用于连接 AI 智能体到 Solana 协议的开源工具包。现在,任何使用 Deepseek LLM 的智能体都可以自主执行 60+ 种 Solana 操作:</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
### 即时通讯插件
|
### 即时通讯插件
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
|
10
README_ja.md
10
README_ja.md
@ -160,6 +160,16 @@ DeepSeek APIを人気のソフトウェアに統合します。APIキーを取
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
### Solanaフレームワーク
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td> <img src="./docs/solana-agent-kit/assets/sendai-logo.png" alt="Icon" width="128" height="auto" /> </td>
|
||||||
|
<td> <a href="https://github.com/deepseek-ai/awesome-deepseek-integration/blob/main/docs/ragflow/README.md"> Solana Agent Kit </a> </td>
|
||||||
|
<td>AIエージェントをSolanaプロトコルに接続するためのオープンソースツールキット。DeepSeek LLMを使用する任意のエージェントが、60以上のSolanaアクションを自律的に実行できます。</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
### IMアプリケーションプラグイン
|
### IMアプリケーションプラグイン
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
|
67
docs/solana-agent-kit/README.md
Normal file
67
docs/solana-agent-kit/README.md
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# README
|
||||||
|
|
||||||
|
<img src="assets/sendai-logo.png" width="64" height="auto" alt="logo">
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
An open-source toolkit for connecting AI agents to Solana protocols. Now, any agent, using any model can autonomously perform 60+ Solana actions:
|
||||||
|
|
||||||
|
|
||||||
|
## STEP1.
|
||||||
|
|
||||||
|
Apply a token from [deepseek open platform](https://platform.deepseek.com/)
|
||||||
|
|
||||||
|
## STEP 2
|
||||||
|
|
||||||
|
Intialize the DeepSeek LLM
|
||||||
|
|
||||||
|
```
|
||||||
|
import { ChatDeepSeek } from "@langchain/deepseek";
|
||||||
|
|
||||||
|
const deepseek = new ChatDeepSeek({
|
||||||
|
model: "deepseek-chat",
|
||||||
|
temperature: 0,
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## STEP 3
|
||||||
|
|
||||||
|
Intialize the Solana Agent Kit with DeepSeek
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const solanaAgent = new SolanaAgentKit(
|
||||||
|
process.env.SOLANA_PRIVATE_KEY!,
|
||||||
|
process.env.RPC_URL!,
|
||||||
|
{
|
||||||
|
OPENAI_API_KEY: process.env.OPENAI_API_KEY!,
|
||||||
|
HELIUS_API_KEY: process.env.HELIUS_API_KEY!,
|
||||||
|
PERPLEXITY_API_KEY: process.env.PERPLEXITY_API_KEY!,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
const tools = createSolanaTools(solanaAgent);
|
||||||
|
|
||||||
|
const agent = createReactAgent({
|
||||||
|
llm: deepseek,
|
||||||
|
tools,
|
||||||
|
checkpointSaver: memory,
|
||||||
|
messageModifier: `
|
||||||
|
You are a helpful agent that can interact onchain using the Solana Agent Kit. You are
|
||||||
|
empowered to interact onchain using your tools. If you ever need funds, you can request them from the
|
||||||
|
faucet. If not, you can provide your wallet details and request funds from the user. If there is a 5XX
|
||||||
|
(internal) HTTP error code, ask the user to try again later. If someone asks you to do something you
|
||||||
|
can't do with your currently available tools, you must say so, and encourage them to implement it
|
||||||
|
themselves using the Solana Agent Kit, recommend they go to https://www.solanaagentkit.xyz for more information. Be
|
||||||
|
concise and helpful with your responses. Refrain from restating your tools' descriptions unless it is explicitly requested.
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
|
||||||
|
const stream = await agent.stream(
|
||||||
|
{ messages: [new HumanMessage(userInput)] },
|
||||||
|
config,
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
More guides can be found in the [Solana Agent Kit](https://docs.solanaagentkit.xyz/v0/introduction)
|
||||||
|
|
||||||
|
|
BIN
docs/solana-agent-kit/assets/sendai-logo.png
Normal file
BIN
docs/solana-agent-kit/assets/sendai-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Reference in New Issue
Block a user