solana-agent 27.3.3__py3-none-any.whl → 27.3.4__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.4
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)
@@ -514,6 +514,40 @@ async for response in solana_agent.process("user123", "What is the latest news o
514
514
  print(response, end="")
515
515
  ```
516
516
 
517
+ ### MCP
518
+
519
+ [Zapier](https://zapier.com) MCP has been tested, works, and is supported.
520
+
521
+ Other MCP servers may work but are not supported.
522
+
523
+ `pip install sakit`
524
+
525
+ ```python
526
+
527
+ from solana_agent import SolanaAgent
528
+
529
+ config = {
530
+ "tools": {
531
+ "mcp": {
532
+ "urls": ["my-zapier-mcp-url"],
533
+ }
534
+ },
535
+ "agents": [
536
+ {
537
+ "name": "zapier_expert",
538
+ "instructions": "You are an expert in using Zapier integrations using MCP. You always use the mcp tool to perform Zapier AI like actions.",
539
+ "specialization": "Zapier service integration expert",
540
+ "tools": ["mcp"], # Enable the tool for this agent
541
+ }
542
+ ]
543
+ }
544
+
545
+ solana_agent = SolanaAgent(config=config)
546
+
547
+ async for response in solana_agent.process("user123", "Send an email to bob@bob.com to clean his room!"):
548
+ print(response, end="")
549
+ ```
550
+
517
551
  ### Inline Tool Example
518
552
 
519
553
  ```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.4.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
37
+ solana_agent-27.3.4.dist-info/METADATA,sha256=owAgB8NYsoW0mxYlNBtADXbue9FiuXmN-4xClhpWVG0,23675
38
+ solana_agent-27.3.4.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
39
+ solana_agent-27.3.4.dist-info/RECORD,,