diff --git a/README.md b/README.md index c191add..8372aec 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,16 @@ English/[简体中文](https://github.com/deepseek-ai/awesome-deepseek-integrati +### Solana frameworks + + + + + + + +
Icon Solana Agent Kit An open-source toolkit for connecting AI agents to Solana protocols. Now, any agent, using any Deepseek LLM, can autonomously perform 60+ Solana actions:
+ ### Synthetic data curation diff --git a/README_cn.md b/README_cn.md index 80894a1..6e74026 100644 --- a/README_cn.md +++ b/README_cn.md @@ -173,6 +173,16 @@ +### Solana 框架 + + + + + + + +
Icon Solana Agent Kit 一个用于连接 AI 智能体到 Solana 协议的开源工具包。现在,任何使用 Deepseek LLM 的智能体都可以自主执行 60+ 种 Solana 操作:
+ ### 即时通讯插件 diff --git a/README_ja.md b/README_ja.md index 3c7fba0..c9870aa 100644 --- a/README_ja.md +++ b/README_ja.md @@ -160,6 +160,16 @@ DeepSeek APIを人気のソフトウェアに統合します。APIキーを取
+### Solanaフレームワーク + + + + + + + +
Icon Solana Agent Kit AIエージェントをSolanaプロトコルに接続するためのオープンソースツールキット。DeepSeek LLMを使用する任意のエージェントが、60以上のSolanaアクションを自律的に実行できます。
+ ### IMアプリケーションプラグイン diff --git a/docs/solana-agent-kit/README.md b/docs/solana-agent-kit/README.md new file mode 100644 index 0000000..07ca47c --- /dev/null +++ b/docs/solana-agent-kit/README.md @@ -0,0 +1,67 @@ +# README + +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) + +‍ \ No newline at end of file diff --git a/docs/solana-agent-kit/assets/sendai-logo.png b/docs/solana-agent-kit/assets/sendai-logo.png new file mode 100644 index 0000000..638b962 Binary files /dev/null and b/docs/solana-agent-kit/assets/sendai-logo.png differ