Class EncryptedKnowledgeStore
- Namespace
- Oscova.Agents.Memory
- Assembly
- Oscova.Agents.dll
Shares encrypted concept persistence, discovery and derived indexes across caller-owned knowledge bundles.
public sealed class EncryptedKnowledgeStoreInheritance
Inherited Members
Constructors
- EncryptedKnowledgeStore(string, string, string, long, IUserFileBackupService, IContentProtector)
-
Binds a bundle to its user's existing encrypted files and backup policy.
Methods
- AppendAsync(string, IReadOnlyDictionary<string, object?>, string, CancellationToken)
-
Appends body text while retaining an existing concept's metadata and complete body.
- DeleteAllAsync(string?, bool, CancellationToken)
-
Deletes every concept outside an excluded directory and rebuilds the entry index once.
- DeleteAsync(string, CancellationToken)
-
Deletes one concept, maintains its indexes and reports surviving links without cascading deletion.
- EditDocumentAsync(string, string, CancellationToken)
-
Validates a complete user-edited concept before committing its encrypted file and indexes.
- FindAsync(string, string?, CancellationToken)
-
Searches saved metadata and bodies without embedding calls or a separate index database.
- ListConceptIds(string)
-
Lists actual concept IDs under an authorized directory.
- ReadAsync(string?, CancellationToken)
-
Reads one concept or directory index, deriving absent indexes from actual saved documents.
- ReadConceptAsync(string, CancellationToken)
-
Reads one saved concept's parsed metadata and body, or null when it is absent.
- RebuildIndexesAsync(string, CancellationToken)
-
Reconciles derived indexes after an authorized edit through another existing file surface.
- ResolveConceptId(string)
-
Returns the canonical ID for a new or existing contained concept.
- SaveAsync(string, IReadOnlyDictionary<string, object?>, string, CancellationToken)
-
Creates or updates one concept while preserving metadata not supplied by the writer.
- UpdateAsync(string, Func<IDictionary<string, object?>, string?>, CancellationToken)
-
Changes an existing concept's metadata under the store gate, keeping its body and never creating it.