solana-agent 29.2.1__py3-none-any.whl → 29.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 29.2.1
3
+ Version: 29.2.2
4
4
  Summary: AI Agents for Solana
5
5
  License: MIT
6
6
  Keywords: solana,solana ai,solana agent,ai,ai agent,ai agents
@@ -54,7 +54,7 @@ Build your AI agents in three lines of code!
54
54
  * Simple Agent Definition
55
55
  * Fast Responses
56
56
  * Multi-Vendor Support
57
- * Solana Ecosystem Integration
57
+ * Solana Integration
58
58
  * Multi-Agent Swarm
59
59
  * Multi-Modal (Images & Audio & Text)
60
60
  * Conversational Memory & History
@@ -79,7 +79,7 @@ Build your AI agents in three lines of code!
79
79
  * Simple agent definition using JSON
80
80
  * Fast AI responses
81
81
  * Multi-vendor support including OpenAI, Grok, and Gemini AI services
82
- * Solana Ecosystem Integration via [AgentiPy](https://github.com/niceberginc/agentipy)
82
+ * Solana Integration with transfers and swaps
83
83
  * MCP tool usage with first-class support for [Zapier](https://zapier.com/mcp)
84
84
  * Integrated observability and tracing via [Pydantic Logfire](https://pydantic.dev/logfire)
85
85
  * Designed for a multi-agent swarm
@@ -106,7 +106,6 @@ Build your AI agents in three lines of code!
106
106
  * [MongoDB](https://mongodb.com) - Conversational History (optional)
107
107
  * [Zep Cloud](https://getzep.com) - Conversational Memory (optional)
108
108
  * [Pinecone](https://pinecone.io) - Knowledge Base (optional)
109
- * [AgentiPy](https://agentipy.fun) - Solana Ecosystem (optional)
110
109
  * [Zapier](https://zapier.com) - App Integrations (optional)
111
110
  * [Pydantic Logfire](https://pydantic.dev/logfire) - Observability and Tracing (optional)
112
111
 
@@ -656,36 +655,68 @@ Tools empower agents to interact with external systems, fetch data, or perform a
656
655
 
657
656
  Tools can be used from plugins like Solana Agent Kit (sakit) or via inline tools. Tools available via plugins integrate automatically with Solana Agent.
658
657
 
659
- * Agents can use multiple tools per response and should apply the right sequential order (like send an email to bob@bob.com with the latest news on Solana)
660
- * Agents choose the best tools for the job
661
- * Solana Agent doesn't use OpenAI function calling (tools) as they don't support async functions
662
- * Solana Agent tools are async functions
658
+ ### Solana Transfer
663
659
 
664
- ### Solana
660
+ This plugin enables Solana Agent to transfer SOL and SPL tokens from the agent's wallet to the destination wallet.
661
+
662
+ Don't use tickers - but mint addresses in your user queries.
665
663
 
666
664
  `pip install sakit`
667
665
 
668
666
  ```python
669
667
  config = {
670
668
  "tools": {
671
- "solana": {
672
- "private_key": "your-solana-wallet-private-key", # base58 encoded string
673
- "rpc_url": "your-solana-rpc-url",
669
+ "solana_transfer": {
670
+ "rpc_url": "my-rpc-url", # Required - your RPC URL - Helius is recommended
671
+ "private_key": "my-private-key", # Required - base58 string - please use env vars to store the key as it is very confidential
674
672
  },
675
673
  },
676
674
  "agents": [
677
675
  {
678
676
  "name": "solana_expert",
679
- "instructions": "You are an expert Solana blockchain assistant. You always use the Solana tool to perform actions on the Solana blockchain.",
680
- "specialization": "Solana blockchain interaction",
681
- "tools": ["solana"], # Enable the tool for this agent
677
+ "instructions": "You are a Solana expert that can transfer tokens.",
678
+ "specialization": "Solana Blockchain",
679
+ "tools": ["solana_transfer"], # Enable the tool for this agent
682
680
  }
683
- ]
681
+ ],
682
+ }
683
+
684
+ solana_agent = SolanaAgent(config=config)
685
+
686
+ async for response in solana_agent.process("user123", "Transfer 0.01 Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB to DzvqBkUHUhuhHtNKGWSCVEAm2rHdm9bxxdQYC6mZBZyF"):
687
+ print(response, end="")
688
+ ```
689
+
690
+ ### Solana Swap
691
+
692
+ This plugin enables Solana Agent to trade (swap) tokens using Jupiter.
693
+
694
+ Don't use tickers - but mint addresses in your user queries.
695
+
696
+ `pip install sakit`
697
+
698
+ ```python
699
+ config = {
700
+ "tools": {
701
+ "solana_swap": {
702
+ "rpc_url": "my-rpc-url", # Required - your RPC URL - Helius is recommended
703
+ "private_key": "my-private-key", # Required - base58 string - please use env vars to store the key as it is very confidential
704
+ "jupiter_url": "my-custom-url" # Optional - if you are using a custom Jupiter service like Metis from QuickNode
705
+ },
706
+ },
707
+ "agents": [
708
+ {
709
+ "name": "solana_expert",
710
+ "instructions": "You are a Solana expert that can swap tokens.",
711
+ "specialization": "Solana Blockchain",
712
+ "tools": ["solana_swap"], # Enable the tool for this agent
713
+ }
714
+ ],
684
715
  }
685
716
 
686
717
  solana_agent = SolanaAgent(config=config)
687
718
 
688
- async for response in solana_agent.process("user123", "What is my SOL balance?"):
719
+ async for response in solana_agent.process("user123", "Swap 0.01 Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB to So11111111111111111111111111111111111111112"):
689
720
  print(response, end="")
690
721
  ```
691
722
 
@@ -737,7 +768,7 @@ from solana_agent import SolanaAgent
737
768
  config = {
738
769
  "tools": {
739
770
  "mcp": {
740
- "urls": ["my-zapier-mcp-url"],
771
+ "url": "my-zapier-mcp-url",
741
772
  }
742
773
  },
743
774
  "agents": [
@@ -36,8 +36,8 @@ solana_agent/services/agent.py,sha256=q5cYzY6Jp5HFtYgJtrqTBWp5Z2n3dXdpQ5YScSKfvP
36
36
  solana_agent/services/knowledge_base.py,sha256=ZvOPrSmcNDgUzz4bJIQ4LeRl9vMZiK9hOfs71IpB7Bk,32735
37
37
  solana_agent/services/query.py,sha256=ENUfs4WSTpODMRXppDVW-Y3li9jYn8pOfQIHIPerUdQ,18498
38
38
  solana_agent/services/routing.py,sha256=C5Ku4t9TqvY7S8wlUPMTC04HCrT4Ib3E8Q8yX0lVU_s,7137
39
- solana_agent-29.2.1.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
40
- solana_agent-29.2.1.dist-info/METADATA,sha256=5yfqF9bxgPvHMjsxgor_vHhpmnRHODY8N3IQ4QgexQU,35620
41
- solana_agent-29.2.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
- solana_agent-29.2.1.dist-info/entry_points.txt,sha256=-AuT_mfqk8dlZ0pHuAjx1ouAWpTRjpqvEUa6YV3lmc0,53
43
- solana_agent-29.2.1.dist-info/RECORD,,
39
+ solana_agent-29.2.2.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
40
+ solana_agent-29.2.2.dist-info/METADATA,sha256=cCliPjVhs1OYUrlewGZDXyRvASDLRKMgrC2g7DPzaYY,36578
41
+ solana_agent-29.2.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
+ solana_agent-29.2.2.dist-info/entry_points.txt,sha256=-AuT_mfqk8dlZ0pHuAjx1ouAWpTRjpqvEUa6YV3lmc0,53
43
+ solana_agent-29.2.2.dist-info/RECORD,,