solana-agent 0.0.18__tar.gz → 0.0.20__tar.gz
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.
- {solana_agent-0.0.18 → solana_agent-0.0.20}/PKG-INFO +1 -1
- {solana_agent-0.0.18 → solana_agent-0.0.20}/pyproject.toml +1 -1
- {solana_agent-0.0.18 → solana_agent-0.0.20}/solana_agent/ai.py +5 -6
- {solana_agent-0.0.18 → solana_agent-0.0.20}/LICENSE +0 -0
- {solana_agent-0.0.18 → solana_agent-0.0.20}/README.md +0 -0
- {solana_agent-0.0.18 → solana_agent-0.0.20}/solana_agent/__init__.py +0 -0
|
@@ -368,7 +368,7 @@ class AI:
|
|
|
368
368
|
user_id: str,
|
|
369
369
|
query: str,
|
|
370
370
|
limit: int = 10,
|
|
371
|
-
) ->
|
|
371
|
+
) -> str:
|
|
372
372
|
"""Search stored conversation facts using Zep memory integration.
|
|
373
373
|
|
|
374
374
|
Args:
|
|
@@ -396,14 +396,14 @@ class AI:
|
|
|
396
396
|
facts = []
|
|
397
397
|
results = self._sync_zep.memory.search_sessions(
|
|
398
398
|
user_id=user_id,
|
|
399
|
+
session_ids=[user_id],
|
|
399
400
|
text=query,
|
|
400
401
|
limit=limit,
|
|
401
402
|
)
|
|
402
403
|
for result in results.results:
|
|
403
404
|
fact = result.fact.fact
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
return facts
|
|
405
|
+
facts.append(fact)
|
|
406
|
+
return json.dumps(facts)
|
|
407
407
|
return None
|
|
408
408
|
|
|
409
409
|
# search internet tool - has to be sync
|
|
@@ -522,8 +522,6 @@ class AI:
|
|
|
522
522
|
try:
|
|
523
523
|
if use_facts:
|
|
524
524
|
facts = self.search_facts(user_id, query)
|
|
525
|
-
if not facts:
|
|
526
|
-
facts = ""
|
|
527
525
|
else:
|
|
528
526
|
facts = ""
|
|
529
527
|
if use_perplexity:
|
|
@@ -616,6 +614,7 @@ class AI:
|
|
|
616
614
|
"""
|
|
617
615
|
if self._zep:
|
|
618
616
|
await self._zep.memory.delete(session_id=user_id)
|
|
617
|
+
await self._zep.user.delete(user_id=user_id)
|
|
619
618
|
|
|
620
619
|
async def _listen(self, audio_content: bytes, input_format: str) -> str:
|
|
621
620
|
transcription = self._client.audio.transcriptions.create(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|