alma-memory 0.3.0__py3-none-any.whl → 0.4.0__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.
- alma/__init__.py +27 -1
- alma/confidence/__init__.py +47 -0
- alma/confidence/engine.py +506 -0
- alma/confidence/types.py +331 -0
- alma/initializer/__init__.py +37 -0
- alma/initializer/initializer.py +410 -0
- alma/initializer/types.py +242 -0
- alma/storage/azure_cosmos.py +6 -0
- {alma_memory-0.3.0.dist-info → alma_memory-0.4.0.dist-info}/METADATA +53 -3
- {alma_memory-0.3.0.dist-info → alma_memory-0.4.0.dist-info}/RECORD +12 -6
- {alma_memory-0.3.0.dist-info → alma_memory-0.4.0.dist-info}/WHEEL +0 -0
- {alma_memory-0.3.0.dist-info → alma_memory-0.4.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alma-memory
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Agent Learning Memory Architecture - Persistent memory for AI agents
|
|
5
5
|
Author-email: RBKunnela <aiagentsprompt@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -366,8 +366,8 @@ alma:
|
|
|
366
366
|
| 8 | Forgetting Mechanism | ✅ Done |
|
|
367
367
|
| 9 | MCP Server + Testing Suite | ✅ Done |
|
|
368
368
|
| 10 | Progress, Sessions, Domains | ✅ Done |
|
|
369
|
-
| 11 | Initializer Agent Pattern |
|
|
370
|
-
| 12 | Forward-Looking Confidence |
|
|
369
|
+
| 11 | Initializer Agent Pattern | ✅ Done |
|
|
370
|
+
| 12 | Forward-Looking Confidence | ✅ Done |
|
|
371
371
|
|
|
372
372
|
## API Reference
|
|
373
373
|
|
|
@@ -425,6 +425,56 @@ schema = get_coding_schema() # or research, sales, general
|
|
|
425
425
|
alma = factory.create_alma(schema, "project-id")
|
|
426
426
|
```
|
|
427
427
|
|
|
428
|
+
### Session Initializer (NEW in v0.4.0)
|
|
429
|
+
|
|
430
|
+
```python
|
|
431
|
+
from alma.initializer import SessionInitializer
|
|
432
|
+
|
|
433
|
+
initializer = SessionInitializer(alma)
|
|
434
|
+
|
|
435
|
+
# Full initialization before starting work
|
|
436
|
+
result = initializer.initialize(
|
|
437
|
+
project_id="my-project",
|
|
438
|
+
agent="Helena",
|
|
439
|
+
user_prompt="Test the login form validation",
|
|
440
|
+
project_path="/path/to/project",
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
# Inject into agent prompt
|
|
444
|
+
prompt = f"""
|
|
445
|
+
{result.to_prompt()}
|
|
446
|
+
|
|
447
|
+
Now proceed with the first work item.
|
|
448
|
+
"""
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Confidence Engine (NEW in v0.4.0)
|
|
452
|
+
|
|
453
|
+
```python
|
|
454
|
+
from alma.confidence import ConfidenceEngine
|
|
455
|
+
|
|
456
|
+
engine = ConfidenceEngine(alma)
|
|
457
|
+
|
|
458
|
+
# Assess a strategy before trying it
|
|
459
|
+
signal = engine.assess_strategy(
|
|
460
|
+
strategy="Use incremental validation",
|
|
461
|
+
context="Testing a 5-field registration form",
|
|
462
|
+
agent="Helena",
|
|
463
|
+
)
|
|
464
|
+
|
|
465
|
+
print(f"Confidence: {signal.confidence_score:.0%}")
|
|
466
|
+
print(f"Recommendation: {signal.recommendation}")
|
|
467
|
+
# → Confidence: 78%
|
|
468
|
+
# → Recommendation: yes
|
|
469
|
+
|
|
470
|
+
# Rank multiple strategies
|
|
471
|
+
rankings = engine.rank_strategies(
|
|
472
|
+
strategies=["Strategy A", "Strategy B", "Strategy C"],
|
|
473
|
+
context="Current task",
|
|
474
|
+
agent="Helena",
|
|
475
|
+
)
|
|
476
|
+
```
|
|
477
|
+
|
|
428
478
|
## License
|
|
429
479
|
|
|
430
480
|
MIT
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
alma/__init__.py,sha256=
|
|
1
|
+
alma/__init__.py,sha256=b15Ug9R7GcQ6J343-z5YN4-haUDujYZK7kIPajtlqdE,3059
|
|
2
2
|
alma/core.py,sha256=-lAYOdnNYDz0ziVQFybLNF_2cDbM8-lIw5xvLuiXZKY,9638
|
|
3
3
|
alma/types.py,sha256=hdBP1dwvYquS7Zej4xb6DM4Bfyx6C2OIFi3vFYo9DMk,6769
|
|
4
|
+
alma/confidence/__init__.py,sha256=VvObyBormXwEpcOAvP-gHZlb2X1z1UuGuy8Zdkg4A-0,1200
|
|
5
|
+
alma/confidence/engine.py,sha256=R6muu7yWrlZSzOm2jsoPTBU2UGwvfJ30Akqj7g8pCXo,17399
|
|
6
|
+
alma/confidence/types.py,sha256=6Qmvla26qBWtijhj-C4XOLyxlKbsxchhI7xNoAJ0CXw,11227
|
|
4
7
|
alma/config/__init__.py,sha256=MQ7zjiIFlUnjeI_Nxn4ig0HAmYeUuS7_FVNjYi8Ik3A,99
|
|
5
8
|
alma/config/loader.py,sha256=OJPXTSKrBunl6LMvyb-avSOyH1Pr0IpUZIK9UOmB-LE,4884
|
|
6
9
|
alma/domains/__init__.py,sha256=wDvWGshubbbEcUv_7vUdnj_Np5Ovkqp8w9VwFCv_JOs,623
|
|
@@ -10,6 +13,9 @@ alma/domains/types.py,sha256=s4ToTMLPzJRj1u4yfFTkiQhK2bjcF0O17zaUFloBtOk,8999
|
|
|
10
13
|
alma/harness/__init__.py,sha256=T25gbnat63HA6QeHY5BiaYxM3BODgQmkcR85DIVjsMc,684
|
|
11
14
|
alma/harness/base.py,sha256=rvgLHVVKo0INDDQTzqYIzEpoNkSiJ0DG5qE_-K4Cc5A,11223
|
|
12
15
|
alma/harness/domains.py,sha256=ur6BqClFd7JgH62DQsC5RBJV-IpEbL9uaEHZzZRtyxI,25720
|
|
16
|
+
alma/initializer/__init__.py,sha256=Hmlb35EnIkPYsmuxuoUQrHAJWerDqK0EzBi8vmrvFw8,826
|
|
17
|
+
alma/initializer/initializer.py,sha256=OexGjQeB7sng8Gy9DKAGchgdGZJGIwkLcnPOLQMFH1c,13008
|
|
18
|
+
alma/initializer/types.py,sha256=t7B9q-hYKx468d9EXAFFNEZ6BS04Be8kxO3SCjwvcww,7717
|
|
13
19
|
alma/integration/__init__.py,sha256=bQZKgA4zhUD3AK4lxh4I7PGukUogKFodIDn3Jurlcws,1276
|
|
14
20
|
alma/integration/claude_agents.py,sha256=HdAZVVIOr7W-_oAuDL4J7ZanvvpOjCP_Lfw-N1TMekI,13318
|
|
15
21
|
alma/integration/helena.py,sha256=rDCYy8Y7_f3xeCzahahio_0OIUury-dMhU7Z_EjWc5w,11885
|
|
@@ -36,11 +42,11 @@ alma/session/__init__.py,sha256=1kKfjacWOd0WBWs3Yv_d_t_CaUTOWeGb0DCoKxRfvp8,352
|
|
|
36
42
|
alma/session/manager.py,sha256=O6Onh7rnQIr_J5L2IahiuxsH7pi8-G_VmGavp_QEsQs,12637
|
|
37
43
|
alma/session/types.py,sha256=lLcWK64C5-ycItJmvHAHgC6L-y3toTc4kKttp2Fvgic,9464
|
|
38
44
|
alma/storage/__init__.py,sha256=PtKICN39q2MQ7CuUmFnERQMIfo8Tbpv_Ro61jLLvUvQ,528
|
|
39
|
-
alma/storage/azure_cosmos.py,sha256=
|
|
45
|
+
alma/storage/azure_cosmos.py,sha256=TN_HJIaIrAppDh1LPY3jYVIT0EQkKQnqhNPkonChrf8,33068
|
|
40
46
|
alma/storage/base.py,sha256=-1Xi3zQFdFgdkIWvqLhNNq9SPdjaIYoagijPMKA3I8M,8960
|
|
41
47
|
alma/storage/file_based.py,sha256=g-1dkmu68T6ePhyvh40o_u-THqK1WbXtt4xfccChySM,20709
|
|
42
48
|
alma/storage/sqlite_local.py,sha256=ppqUcXbuiqN6p7tEWu0r1MoMQTCXc-XDYkQe0Tq93ps,36557
|
|
43
|
-
alma_memory-0.
|
|
44
|
-
alma_memory-0.
|
|
45
|
-
alma_memory-0.
|
|
46
|
-
alma_memory-0.
|
|
49
|
+
alma_memory-0.4.0.dist-info/METADATA,sha256=jcbxdCB17ZfCklRlTZfN-mfjjOdEz302RCzxksgbWhM,18840
|
|
50
|
+
alma_memory-0.4.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
51
|
+
alma_memory-0.4.0.dist-info/top_level.txt,sha256=5oN68LXctTl8a8i1LA-5WqSaP-pDA-J0x1AfCFfLm4A,5
|
|
52
|
+
alma_memory-0.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|