Commit Graph

38 Commits

Author SHA1 Message Date
ARYAN
fd15656304 Langgraph (#78)
# Pull Request Description

## Related Issue
Fixes #61

## Changes Made
This PR adds the following changes:
- Added a new example demonstrating LangGraph integration with Solana
Agent Kit
- Implemented a multi-agent system with specialized agents for different
tasks
- Added state management and routing logic using LangGraph's StateGraph
- Integrated Tavily search capabilities for enhanced general-purpose
queries
- Added support for token swaps using Jupiter DEX
- Implemented TypeScript-based project structure with full type safety
- Added comprehensive documentation and architecture diagram

## Implementation Details
- Created a directed workflow using StateGraph with the following
components:
  - Manager Agent: Handles query classification and routing
- General Agent: Processes basic queries with Tavily search integration
  - Transfer/Swap Agent: Handles token transfers and DEX operations
  - Read Agent: Manages blockchain data queries
- Implemented state management using LangGraph annotations for query
classification
- Added environment-based configuration for API keys and RPC endpoints
- Integrated with external dependencies:
  - @langchain/community v0.3.20
  - @langchain/core v0.3.26
  - @langchain/langgraph v0.2.36
  - solana-agent-kit v1.3.0
- Set up TypeScript configuration with ESM support

## Architecture

<img width="801" alt="Screenshot 2024-12-27 at 5 59 26 PM"
src="https://github.com/user-attachments/assets/a90597ac-3bfc-47e1-b1de-5a17a3de106b"
/>


## Transaction executed by agent 
Example transaction: 


## Additional Notes
- The implementation follows a modular architecture as shown in the
architecture diagram
- Supports both read and write operations on the Solana blockchain
- Includes comprehensive error handling and type safety
- Provides flexible configuration through environment variables
- Project structure follows best practices with clear separation of
concerns
- Includes example queries for testing different agent pathways

## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
- [x] I have added a transaction link
- [x] I have added the prompt used to test it
2024-12-28 02:25:28 +05:30
Deepak
45d5ad21a7 init 2024-12-27 14:14:17 +05:30
shivaji43
18ddd247c3 feat: created tiplink for Sol and spl tokens 2024-12-26 12:33:55 +05:30
aryan
a992343ce7 fix: bump pkg version 2024-12-25 21:42:17 +05:30
aryan
c81aa7f892 feat: linting + prettier 2024-12-25 17:08:17 +05:30
aryan
585b1e39eb fix: stale files 2024-12-25 05:13:48 +05:30
ARYAN
4c23834fbe Merge branch 'main' into rename-and-fixes 2024-12-25 05:10:33 +05:30
aryan
737d5ce86b feat: tool description + types 2024-12-25 04:26:06 +05:30
adpthegreat
cfda7151a2 feat: added langchain class, refactored methods to use tlb parser, wrote and ran tests 2024-12-23 08:52:42 +01:00
Arihant Bansal
528faceafe fixes 2024-12-23 11:50:14 +05:30
Zhe
7d076c8f4c chore: add pyth dep 2024-12-22 19:27:23 +00:00
Arihant Bansal
ed689f5efd fixes and renames 2024-12-22 01:20:29 +05:30
eibelsalil
caec29f54d fixed token deploy 2024-12-21 16:15:26 +05:30
aryan
60cc0a07b1 feat: readme 2024-12-21 00:01:21 +05:30
aryan
3602a23d0e Merge branch 'main' into rudy5348/main 2024-12-20 23:49:28 +05:30
aryan
7bafadb378 chore: docs 2024-12-20 23:38:34 +05:30
aryan
4480089292 Merge branch 'main' into calintje/main 2024-12-20 19:16:08 +05:30
Swenschaeferjohann
2bac6399fc remove unnecessary imports, rename to send_compressed_airdrop 2024-12-20 06:17:42 +00:00
Swenschaeferjohann
c13ab12aee add airdrop 2024-12-20 06:12:30 +00:00
Swenschaeferjohann
e0ff4399df wip airship 2024-12-20 05:04:43 +00:00
aryan
400ad03c29 fix: scriptS 2024-12-19 18:39:34 +05:30
Blockiosaurus
c01f943400 Adding basic tests and fixing issues. 2024-12-18 21:50:30 -05:00
calintje
aae026650e Add function to create single sided Whirlpool 2024-12-18 05:43:52 +01:00
aryan
41d6045132 fix: pkg version 2024-12-16 02:33:29 +05:30
Rudy
2fc0eed36a init raydium create ammv4/clmm/cpmm pool func 2024-12-16 04:23:28 +08:00
aryan
d4e17ad0e7 fix: pkg version 2024-12-08 03:25:28 +05:30
aryan
b40f65d5c0 fix: pump launch 2024-12-08 01:54:41 +05:30
aryan
5cdb4fd9e7 feat: add image support 2024-12-05 21:33:09 +05:30
aryan
205ff4891c fix: json 2024-12-05 20:28:02 +05:30
aryan
4d140f33df chore: refractor 2024-12-04 17:07:53 +05:30
Arihant Bansal
2658a88753 fixes 2024-11-27 16:52:12 +05:30
Arihant Bansal
c26f6093ec add idle asset lending with lulo 2024-11-26 16:24:38 +05:30
aryan
0cdfa04978 fix: version 2024-11-18 00:39:25 +07:00
aryan
655c131b99 feat: test added 2024-11-18 00:38:00 +07:00
aryan
9195e2ff06 fix: version 2024-11-17 23:56:17 +07:00
aryan
a0561992ef feat: langchain 2024-11-17 23:55:25 +07:00
aryan
57cd1c38cc d0cs 2024-11-17 22:07:34 +07:00
aryan
f0de3cf025 init 2024-11-17 21:39:36 +07:00