-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implement framework-independent Action interface #72
Conversation
- Introduced action system for Solana tools, allowing for better modularity and maintainability. - Updated SolanaBalanceTool, SolanaTransferTool, SolanaDeployTokenTool, SolanaDeployCollectionTool, SolanaMintNFTTool, SolanaTradeTool, and SolanaRequestFundsTool to utilize action handlers. - Added new action exports in index.ts for better organization and accessibility.
Looks great! Have you tested this out locally? If so, could you please attach screenshots for it |
…unctionality - Added a new function to convert Action interfaces into LangChain Tools, improving the integration of action handlers within the Solana agent. - Updated the agent initialization process to utilize the new conversion, allowing for dynamic tool creation based on defined actions. - Enhanced error handling and input validation within the action execution flow.
@FahriBilici this is awesome as i can see, not all tools are converted to actions, is it something WIP |
@FahriBilici Why is that in some action files you are using the |
I tried to make all of them using tools. Let me know your thoughts |
Looks great. Only one question, do you think it's better to I'm still undecided, but I think |
@thearyanag, do you have any feedback or additional comments? |
hey @FahriBilici - I was trying to test it out, but was facing many bugs can you just share a working video for it |
How are you testing it? I run tests in auto mode. |
I tested the pyth price feed, the prompt I used was price of 49f6b65cb1de6b10eaf75e7c03ca029c306d0357e91b5311b175084a5ad55688 feed |
@thearyanag I fixed the bug and here is the video sendai.mov |
looks good now @FahriBilici can you just run |
@thearyanag done |
hey @FahriBilici - just checked, not every tool under LangChain is using the action, any specific reason? |
@thearyanag I have made some changes, but I noticed a few tools are missing as actions. I will add them soon. Do you have any other feedback in the meantime? |
heyo @FahriBilici - can you dm me on twitter? |
I sent |
This PR implements a framework-independent Action interface inspired by Eliza, making the tools more flexible and reusable across different frameworks.
Changes:
src/actions/