Skip to content

Commit 5684141

Browse files
Reduce response payload size for graph UI scenarios (#1772)
1 parent f8363ea commit 5684141

16 files changed

+2110
-2658
lines changed

ts/packages/agents/browser/src/agent/knowledge/actions/graphActions.mts

Lines changed: 980 additions & 821 deletions
Large diffs are not rendered by default.

ts/packages/agents/browser/src/agent/knowledge/actions/knowledgeActionRouter.mts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@ import {
2929
buildKnowledgeGraph,
3030
rebuildKnowledgeGraph,
3131
mergeTopicHierarchies,
32-
getAllRelationships,
33-
getAllCommunities,
34-
getAllEntitiesWithMetrics,
3532
getEntityNeighborhood,
3633
getGlobalImportanceLayer,
37-
getViewportBasedNeighborhood,
3834
getTopicImportanceLayer,
3935
getImportanceStatistics,
4036
getTopicMetrics,
@@ -95,18 +91,10 @@ export async function handleKnowledgeAction(
9591
return await rebuildKnowledgeGraph(parameters, context);
9692
case "mergeTopicHierarchies":
9793
return await mergeTopicHierarchies(parameters, context);
98-
case "getAllRelationships":
99-
return await getAllRelationships(parameters, context);
100-
case "getAllCommunities":
101-
return await getAllCommunities(parameters, context);
102-
case "getAllEntitiesWithMetrics":
103-
return await getAllEntitiesWithMetrics(parameters, context);
10494
case "getEntityNeighborhood":
10595
return await getEntityNeighborhood(parameters, context);
10696
case "getGlobalImportanceLayer":
10797
return await getGlobalImportanceLayer(parameters, context);
108-
case "getViewportBasedNeighborhood":
109-
return await getViewportBasedNeighborhood(parameters, context);
11098
case "getImportanceStatistics":
11199
return await getImportanceStatistics(parameters, context);
112100
case "getTopicImportanceLayer":

ts/packages/agents/browser/src/agent/knowledge/knowledgeHandler.mts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ import {
2929
getKnowledgeGraphStatus,
3030
buildKnowledgeGraph,
3131
rebuildKnowledgeGraph,
32-
getAllRelationships,
33-
getAllCommunities,
34-
getAllEntitiesWithMetrics,
3532
getEntityNeighborhood,
3633
getGlobalImportanceLayer,
3734
getImportanceStatistics,
@@ -134,15 +131,6 @@ export async function handleKnowledgeAction(
134131
case "rebuildKnowledgeGraph":
135132
return await rebuildKnowledgeGraph(parameters, context);
136133

137-
case "getAllRelationships":
138-
return await getAllRelationships(parameters, context);
139-
140-
case "getAllCommunities":
141-
return await getAllCommunities(parameters, context);
142-
143-
case "getAllEntitiesWithMetrics":
144-
return await getAllEntitiesWithMetrics(parameters, context);
145-
146134
case "getEntityNeighborhood":
147135
return await getEntityNeighborhood(parameters, context);
148136

0 commit comments

Comments
 (0)