From c11b3b4596d477fae43a9372d0bbb7fe7fd7faf1 Mon Sep 17 00:00:00 2001 From: Zhe <106411133+zhe-t@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:29:31 +0000 Subject: [PATCH] chore: fix add your own tool docs --- guides/add_your_own_tool.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guides/add_your_own_tool.md b/guides/add_your_own_tool.md index 63d1172..803198c 100644 --- a/guides/add_your_own_tool.md +++ b/guides/add_your_own_tool.md @@ -19,7 +19,7 @@ Create a new TypeScript file in the `src/tools/` directory for your tool (e.g., ### 2. Implement the Tool Class -```typescript:src/tools/custom_tool.ts +```typescript:src/langchain/index.ts import { Tool } from "langchain/tools"; import { SolanaAgentKit } from "../agent"; @@ -86,6 +86,8 @@ export function createSolanaTools(agent: SolanaAgentKit) { ### 6. Usage Example +Add a code example in the `README.md` file. + ```typescript import { SolanaAgentKit, createSolanaTools } from "solana-agent-kit";