solana-agent 30.0.5__py3-none-any.whl → 30.0.7__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.
@@ -129,7 +129,7 @@ class MemoryRepository(MemoryProvider):
129
129
  return
130
130
 
131
131
  async def retrieve(self, user_id: str) -> str:
132
- """Retrieve memory context from Zep and MongoDB."""
132
+ """Retrieve memory context from Zep."""
133
133
  try:
134
134
  memories = ""
135
135
  if self.zep:
@@ -137,20 +137,6 @@ class MemoryRepository(MemoryProvider):
137
137
  if memory and memory.context:
138
138
  memories = memory.context
139
139
 
140
- if self.mongo:
141
- query = {"user_id": user_id}
142
- sort = [("timestamp", -1)]
143
- limit = 1
144
- skip = 0
145
- mongo_memory = self.mongo.find(
146
- self.collection, query, sort=sort, limit=limit, skip=skip
147
- )
148
- if mongo_memory:
149
- for doc in mongo_memory:
150
- user_message = doc.get("user_message")
151
- assistant_message = doc.get("assistant_message")
152
- if user_message and assistant_message:
153
- memories += f"\nUser: {user_message}\nAssistant: {assistant_message}"
154
140
  return memories
155
141
 
156
142
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 30.0.5
3
+ Version: 30.0.7
4
4
  Summary: AI Agents for Solana
5
5
  License: MIT
6
6
  Keywords: solana,solana ai,solana agent,ai,ai agent,ai agents
@@ -15,14 +15,14 @@ Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
17
  Requires-Dist: instructor (==1.8.3)
18
- Requires-Dist: llama-index-core (==0.12.41)
18
+ Requires-Dist: llama-index-core (==0.12.43)
19
19
  Requires-Dist: llama-index-embeddings-openai (==0.3.1)
20
- Requires-Dist: logfire (==3.18.0)
21
- Requires-Dist: openai (==1.84.0)
20
+ Requires-Dist: logfire (==3.21.1)
21
+ Requires-Dist: openai (==1.88.0)
22
22
  Requires-Dist: pillow (==11.2.1)
23
- Requires-Dist: pinecone (==7.0.2)
23
+ Requires-Dist: pinecone (==7.2.0)
24
24
  Requires-Dist: pydantic (>=2)
25
- Requires-Dist: pymongo (==4.13.0)
25
+ Requires-Dist: pymongo (==4.13.2)
26
26
  Requires-Dist: pypdf (==5.6.0)
27
27
  Requires-Dist: rich (>=13,<14.0)
28
28
  Requires-Dist: scrubadub (==2.0.1)
@@ -704,7 +704,8 @@ class TestTool(Tool):
704
704
  "query": {"type": "string", "description": "Search query text"},
705
705
  "user_id": {"type": "string", "description": "User ID for the search session"}
706
706
  },
707
- "required": ["query", "user_id"]
707
+ "required": ["query", "user_id"],
708
+ "additionalProperties": False,
708
709
  }
709
710
 
710
711
  async def execute(self, **params) -> Dict[str, Any]:
@@ -30,14 +30,14 @@ solana_agent/plugins/registry.py,sha256=VAG0BWdUUIsEE-VpATtHi8qat7ziPuh7pKuzGXau
30
30
  solana_agent/plugins/tools/__init__.py,sha256=VDjJxvUjefIy10VztQ9WDKgIegvDbIXBQWsHLhxdZ3o,125
31
31
  solana_agent/plugins/tools/auto_tool.py,sha256=uihijtlc9CCqCIaRcwPuuN7o1SHIpWL2GV3vr33GG3E,1576
32
32
  solana_agent/repositories/__init__.py,sha256=fP83w83CGzXLnSdq-C5wbw9EhWTYtqE2lQTgp46-X_4,163
33
- solana_agent/repositories/memory.py,sha256=SKQJJisrERccqd4cm4ERlp5BmKHVQAp1fzp8ce4i2bw,8377
33
+ solana_agent/repositories/memory.py,sha256=wM6CSUwhXIbi4bCPiyhdbVfarjhdc6MLPX8sOzYPqFA,7680
34
34
  solana_agent/services/__init__.py,sha256=iko0c2MlF8b_SA_nuBGFllr2E3g_JowOrOzGcnU9tkA,162
35
35
  solana_agent/services/agent.py,sha256=EK4tGeG2nk-pIAvZMiKC1dlPVuybouGliONcJiB_2k8,19267
36
36
  solana_agent/services/knowledge_base.py,sha256=ZvOPrSmcNDgUzz4bJIQ4LeRl9vMZiK9hOfs71IpB7Bk,32735
37
37
  solana_agent/services/query.py,sha256=3v5Ym8UqL0rfOC-0MWHALAsS2jVWdpUR3A-YI9n0xyo,18771
38
38
  solana_agent/services/routing.py,sha256=C5Ku4t9TqvY7S8wlUPMTC04HCrT4Ib3E8Q8yX0lVU_s,7137
39
- solana_agent-30.0.5.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
40
- solana_agent-30.0.5.dist-info/METADATA,sha256=dOYowRXQSmbB9Js31PaZEe7_I4QVEWebwpr2203obp4,29531
41
- solana_agent-30.0.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
- solana_agent-30.0.5.dist-info/entry_points.txt,sha256=-AuT_mfqk8dlZ0pHuAjx1ouAWpTRjpqvEUa6YV3lmc0,53
43
- solana_agent-30.0.5.dist-info/RECORD,,
39
+ solana_agent-30.0.7.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
40
+ solana_agent-30.0.7.dist-info/METADATA,sha256=qCMWo_HoG20jJzINtU6wTS27q3T3nv6gvrcRJd8VC7c,29575
41
+ solana_agent-30.0.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
+ solana_agent-30.0.7.dist-info/entry_points.txt,sha256=-AuT_mfqk8dlZ0pHuAjx1ouAWpTRjpqvEUa6YV3lmc0,53
43
+ solana_agent-30.0.7.dist-info/RECORD,,