From 8b55fb7f524d5502567fabc0f994d46d647d29b1 Mon Sep 17 00:00:00 2001 From: Damjan Date: Fri, 27 Dec 2024 16:32:11 +0100 Subject: [PATCH] Improve prompt to use JSON format --- src/langchain/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/langchain/index.ts b/src/langchain/index.ts index 502c686..e63a258 100644 --- a/src/langchain/index.ts +++ b/src/langchain/index.ts @@ -18,7 +18,7 @@ export class SolanaBalanceTool extends Tool { If you want to get the balance of your wallet, you don't need to provide the tokenAddress. If no tokenAddress is provided, the balance will be in SOL. - Inputs: + Inputs ( input is a JSON string ): tokenAddress: string, eg "So11111111111111111111111111111111111111112" (optional)`; constructor(private solanaKit: SolanaAgentKit) { @@ -51,7 +51,7 @@ export class SolanaBalanceOtherTool extends Tool { If no tokenAddress is provided, the SOL balance of the wallet will be returned. - Inputs: + Inputs ( input is a JSON string ): walletAddress: string, eg "GDEkQF7UMr7RLv1KQKMtm8E2w3iafxJLtyXu3HVQZnME" (required) tokenAddress: string, eg "SENDdRQtYMWaQrBroBrJ2Q53fgVuq95CV9UPGEvpCxa" (optional)`;