solana-agent 27.3.3__py3-none-any.whl → 27.3.5__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.
@@ -127,20 +127,6 @@ class MemoryRepository(MemoryProvider):
127
127
  memory = await self.zep.memory.get(session_id=user_id)
128
128
  if memory and memory.context:
129
129
  memories = memory.context
130
- if self.mongo:
131
- mongo_memory = self.mongo.find(
132
- self.collection,
133
- {"user_id": user_id},
134
- sort=[("timestamp", -1)],
135
- limit=3
136
- )
137
- if mongo_memory:
138
- # Concatenate MongoDB memory with Zep memory
139
- mongo_memory = [
140
- f"{msg['user_message']} {msg['assistant_message']}"
141
- for msg in mongo_memory
142
- ]
143
- memories += " ".join(mongo_memory)
144
130
  return memories
145
131
 
146
132
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 27.3.3
3
+ Version: 27.3.5
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -17,7 +17,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
17
  Requires-Dist: instructor (>=1.7.9,<2.0.0)
18
18
  Requires-Dist: llama-index-core (>=0.12.30,<0.13.0)
19
19
  Requires-Dist: llama-index-embeddings-openai (>=0.3.1,<0.4.0)
20
- Requires-Dist: openai (>=1.74.0,<2.0.0)
20
+ Requires-Dist: openai (>=1.75.0,<2.0.0)
21
21
  Requires-Dist: pinecone (>=6.0.2,<7.0.0)
22
22
  Requires-Dist: pydantic (>=2)
23
23
  Requires-Dist: pymongo (>=4.12.0,<5.0.0)
@@ -57,6 +57,7 @@ Build your AI business in three lines of code!
57
57
  * Extensible Tooling
58
58
  * Simple Business Definition
59
59
  * Knowledge Base with PDF support
60
+ * MCP Support
60
61
  * Tested & Secure
61
62
  * Built in Python
62
63
  * Powers [CometHeart](https://cometheart.com) & [WalletBubbles](https://walletbubbles.com)
@@ -66,6 +67,7 @@ Build your AI business in three lines of code!
66
67
  * Easy three lines of code setup
67
68
  * Fast AI responses
68
69
  * Solana Ecosystem Integration via [AgentiPy](https://github.com/niceberginc/agentipy)
70
+ * MCP tool usage with first-class support for [Zapier](https://zapier.com)
69
71
  * Designed for a multi-agent swarm
70
72
  * Seamless text and audio streaming with real-time multi-modal processing
71
73
  * Configurable audio voice characteristics via prompting
@@ -514,6 +516,40 @@ async for response in solana_agent.process("user123", "What is the latest news o
514
516
  print(response, end="")
515
517
  ```
516
518
 
519
+ ### MCP
520
+
521
+ [Zapier](https://zapier.com) MCP has been tested, works, and is supported.
522
+
523
+ Other MCP servers may work but are not supported.
524
+
525
+ `pip install sakit`
526
+
527
+ ```python
528
+
529
+ from solana_agent import SolanaAgent
530
+
531
+ config = {
532
+ "tools": {
533
+ "mcp": {
534
+ "urls": ["my-zapier-mcp-url"],
535
+ }
536
+ },
537
+ "agents": [
538
+ {
539
+ "name": "zapier_expert",
540
+ "instructions": "You are an expert in using Zapier integrations using MCP. You always use the mcp tool to perform Zapier AI like actions.",
541
+ "specialization": "Zapier service integration expert",
542
+ "tools": ["mcp"], # Enable the tool for this agent
543
+ }
544
+ ]
545
+ }
546
+
547
+ solana_agent = SolanaAgent(config=config)
548
+
549
+ async for response in solana_agent.process("user123", "Send an email to bob@bob.com to clean his room!"):
550
+ print(response, end="")
551
+ ```
552
+
517
553
  ### Inline Tool Example
518
554
 
519
555
  ```python
@@ -27,13 +27,13 @@ solana_agent/plugins/registry.py,sha256=5S0DlUQKogsg1zLiRUIGMHEmGYHtOovU-S-5W1Mw
27
27
  solana_agent/plugins/tools/__init__.py,sha256=c0z7ij42gs94_VJrcn4Y8gUlTxMhsFNY6ahIsNswdLk,231
28
28
  solana_agent/plugins/tools/auto_tool.py,sha256=DgES_cZ6xKSf_HJpFINpvJxrjVlk5oeqa7pZRBsR9SM,1575
29
29
  solana_agent/repositories/__init__.py,sha256=fP83w83CGzXLnSdq-C5wbw9EhWTYtqE2lQTgp46-X_4,163
30
- solana_agent/repositories/memory.py,sha256=0S3oJIwrJgLokFZHc5nL6Wva_CLdnkwJKfAwmMcpa9E,7853
30
+ solana_agent/repositories/memory.py,sha256=xe6yvts31IDcv445LtRGkOpw8YWqssiSB40QAfx9zxY,7271
31
31
  solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9OovidU,163
32
32
  solana_agent/services/agent.py,sha256=ZP-2fj0jbutasdul_BEQXaLLPq3Fpu2uGsVsawkVgrg,27040
33
33
  solana_agent/services/knowledge_base.py,sha256=bvoLZHSrfp6BhT8i4fKhxOkaUkYGCFedLp2uTzL-7xI,32379
34
34
  solana_agent/services/query.py,sha256=rAGC0Q_0Y_TQ-ONhyovQ_44myl1-not_VhD_hobmCE8,13005
35
35
  solana_agent/services/routing.py,sha256=hC5t98KZPHty9kMX27KcuxcmZlwjm0g59uMkR8n7k_w,6818
36
- solana_agent-27.3.3.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
37
- solana_agent-27.3.3.dist-info/METADATA,sha256=ThcFDoTuhNekmLWZY2ekAK574cEetQL7RbbXHQO9kYA,22819
38
- solana_agent-27.3.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
39
- solana_agent-27.3.3.dist-info/RECORD,,
36
+ solana_agent-27.3.5.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
37
+ solana_agent-27.3.5.dist-info/METADATA,sha256=Et1o5c7hyNePnQy8fYTtk2O2h2Iu4vHFYXyuAGXFNDQ,23764
38
+ solana_agent-27.3.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
39
+ solana_agent-27.3.5.dist-info/RECORD,,