# Pull Request Description
## Changes Made
Upgraded NPM dependencies to keep up to date.
The upgrades do not affect any specific SDKs, they upgrade the langchain
and openai SDK as well as other devDependencies
# Pull Request Description
Added a Telegram bot starter example, with steps on how to run and host
it successfully.
## Related Issue
Fixes#83
## Changes Made
This PR adds the following changes:
- Adds an example on how we can use agent kit in a telegram bot using
nextjs
-
## Implementation Details
- Used next js and ngrok or vercel to host the bot and telegram bot api
to have it.
## Transaction executed by agent
Yes it is able to do everything.
## Prompt Used
NA
## Additional Notes
NA
## Checklist
- [ x ] I have tested these changes locally
# Pull Request Description
## Related Issue
Implements #60
## Changes Made
This PR adds the following changes:
- Added `getBalanceOther` method in `SolanaAgentKit` class
- Implemented `get_balance_other` tool
## Implementation Details
- This tool enables the agent to query SOL and SPL token balances of
other wallets
## Prompt Used
```
Prompt: What is the SOL balance of HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op?
-------------------
{"status":"success","balance":49.893951194,"wallet":"HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op","token":"SOL"}
-------------------
The wallet balance of HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op is approximately 49.89 SOL.
-------------------
Prompt: Now get the balance of sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh token for that same wallet
-------------------
{"status":"success","balance":60.338328396,"wallet":"HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op","token":"sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh"}
-------------------
The balance of the token sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh in the wallet HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op is approximately 60.34 tokens.
-------------------
```
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
~~- [ ] I have added a transaction link~~
- [x] I have added the prompt used to test it
# Pull Request Description
## Related Issue
Fixes#92
## Changes Made
This PR adds the following changes:
- Fixed token decimal handling in trade function to support tokens with
different decimal places
- Added proper scaling of input amounts based on token's decimal places
- Added getMint import from @solana/spl-token
## Implementation Details
- Fetches mint info using `getMint` to determine token decimals
- Calculates correct scaled amount using `Math.pow(10, inputDecimals)`
- Supports tokens with any number of decimal places (e.g., USDC-6,
SOL-9)
## Transaction executed by agent
Example transaction: [Insert your test transaction hash here]
## Prompt Used
Trade 0.0001 SOL for BONK
## Additional Notes
This fix ensures proper handling of token decimals, which is crucial
for:
- USDC (6 decimals)
- SOL (9 decimals)
- Other SPL tokens with varying decimal places
## 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
# 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
# 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
# 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:


## 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