unique-user-memory 2026.28.0.dev2__tar.gz → 2026.28.0.dev4__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.
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/PKG-INFO +3 -3
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/pyproject.toml +3 -3
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/unique_user_memory/user_memory_prompts.py +3 -2
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/README.md +0 -0
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/unique_user_memory/__init__.py +0 -0
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/unique_user_memory/config.py +0 -0
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/unique_user_memory/tests/test_user_memory.py +0 -0
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/unique_user_memory/user_memory.py +0 -0
- {unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/unique_user_memory/user_memory_postprocessor.py +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: unique-user-memory
|
|
3
|
-
Version: 2026.28.0.
|
|
3
|
+
Version: 2026.28.0.dev4
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Fabian Schläpfer
|
|
6
6
|
Author-email: Fabian Schläpfer <fabian@unique.ch>
|
|
7
7
|
License: Proprietary
|
|
8
8
|
Requires-Dist: jinja2>=3.1.6
|
|
9
9
|
Requires-Dist: pydantic>=2.8.2
|
|
10
|
-
Requires-Dist: unique-sdk>=2026.28.0.
|
|
11
|
-
Requires-Dist: unique-toolkit>=2026.28.0.
|
|
10
|
+
Requires-Dist: unique-sdk>=2026.28.0.dev8,<2026.28.0rc0
|
|
11
|
+
Requires-Dist: unique-toolkit>=2026.28.0.dev6,<2026.28.0rc0
|
|
12
12
|
Requires-Python: >=3.12, <4
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "unique_user_memory"
|
|
3
|
-
version = "2026.28.0.
|
|
3
|
+
version = "2026.28.0.dev4"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Fabian Schläpfer", email = "fabian@unique.ch" },
|
|
@@ -11,8 +11,8 @@ requires-python = ">=3.12,<4"
|
|
|
11
11
|
dependencies = [
|
|
12
12
|
"jinja2>=3.1.6",
|
|
13
13
|
"pydantic>=2.8.2",
|
|
14
|
-
"unique-sdk>=2026.28.0.
|
|
15
|
-
"unique-toolkit>=2026.28.0.
|
|
14
|
+
"unique-sdk>=2026.28.0.dev8,<2026.28.0rc0",
|
|
15
|
+
"unique-toolkit>=2026.28.0.dev6,<2026.28.0rc0",
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
[dependency-groups]
|
|
@@ -111,9 +111,9 @@ NEVER extract:
|
|
|
111
111
|
error messages, file contents, search results.
|
|
112
112
|
- Anything stated as third-party information or retrieved context.
|
|
113
113
|
|
|
114
|
-
#
|
|
114
|
+
# Word budget - STRICT
|
|
115
115
|
|
|
116
|
-
The complete file MUST be <= {{ max_tokens }} tokens.
|
|
116
|
+
The complete file MUST be <= {{ max_words }} words (corresponding to {{ max_tokens }} tokens).
|
|
117
117
|
When approaching the budget, drop content in this priority order:
|
|
118
118
|
|
|
119
119
|
1. Oldest entries in Recent Topics.
|
|
@@ -148,6 +148,7 @@ def consolidation_system_prompt(max_tokens: int) -> str:
|
|
|
148
148
|
section_list = "\n".join(f"- ## {heading}" for heading in SECTION_HEADINGS)
|
|
149
149
|
now = datetime.now(timezone.utc)
|
|
150
150
|
return Template(_CONSOLIDATION_SYSTEM_PROMPT_TEMPLATE).render(
|
|
151
|
+
max_words=max_tokens * 0.75,
|
|
151
152
|
max_tokens=max_tokens,
|
|
152
153
|
section_list=section_list,
|
|
153
154
|
now_datetime=now.strftime("%Y-%m-%d %H:%M UTC"),
|
|
File without changes
|
|
File without changes
|
{unique_user_memory-2026.28.0.dev2 → unique_user_memory-2026.28.0.dev4}/unique_user_memory/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|