hebbrix 2.0.0__tar.gz → 2.0.2__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.
- {hebbrix-2.0.0 → hebbrix-2.0.2}/PKG-INFO +2 -2
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix/__init__.py +1 -1
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix/chat.py +35 -14
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix/client.py +1 -1
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix.egg-info/PKG-INFO +2 -2
- {hebbrix-2.0.0 → hebbrix-2.0.2}/pyproject.toml +2 -2
- {hebbrix-2.0.0 → hebbrix-2.0.2}/setup.py +1 -1
- {hebbrix-2.0.0 → hebbrix-2.0.2}/MANIFEST.in +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/README.md +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix/exceptions.py +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix/resources.py +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix.egg-info/SOURCES.txt +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix.egg-info/dependency_links.txt +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix.egg-info/requires.txt +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/hebbrix.egg-info/top_level.txt +0 -0
- {hebbrix-2.0.0 → hebbrix-2.0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hebbrix
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Advanced Memory API for AI Agents with Reinforcement Learning - 3-line integration
|
|
5
5
|
Home-page: https://github.com/hebbrix/hebbrix-python
|
|
6
6
|
Author: Hebbrix Team
|
|
@@ -11,7 +11,7 @@ Project-URL: Homepage, https://hebbrix.com
|
|
|
11
11
|
Project-URL: Documentation, https://docs.hebbrix.com
|
|
12
12
|
Project-URL: Repository, https://github.com/hebbrix/hebbrix-python
|
|
13
13
|
Project-URL: Bug Tracker, https://github.com/hebbrix/hebbrix-python/issues
|
|
14
|
-
Project-URL: API Reference, https://
|
|
14
|
+
Project-URL: API Reference, https://api.hebbrix.com/docs
|
|
15
15
|
Keywords: ai,memory,agents,llm,chatbot,assistant,ml,reinforcement-learning,knowledge-graph,vector-search,rag,temporal,procedural-memory,working-memory
|
|
16
16
|
Classifier: Development Status :: 5 - Production/Stable
|
|
17
17
|
Classifier: Intended Audience :: Developers
|
|
@@ -46,7 +46,7 @@ class MemoryChat:
|
|
|
46
46
|
Args:
|
|
47
47
|
api_key: Hebbrix API key
|
|
48
48
|
base_url: API base URL (default: https://api.hebbrix.com)
|
|
49
|
-
model: LLM model to use (default: gpt-
|
|
49
|
+
model: LLM model to use (default: gpt-5-mini)
|
|
50
50
|
auto_memory: Enable automatic memory retrieval (default: True)
|
|
51
51
|
auto_profile: Enable user profile injection (default: True)
|
|
52
52
|
personalization: Enable RL-powered personalization (default: True)
|
|
@@ -58,8 +58,8 @@ class MemoryChat:
|
|
|
58
58
|
def __init__(
|
|
59
59
|
self,
|
|
60
60
|
api_key: str,
|
|
61
|
-
base_url: str = "
|
|
62
|
-
model: str = "gpt-
|
|
61
|
+
base_url: str = "https://api.hebbrix.com",
|
|
62
|
+
model: str = "gpt-5-mini",
|
|
63
63
|
auto_memory: bool = True,
|
|
64
64
|
auto_profile: bool = True,
|
|
65
65
|
personalization: bool = True,
|
|
@@ -222,7 +222,7 @@ class MemoryChat:
|
|
|
222
222
|
Change the LLM model.
|
|
223
223
|
|
|
224
224
|
Args:
|
|
225
|
-
model: Model name (e.g., "gpt-
|
|
225
|
+
model: Model name (e.g., "gpt-5-mini", "gpt-5.2", "claude-3-sonnet")
|
|
226
226
|
"""
|
|
227
227
|
self.model = model
|
|
228
228
|
|
|
@@ -286,6 +286,8 @@ class MemoryChat:
|
|
|
286
286
|
response.raise_for_status()
|
|
287
287
|
|
|
288
288
|
# Convenience methods for memory operations
|
|
289
|
+
# These use synchronous requests.post() (same as send/send_with_context)
|
|
290
|
+
# instead of the async MemoryClient to avoid coroutine issues.
|
|
289
291
|
def add_memory(self, content: str, collection_id: str, importance: float = 0.5) -> Dict[str, Any]:
|
|
290
292
|
"""
|
|
291
293
|
Add a memory manually.
|
|
@@ -298,11 +300,20 @@ class MemoryChat:
|
|
|
298
300
|
Returns:
|
|
299
301
|
Created memory dict
|
|
300
302
|
"""
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
url = f"{self.base_url}/v1/memories"
|
|
304
|
+
headers = {
|
|
305
|
+
"Authorization": f"Bearer {self.api_key}",
|
|
306
|
+
"Content-Type": "application/json",
|
|
307
|
+
}
|
|
308
|
+
payload = {
|
|
309
|
+
"content": content,
|
|
310
|
+
"collection_id": collection_id,
|
|
311
|
+
"importance": importance,
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
response = requests.post(url, json=payload, headers=headers)
|
|
315
|
+
response.raise_for_status()
|
|
316
|
+
return response.json()
|
|
306
317
|
|
|
307
318
|
def search_memories(self, query: str, collection_id: Optional[str] = None, limit: int = 10) -> List[Dict[str, Any]]:
|
|
308
319
|
"""
|
|
@@ -316,11 +327,21 @@ class MemoryChat:
|
|
|
316
327
|
Returns:
|
|
317
328
|
List of memory dicts
|
|
318
329
|
"""
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
330
|
+
url = f"{self.base_url}/v1/search"
|
|
331
|
+
headers = {
|
|
332
|
+
"Authorization": f"Bearer {self.api_key}",
|
|
333
|
+
"Content-Type": "application/json",
|
|
334
|
+
}
|
|
335
|
+
payload: Dict[str, Any] = {
|
|
336
|
+
"query": query,
|
|
337
|
+
"limit": limit,
|
|
338
|
+
}
|
|
339
|
+
if collection_id:
|
|
340
|
+
payload["collection_id"] = collection_id
|
|
341
|
+
|
|
342
|
+
response = requests.post(url, json=payload, headers=headers)
|
|
343
|
+
response.raise_for_status()
|
|
344
|
+
return response.json().get("results", [])
|
|
324
345
|
|
|
325
346
|
|
|
326
347
|
# Convenience function for even simpler usage
|
|
@@ -49,7 +49,7 @@ class MemoryClient:
|
|
|
49
49
|
def __init__(
|
|
50
50
|
self,
|
|
51
51
|
api_key: Optional[str] = None,
|
|
52
|
-
base_url: str = "https://
|
|
52
|
+
base_url: str = "https://api.hebbrix.com",
|
|
53
53
|
timeout: float = 120.0,
|
|
54
54
|
):
|
|
55
55
|
self.api_key = api_key
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hebbrix
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Advanced Memory API for AI Agents with Reinforcement Learning - 3-line integration
|
|
5
5
|
Home-page: https://github.com/hebbrix/hebbrix-python
|
|
6
6
|
Author: Hebbrix Team
|
|
@@ -11,7 +11,7 @@ Project-URL: Homepage, https://hebbrix.com
|
|
|
11
11
|
Project-URL: Documentation, https://docs.hebbrix.com
|
|
12
12
|
Project-URL: Repository, https://github.com/hebbrix/hebbrix-python
|
|
13
13
|
Project-URL: Bug Tracker, https://github.com/hebbrix/hebbrix-python/issues
|
|
14
|
-
Project-URL: API Reference, https://
|
|
14
|
+
Project-URL: API Reference, https://api.hebbrix.com/docs
|
|
15
15
|
Keywords: ai,memory,agents,llm,chatbot,assistant,ml,reinforcement-learning,knowledge-graph,vector-search,rag,temporal,procedural-memory,working-memory
|
|
16
16
|
Classifier: Development Status :: 5 - Production/Stable
|
|
17
17
|
Classifier: Intended Audience :: Developers
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hebbrix"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.2"
|
|
8
8
|
description = "Advanced Memory API for AI Agents with Reinforcement Learning - 3-line integration"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -66,7 +66,7 @@ Homepage = "https://hebbrix.com"
|
|
|
66
66
|
Documentation = "https://docs.hebbrix.com"
|
|
67
67
|
Repository = "https://github.com/hebbrix/hebbrix-python"
|
|
68
68
|
"Bug Tracker" = "https://github.com/hebbrix/hebbrix-python/issues"
|
|
69
|
-
"API Reference" = "https://
|
|
69
|
+
"API Reference" = "https://api.hebbrix.com/docs"
|
|
70
70
|
|
|
71
71
|
[tool.setuptools.packages.find]
|
|
72
72
|
where = ["."]
|
|
@@ -20,7 +20,7 @@ setup(
|
|
|
20
20
|
"Documentation": "https://docs.hebbrix.com",
|
|
21
21
|
"Bug Tracker": "https://github.com/hebbrix/hebbrix-python/issues",
|
|
22
22
|
"Source": "https://github.com/hebbrix/hebbrix-python",
|
|
23
|
-
"API Reference": "https://
|
|
23
|
+
"API Reference": "https://api.hebbrix.com/docs",
|
|
24
24
|
},
|
|
25
25
|
packages=find_packages(include=["hebbrix", "hebbrix.*"]),
|
|
26
26
|
classifiers=[
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|