添加AOL路由和UI/UX增强组件
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled

This commit is contained in:
iven
2026-03-01 17:59:03 +08:00
parent 92e5def702
commit 810e32077e
23 changed files with 8420 additions and 29 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -789,7 +789,7 @@ mod tests {
store
.add_relation(Relation {
source: alice_id.clone(),
relation: RelationType::Knows,
relation: RelationType::KnowsAbout,
target: bob_id.clone(),
properties: HashMap::new(),
confidence: 0.9,
@@ -813,14 +813,14 @@ mod tests {
let matches = store
.query_graph(GraphPattern {
source: Some(alice_id),
relation: Some(RelationType::Knows),
relation: Some(RelationType::KnowsAbout),
target: None,
max_depth: 3,
})
.unwrap();
// Should only return Alice -> Bob (Knows relation)
// Bob -> Carol is WorksAt, not Knows
// Should only return Alice -> Bob (KnowsAbout relation)
// Bob -> Carol is WorksAt, not KnowsAbout
assert_eq!(matches.len(), 1);
assert_eq!(matches[0].target.name, "Bob");
}

View File

@@ -7,6 +7,7 @@
//!
//! Agents interact with a single `Memory` trait that abstracts over all three stores.
pub mod annotations;
pub mod consolidation;
pub mod knowledge;
pub mod migration;
@@ -17,3 +18,9 @@ pub mod usage;
mod substrate;
pub use substrate::MemorySubstrate;
// Re-export annotation types
pub use annotations::{
Annotation, AnnotationError, AnnotationId, AnnotationPriority, AnnotationReaction,
AnnotationStatus, AnnotationStats, AnnotationStore, AnnotationType,
};