feat: add image support

This commit is contained in:
aryan
2024-12-05 21:33:09 +05:30
parent 205ff4891c
commit 5cdb4fd9e7
19 changed files with 197 additions and 91 deletions

View File

@@ -27,14 +27,17 @@ export class SolanaAgentKit {
public connection: Connection;
public wallet: Keypair;
public wallet_address: PublicKey;
public openai_api_key: string;
constructor(
private_key: string,
rpc_url = "https://api.mainnet-beta.solana.com"
rpc_url = "https://api.mainnet-beta.solana.com",
openai_api_key: string
) {
this.connection = new Connection(rpc_url);
this.wallet = Keypair.fromSecretKey(bs58.decode(private_key));
this.wallet_address = this.wallet.publicKey;
this.openai_api_key = openai_api_key;
}
// Tool methods