graph store memory

This commit is contained in:
tegwick 2026-05-15 11:02:11 +02:00
parent 6b3e391acf
commit c5110f61b0
3 changed files with 101 additions and 0 deletions

View file

@ -5,6 +5,7 @@ from __future__ import annotations
from typing import Protocol
from kontextual_engine.core import (
AuditEvent,
LifecycleState,
MemoryEdgeRecord,
MemoryEventRecord,
@ -45,3 +46,13 @@ class MemoryGraphRepository(Protocol):
graph_id: str | None = None,
kind: str | None = None,
) -> list[MemoryEventRecord]: ...
def save_memory_audit_event(self, event: AuditEvent) -> AuditEvent: ...
def get_memory_audit_event(self, event_id: str) -> AuditEvent: ...
def list_memory_audit_events(
self,
*,
graph_id: str | None = None,
correlation_id: str | None = None,
operation: str | None = None,
) -> list[AuditEvent]: ...