Commit Graph

222 Commits

Author SHA1 Message Date
Damjan
4559fb8551 Upgrade NPM dependencies 2024-12-28 10:26:27 +01:00
aryan
4f0eaffa55 chore: docs 2024-12-28 03:01:03 +05:30
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
ARYAN
9d14e951ca Implemented a Persistance agent (#77)
# Pull Request Description
It adds a Postgres database to have a persistent agent that remembers
chats even when shut and opened again.
## Related Issue
Fixes #76 

## Changes Made
This PR adds the following changes:
- Added an example of how we can integrate a Postgres db so that the
agent remembers its previous chats.
  
## Implementation Details
- included a postgres db to store chat for future reference
- 

## Transaction executed by agent 
NA

## Prompt Used
<img width="936" alt="image"
src="https://github.com/user-attachments/assets/0aa1bed2-e895-41bf-ad37-a52f679db7cf"
/>

see it remebers my name even when i closed it and ran again .

## Additional Notes

https://langchain-ai.github.io/langgraphjs/reference/classes/checkpoint_postgres.PostgresSaver.html

I used this above link to implement the changes.

## Checklist
- [ x ] I have tested these changes locally
2024-12-28 02:02:08 +05:30
Arpit Singh Bhatia
592c4987df fix 2024-12-28 02:00:49 +05:30
ARYAN
cfbad04e29 Update guides content and code snippets (#80)
# Pull Request Description

## Changes Made
This PR adds updates to the guides:

> `test_it_out.md`
- Fixed outdated code examples

> `add_your_own_tool.md`
- Prepend filename hints to code snippets (for easier navigation)
- Add more code snippets for agent usage and custom tool usage
2024-12-28 01:46:58 +05:30
Arpit Singh Bhatia
9de0153b9e readme 2024-12-28 01:41:17 +05:30
Arpit Singh Bhatia
9a454336b6 Merge branch 'sendaifun:main' into persistance-agent 2024-12-28 01:17:08 +05:30
ARYAN
929fc9df67 feat: created tiplink for Sol and spl tokens (#64)
# Pull Request Description
Agent can now create links with sol and spl tokens

## Related Issue
Fixes #21

## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Added support for tiplinks for SOL 
- Also supports spl tokens

## Transaction executed by agent 
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction: 
![Screenshot 2024-12-26
115547](https://github.com/user-attachments/assets/29bc9110-57e8-4458-a563-dc8ccc6823be)
![Screenshot 2024-12-26
115606](https://github.com/user-attachments/assets/8789a346-5993-4277-9dc9-79271c400402)


## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
```create me a tiplink for 0.001 sol```


## Checklist
- [x] I have tested these changes locally
- [ ] 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 01:15:54 +05:30
aryan
5ab87242fd fix: lint 2024-12-28 01:13:26 +05:30
aryan
6895018562 Merge branch 'main' into add-tiplinks 2024-12-28 01:13:08 +05:30
aryan
e1f7c530ac chore: docs 2024-12-28 01:10:15 +05:30
ARYAN
1f04cbce16 Added Rock paper scissors blink to the solana agent kit (#42) 2024-12-28 01:04:01 +05:30
ARYAN
25ccf3ef9a Merge pull request #1 from SendArcade/SendArcade/main
fix: lint
2024-12-28 01:03:47 +05:30
aryan
6f687187e6 fix: lint 2024-12-28 00:54:50 +05:30
Damjan
5ba8df51d4 Update code snippets for adding new tools 2024-12-27 16:41:46 +01:00
Damjan
e79dc2ab65 Fix outdated docs code, add filename hints 2024-12-27 16:37:51 +01:00
Deepak
e9c1d3067a added architecture 2024-12-27 18:02:54 +05:30
Deepak
041953c1d5 Added documentation 2024-12-27 17:45:28 +05:30
Deepak
a537716d99 fin 2024-12-27 17:41:12 +05:30
Deepak
3cdd45d623 added write functionalities ie, swap and transfer 2024-12-27 16:53:12 +05:30
Arpit Singh Bhatia
86e96023b7 persistance agent: 2024-12-27 16:03:56 +05:30
Arpit Singh Bhatia
bf28aa3f66 implemented a simple next js repo to run agent kit 2024-12-27 15:32:31 +05:30
Deepak
ab9259d4e2 added pnpm 2024-12-27 15:12:27 +05:30
Deepak
954e49e08e seperated the dependencies from the main project 2024-12-27 14:44:21 +05:30
Deepak
45d5ad21a7 init 2024-12-27 14:14:17 +05:30
shivaji43
a8448f6593 fix : changed the input format 2024-12-26 22:01:32 +05:30
shivaji43
b50563dd7b fix : input for mint address in json 2024-12-26 21:45:02 +05:30
Arpit Singh Bhatia
a80fb0f1e0 rebase final 2024-12-26 14:05:40 +05:30
shivaji43
18e81998a1 fix: changed the SolanaTipLinkTool description 2024-12-26 13:09:25 +05:30
shivaji43
54abea76ca fix: fixed string input issue 2024-12-26 12:58:03 +05:30
shivaji43
3f0b6e13e5 fix:handled spl token address 2024-12-26 12:46:35 +05:30
shivaji43
18ddd247c3 feat: created tiplink for Sol and spl tokens 2024-12-26 12:33:55 +05:30
ARYAN
8d299244fc Update README.md (#62) 2024-12-25 22:00:16 +05:30
ARYAN
8315576c06 Update README.md 2024-12-25 21:59:43 +05:30
YASH AGARWAL
8f3c7e3f6d Update README.md 2024-12-25 21:47:57 +05:30
aryan
a992343ce7 fix: bump pkg version 2024-12-25 21:42:17 +05:30
YASH AGARWAL
273d4fa36d Update README.md 2024-12-25 21:37:52 +05:30
ARYAN
59cae0870e Update issue templates 2024-12-25 19:42:38 +05:30
ARYAN
c9c2e368b3 Create pull_request_template.md 2024-12-25 19:33:58 +05:30
ARYAN
921cf5f269 Merge pull request #56 from apneduniya/gib-bounty-sol062217
feat: Create tasks on Gibwork
2024-12-25 17:20:27 +05:30
aryan
8c1ce69743 fix: lint 2024-12-25 17:20:17 +05:30
ARYAN
755456fb01 Merge branch 'main' into gib-bounty-sol062217 2024-12-25 17:17:59 +05:30
ARYAN
d87976636b Merge pull request #57 from sendaifun/refractor
feat: linting + prettier
2024-12-25 17:10:37 +05:30
aryan
c81aa7f892 feat: linting + prettier 2024-12-25 17:08:17 +05:30
thatsmeadarsh
bb629f287f feat: Create tasks on Gibwork 2024-12-25 09:16:44 +05:30
ARYAN
2753794342 Merge pull request #38 from arihantbansal/rename-and-fixes
feat: fix tools, and lint
2024-12-25 05:14:37 +05:30
aryan
955290838f chore: docs 2024-12-25 05:14:22 +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