solana-agent 17.1.1__py3-none-any.whl → 17.1.3__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.
@@ -60,8 +60,11 @@ class SolanaAgentFactory:
60
60
  )
61
61
 
62
62
  # Create repositories
63
- memory_provider = MemoryRepository(
64
- db_adapter, config["zep"].get("api_key"), config["zep"].get("base_url"))
63
+ if "zep" in config:
64
+ memory_provider = MemoryRepository(
65
+ db_adapter, config["zep"].get("api_key"), config["zep"].get("base_url"))
66
+ else:
67
+ memory_provider = MemoryRepository(db_adapter)
65
68
  agent_repo = MongoAgentRepository(db_adapter)
66
69
 
67
70
  # Create primary services
@@ -32,7 +32,7 @@ class MemoryRepository(MemoryProvider):
32
32
  elif zep_api_key and zep_base_url:
33
33
  self.zep = AsyncZep(api_key=zep_api_key, base_url=zep_base_url)
34
34
  else:
35
- self.zep = AsyncZep(base_url="http://localhost:8000")
35
+ self.zep = None
36
36
 
37
37
  async def store(self, user_id: str, messages: List[Dict[str, Any]]) -> None:
38
38
  """Store messages in both Zep and MongoDB."""
@@ -55,6 +55,9 @@ class MemoryRepository(MemoryProvider):
55
55
  print(f"MongoDB storage error: {e}")
56
56
 
57
57
  # Store in Zep with role-based format
58
+ if not self.zep:
59
+ return
60
+
58
61
  try:
59
62
  try:
60
63
  await self.zep.user.add(user_id=user_id)
@@ -82,6 +85,9 @@ class MemoryRepository(MemoryProvider):
82
85
 
83
86
  async def retrieve(self, user_id: str) -> str:
84
87
  """Retrieve memory context from Zep only."""
88
+ if not self.zep:
89
+ return ""
90
+
85
91
  try:
86
92
  memory = await self.zep.memory.get(session_id=user_id)
87
93
 
@@ -101,6 +107,9 @@ class MemoryRepository(MemoryProvider):
101
107
  except Exception as e:
102
108
  print(f"MongoDB deletion error: {e}")
103
109
 
110
+ if not self.zep:
111
+ return
112
+
104
113
  try:
105
114
  await self.zep.memory.delete(session_id=user_id)
106
115
  await self.zep.user.delete(user_id=user_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 17.1.1
3
+ Version: 17.1.3
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -43,7 +43,7 @@ Power your business using Solana Agent!
43
43
  ## Features
44
44
 
45
45
  * Seamless text and audio streaming with real-time multi-modal processing
46
- * Persistent memory that preserves context across all agent interactions
46
+ * Persistent memory that preserves context across all agent interactions (optional)
47
47
  * Intelligent query routing to agents with optimal domain expertise
48
48
  * Unified value system ensuring brand-aligned agent responses
49
49
  * Powerful tool integration using standard Python packages
@@ -54,7 +54,7 @@ Power your business using Solana Agent!
54
54
  * [Python](https://python.org) - Programming Language
55
55
  * [OpenAI](https://openai.com) - LLMs
56
56
  * [MongoDB](https://mongodb.com) - Database
57
- * [Zep](https://getzep.com) - Conversational Memory
57
+ * [Zep](https://getzep.com) - Conversational Memory (optional)
58
58
 
59
59
  ## Installation
60
60
 
@@ -84,7 +84,11 @@ config = {
84
84
  "database": "solana_agent"
85
85
  },
86
86
  "openai": {
87
- "api_key": "your-openai-key",
87
+ "api_key": "your-openai-api-key",
88
+ },
89
+ "zep": { # optional
90
+ "api_key": "your-zep-api-key",
91
+ "base_url": "your-zep-base-url", # not applicable if using Zep Cloud
88
92
  },
89
93
  "agents": [
90
94
  {
@@ -8,7 +8,7 @@ solana_agent/domains/__init__.py,sha256=HiC94wVPRy-QDJSSRywCRrhrFfTBeHjfi5z-QfZv
8
8
  solana_agent/domains/agent.py,sha256=Ak_hD5gTCzRqAHLmqtxnny0Xki1qAKR7RzLW9LOQBTg,2930
9
9
  solana_agent/domains/routing.py,sha256=UDlgTjUoC9xIBVYu_dnf9-KG_bBgdEXAv_UtDOrYo0w,650
10
10
  solana_agent/factories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- solana_agent/factories/agent_factory.py,sha256=7krNpsAHnle-IFjKqYz4aJgfvlj7yMRhfSeqi-4S2sI,5563
11
+ solana_agent/factories/agent_factory.py,sha256=wNnWldaMMHqegNtmKSD3ONxAfp_j8-gUjitAY-55QLk,5672
12
12
  solana_agent/interfaces/__init__.py,sha256=IQs1WIM1FeKP1-kY2FEfyhol_dB-I-VAe2rD6jrVF6k,355
13
13
  solana_agent/interfaces/client/client.py,sha256=2-YxrNH54aDYf68KYSLfFVBktAJkVCGG8TE76yzM8N8,1445
14
14
  solana_agent/interfaces/plugins/plugins.py,sha256=TMmTXwHhmkdJpIhgADfrpGGGk7PHP7O9Qi89uA26uMI,3013
@@ -26,12 +26,12 @@ solana_agent/plugins/tools/__init__.py,sha256=c0z7ij42gs94_VJrcn4Y8gUlTxMhsFNY6a
26
26
  solana_agent/plugins/tools/auto_tool.py,sha256=Z3CcOzwdXpzciH-5yphhd9qt1b9owTxhwC-dYmPF6B0,1489
27
27
  solana_agent/repositories/__init__.py,sha256=fP83w83CGzXLnSdq-C5wbw9EhWTYtqE2lQTgp46-X_4,163
28
28
  solana_agent/repositories/agent.py,sha256=e1rnsQiigkKwJNLKro86a3b6TBiky3GMfmCRc5b_jPw,3187
29
- solana_agent/repositories/memory.py,sha256=GABGwaz00thjviHewLvb18NeKE8dkBROxy_stsiiWrE,4722
29
+ solana_agent/repositories/memory.py,sha256=DrhaVxlE-iAOmX0sfDCqgdPJauYvrnPd7rmVlf6_HGE,4822
30
30
  solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9OovidU,163
31
31
  solana_agent/services/agent.py,sha256=j0aI_BGaY5Nhkb9ga0r4BqI3qMKu5TOc4QPQsU3NHyQ,17000
32
32
  solana_agent/services/query.py,sha256=rm7XlTCcp5NeorIaLUdr7rdxtWCgg1Q1qe5YuI1bumo,11246
33
33
  solana_agent/services/routing.py,sha256=TPJ2Pas4acE93QzMEV6ZP670OtTNrVEPa76fz6urEV4,4996
34
- solana_agent-17.1.1.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
- solana_agent-17.1.1.dist-info/METADATA,sha256=XqHyBtNMXKlh2ve12z7eg0aAxI5I5IGEesMOhMIXuOU,4547
36
- solana_agent-17.1.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
- solana_agent-17.1.1.dist-info/RECORD,,
34
+ solana_agent-17.1.3.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
+ solana_agent-17.1.3.dist-info/METADATA,sha256=vrwcjIs5-jurOcjV-_yIrHRwezMJAnci0-8WNfzIjZE,4720
36
+ solana_agent-17.1.3.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
+ solana_agent-17.1.3.dist-info/RECORD,,