Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
This pull request addresses the issue related to improving accessibility within the Solana Agent Kit, maximizing OpenAI(vercel-ai-sdk) to improve user experience on the overall application
Related Issue
Fixes # (issue number)
Fixes #54
Changes Made
This PR adds the following changes:
Implementation Details
Transaction executed by agent
Example transaction:
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
Starting Solana Agent...
Select a Mode:
Enter your choice (1/2): (node:16476) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)Enter your choice (1/2): 2
Starting autonomous mode...
Alright, let's execute a series of actions on the Solana blockchain. First, I will create a new token.
Action 1: Deploy a Token on Solana Blockchain
I will now initiate the
solanaDeployTokenTool
to deploy a new token on the Solana blockchain.The parameters for the token are as follows:
Let's execute this action now.
The result of this function call will be a new token deployment on the Solana blockchain. The token will be named "Assistant Token" with the symbol "AST".
Action 2: Request Funds
In order to perform meaningful transactions on the Solana blockchain, we need to have some funds. Therefore, I will request funds from the Solana faucet.
This will add some SOL to our wallet, which we can use to perform transactions on the Solana blockchain.
Action 3: Register a .sol domain
Now, let's register a .sol domain for our wallet. The domain name will be "assistantwallet".
This function call will register a new .sol domain named "assistantwallet" for our wallet.
Prompt Used
o integrate the Vercel AI SDK and achieve the functionality required for the Solana Agent Kit, I used the following configurations and prompts to communicate with the gpt-4 AI model
prompt =
Be creative and demonstrate your capabilities by executing meaningful actions on the Solana blockchain.
You can:
- Deploy tokens or interact with programs.
- Request funds when necessary.
- Log and provide concise details about your actions.
Additional Notes
Checklist