feat(知识图谱): 增强实体和关系模型并添加新功能 #7619
Annotations
13 errors
|
Test memory
Process completed with exit code 1.
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > searchNodes > should return empty graph for no matches:
src/memory/__tests__/knowledge-graph.test.ts#L323
AssertionError: expected [ { name: 'Alice', …(6) }, …(2) ] to have a length of +0 but got 3
- Expected
+ Received
- 0
+ 3
❯ __tests__/knowledge-graph.test.ts:323:31
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > searchNodes > should include outgoing relations to unmatched entities:
src/memory/__tests__/knowledge-graph.test.ts#L314
AssertionError: expected [ { name: 'Alice', …(6) }, …(2) ] to have a length of 1 but got 3
- Expected
+ Received
- 1
+ 3
❯ __tests__/knowledge-graph.test.ts:314:31
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > searchNodes > should include relations where at least one endpoint matches:
src/memory/__tests__/knowledge-graph.test.ts#L307
AssertionError: expected [ { name: 'Acme Corp', …(6) }, …(2) ] to have a length of 2 but got 3
- Expected
+ Received
- 2
+ 3
❯ __tests__/knowledge-graph.test.ts:307:31
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > searchNodes > should be case insensitive:
src/memory/__tests__/knowledge-graph.test.ts#L301
AssertionError: expected [ { name: 'Alice', …(6) }, …(2) ] to have a length of 1 but got 3
- Expected
+ Received
- 1
+ 3
❯ __tests__/knowledge-graph.test.ts:301:31
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > searchNodes > should search by observation content:
src/memory/__tests__/knowledge-graph.test.ts#L295
AssertionError: expected [ { name: 'Alice', …(6) }, …(2) ] to have a length of 1 but got 3
- Expected
+ Received
- 1
+ 3
❯ __tests__/knowledge-graph.test.ts:295:31
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > searchNodes > should search by entity type:
src/memory/__tests__/knowledge-graph.test.ts#L289
AssertionError: expected [ { name: 'Acme Corp', …(6) }, …(2) ] to have a length of 1 but got 3
- Expected
+ Received
- 1
+ 3
❯ __tests__/knowledge-graph.test.ts:289:31
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > searchNodes > should search by entity name:
src/memory/__tests__/knowledge-graph.test.ts#L283
AssertionError: expected [ { name: 'Alice', …(6) }, …(2) ] to have a length of 1 but got 3
- Expected
+ Received
- 1
+ 3
❯ __tests__/knowledge-graph.test.ts:283:31
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > createRelations > should create new relations:
src/memory/__tests__/knowledge-graph.test.ts#L77
AssertionError: expected [ { from: 'Alice', to: 'Bob', …(3) } ] to deeply equal [ { from: 'Alice', to: 'Bob', …(1) } ]
- Expected
+ Received
Array [
Object {
+ "createdAt": "2026-03-27T14:21:04.382Z",
"from": "Alice",
"relationType": "knows",
"to": "Bob",
+ "updatedAt": "2026-03-27T14:21:04.382Z",
},
]
❯ __tests__/knowledge-graph.test.ts:77:28
|
|
__tests__/knowledge-graph.test.ts > KnowledgeGraphManager > createEntities > should create new entities:
src/memory/__tests__/knowledge-graph.test.ts#L38
AssertionError: expected [ { name: 'Alice', …(6) }, …(1) ] to deeply equal [ { name: 'Alice', …(2) }, …(1) ]
- Expected
+ Received
Array [
Object {
+ "createdAt": "2026-03-27T14:21:04.361Z",
"entityType": "person",
"name": "Alice",
"observations": Array [
"works at Acme Corp",
],
+ "priority": 3,
+ "tags": Array [],
+ "updatedAt": "2026-03-27T14:21:04.361Z",
},
Object {
+ "createdAt": "2026-03-27T14:21:04.361Z",
"entityType": "person",
"name": "Bob",
"observations": Array [
"likes programming",
],
+ "priority": 3,
+ "tags": Array [],
+ "updatedAt": "2026-03-27T14:21:04.361Z",
},
]
❯ __tests__/knowledge-graph.test.ts:38:27
|
|
Test everything
The strategy configuration was canceled because "test.memory" failed
|
|
Test filesystem
The strategy configuration was canceled because "test.memory" failed
|
|
Test filesystem
The operation was canceled.
|