solana-agent 0.0.16__py3-none-any.whl → 0.0.18__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.
- solana_agent/ai.py +5 -6
- {solana_agent-0.0.16.dist-info → solana_agent-0.0.18.dist-info}/METADATA +1 -1
- solana_agent-0.0.18.dist-info/RECORD +6 -0
- solana_agent-0.0.16.dist-info/RECORD +0 -6
- {solana_agent-0.0.16.dist-info → solana_agent-0.0.18.dist-info}/LICENSE +0 -0
- {solana_agent-0.0.16.dist-info → solana_agent-0.0.18.dist-info}/WHEEL +0 -0
solana_agent/ai.py
CHANGED
|
@@ -155,7 +155,7 @@ class AI:
|
|
|
155
155
|
self._assistant_id = existing_assistant.id
|
|
156
156
|
else:
|
|
157
157
|
self._assistant_id = self._client.beta.assistants.create(
|
|
158
|
-
name=self.
|
|
158
|
+
name=self._name,
|
|
159
159
|
instructions=self._instructions,
|
|
160
160
|
tools=self._tools,
|
|
161
161
|
model=self._openai_assistant_model,
|
|
@@ -367,14 +367,14 @@ class AI:
|
|
|
367
367
|
self,
|
|
368
368
|
user_id: str,
|
|
369
369
|
query: str,
|
|
370
|
-
limit: int
|
|
370
|
+
limit: int = 10,
|
|
371
371
|
) -> List[str] | None:
|
|
372
372
|
"""Search stored conversation facts using Zep memory integration.
|
|
373
373
|
|
|
374
374
|
Args:
|
|
375
375
|
user_id (str): Unique identifier for the user
|
|
376
376
|
query (str): Search query to find relevant facts
|
|
377
|
-
limit (int
|
|
377
|
+
limit (int, optional): Maximum number of facts to return. Defaults to 10.
|
|
378
378
|
|
|
379
379
|
Returns:
|
|
380
380
|
List[str] | None: List of found facts or None if Zep is not configured
|
|
@@ -383,14 +383,13 @@ class AI:
|
|
|
383
383
|
```python
|
|
384
384
|
facts = ai.search_facts(
|
|
385
385
|
user_id="user123",
|
|
386
|
-
query="project requirements"
|
|
387
|
-
limit=5
|
|
386
|
+
query="project requirements"
|
|
388
387
|
)
|
|
389
388
|
# Returns: ["Fact 1", "Fact 2", ...]
|
|
390
389
|
```
|
|
391
390
|
|
|
392
391
|
Note:
|
|
393
|
-
Requires Zep integration to be configured with valid API key
|
|
392
|
+
Requires Zep integration to be configured with valid API key.
|
|
394
393
|
This is a synchronous tool method required for OpenAI function calling.
|
|
395
394
|
"""
|
|
396
395
|
if self._sync_zep:
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
|
|
2
|
+
solana_agent/ai.py,sha256=N6o1_-661b2JwKzua9aycRZFHhH7Out0ZMhxGrUcgkk,33667
|
|
3
|
+
solana_agent-0.0.18.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
|
|
4
|
+
solana_agent-0.0.18.dist-info/METADATA,sha256=jT4SmgV7QjB_arbJrYWX1KRKKpO-xPMHJfulJ1islEI,5577
|
|
5
|
+
solana_agent-0.0.18.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
6
|
+
solana_agent-0.0.18.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
|
|
2
|
-
solana_agent/ai.py,sha256=RbNY0h2ALNkBLgLNVBFSoulSMCWnbb95a5AEJMLyl0k,33717
|
|
3
|
-
solana_agent-0.0.16.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
|
|
4
|
-
solana_agent-0.0.16.dist-info/METADATA,sha256=zk9kf3ixVmnYZZ4Xa1c3fFJbQdXFy4fw6Zob8kufmX8,5577
|
|
5
|
-
solana_agent-0.0.16.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
6
|
-
solana_agent-0.0.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|