solana-agent 29.1.3__py3-none-any.whl → 29.1.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.
@@ -176,7 +176,7 @@ class SolanaAgentFactory:
176
176
  config=config,
177
177
  api_key=config["gemini"]["api_key"],
178
178
  base_url="https://generativelanguage.googleapis.com/v1beta/openai/",
179
- model="gemini-2.5-flash-preview-04-17",
179
+ model="gemini-2.5-flash-preview-05-20",
180
180
  output_guardrails=output_guardrails,
181
181
  ) # pragma: no cover
182
182
 
@@ -129,13 +129,28 @@ class MemoryRepository(MemoryProvider):
129
129
  return
130
130
 
131
131
  async def retrieve(self, user_id: str) -> str:
132
- """Retrieve memory context from Zep only."""
132
+ """Retrieve memory context from Zep and MongoDB."""
133
133
  try:
134
134
  memories = ""
135
135
  if self.zep:
136
136
  memory = await self.zep.memory.get(session_id=user_id)
137
137
  if memory and memory.context:
138
138
  memories = memory.context
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}"
139
154
  return memories
140
155
 
141
156
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 29.1.3
3
+ Version: 29.1.5
4
4
  Summary: AI Agents for Solana
5
5
  License: MIT
6
6
  Keywords: solana,solana ai,solana agent,ai,ai agent,ai agents
@@ -14,20 +14,20 @@ Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
- Requires-Dist: instructor (==1.8.1)
18
- Requires-Dist: llama-index-core (==0.12.35)
17
+ Requires-Dist: instructor (==1.8.2)
18
+ Requires-Dist: llama-index-core (==0.12.37)
19
19
  Requires-Dist: llama-index-embeddings-openai (==0.3.1)
20
- Requires-Dist: logfire (==3.15.1)
21
- Requires-Dist: openai (==1.78.1)
20
+ Requires-Dist: logfire (==3.16.0)
21
+ Requires-Dist: openai (==1.79.0)
22
22
  Requires-Dist: pillow (==11.2.1)
23
23
  Requires-Dist: pinecone (==6.0.2)
24
24
  Requires-Dist: pydantic (>=2)
25
- Requires-Dist: pymongo (==4.12.1)
25
+ Requires-Dist: pymongo (==4.13.0)
26
26
  Requires-Dist: pypdf (==5.5.0)
27
27
  Requires-Dist: rich (>=13,<14.0)
28
28
  Requires-Dist: scrubadub (==2.0.1)
29
- Requires-Dist: typer (==0.15.3)
30
- Requires-Dist: zep-cloud (==2.12.1)
29
+ Requires-Dist: typer (==0.15.4)
30
+ Requires-Dist: zep-cloud (==2.12.3)
31
31
  Project-URL: Documentation, https://docs.solana-agent.com
32
32
  Project-URL: Homepage, https://solana-agent.com
33
33
  Project-URL: Repository, https://github.com/truemagic-coder/solana-agent
@@ -10,7 +10,7 @@ solana_agent/domains/__init__.py,sha256=HiC94wVPRy-QDJSSRywCRrhrFfTBeHjfi5z-QfZv
10
10
  solana_agent/domains/agent.py,sha256=3Q1wg4eIul0CPpaYBOjEthKTfcdhf1SAiWc2R-IMGO8,2561
11
11
  solana_agent/domains/routing.py,sha256=1yR4IswGcmREGgbOOI6TKCfuM7gYGOhQjLkBqnZ-rNo,582
12
12
  solana_agent/factories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- solana_agent/factories/agent_factory.py,sha256=hnnFy1zw_nKjt34xOncqF1VgQaOoGKJI_0ClHMS_HVI,14288
13
+ solana_agent/factories/agent_factory.py,sha256=Zxdk9bJ00cEek4gdKnfxG9Fcgjgt_ATb0W0xYctgpmI,14288
14
14
  solana_agent/guardrails/pii.py,sha256=FCz1IC3mmkr41QFFf5NaC0fwJrVkwFsxgyOCS2POO5I,4428
15
15
  solana_agent/interfaces/__init__.py,sha256=IQs1WIM1FeKP1-kY2FEfyhol_dB-I-VAe2rD6jrVF6k,355
16
16
  solana_agent/interfaces/client/client.py,sha256=hFYe04lFGbp4BDlUMOnYQrp_SQXFPcktGOwsi0F87vU,3140
@@ -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=e-27ju6wmurxSxULzr_uDHxxdnvw8KrJt9NWyvAz-i4,7684
33
+ solana_agent/repositories/memory.py,sha256=SKQJJisrERccqd4cm4ERlp5BmKHVQAp1fzp8ce4i2bw,8377
34
34
  solana_agent/services/__init__.py,sha256=iko0c2MlF8b_SA_nuBGFllr2E3g_JowOrOzGcnU9tkA,162
35
35
  solana_agent/services/agent.py,sha256=QoeQq_OEWyLdBS0FPa-lXm5qiE0RnRfrCKiFTfOSGE0,42369
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.1.3.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
40
- solana_agent-29.1.3.dist-info/METADATA,sha256=s1u3DVFDUR051DLgBWWtVvUa-o9zKeZW24Uax_3PWic,35804
41
- solana_agent-29.1.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
- solana_agent-29.1.3.dist-info/entry_points.txt,sha256=-AuT_mfqk8dlZ0pHuAjx1ouAWpTRjpqvEUa6YV3lmc0,53
43
- solana_agent-29.1.3.dist-info/RECORD,,
39
+ solana_agent-29.1.5.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
40
+ solana_agent-29.1.5.dist-info/METADATA,sha256=20UQizPZr3dgxnakQU9NaPQw65RFz5ZduSN0VUssauw,35804
41
+ solana_agent-29.1.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
+ solana_agent-29.1.5.dist-info/entry_points.txt,sha256=-AuT_mfqk8dlZ0pHuAjx1ouAWpTRjpqvEUa6YV3lmc0,53
43
+ solana_agent-29.1.5.dist-info/RECORD,,