MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / maintain_knowledge_graph

Method maintain_knowledge_graph

atomic-cli/src/service/mod.rs:1309–1329  ·  view source on GitHub ↗
(
        &self,
        request: pb::MaintainKnowledgeGraphRequest,
    )

Source from the content-addressed store, hash-verified

1307 }
1308
1309 pub fn maintain_knowledge_graph(
1310 &self,
1311 request: pb::MaintainKnowledgeGraphRequest,
1312 ) -> CliResult<pb::MaintainKnowledgeGraphResponse> {
1313 self.call(move |backend| async move {
1314 match backend {
1315 Backend::Local(state) => services_agent::KnowledgeImpl { state }
1316 .maintain_knowledge_graph(Request::new(request))
1317 .await
1318 .map(|response| response.into_inner()),
1319 Backend::Reactor(channel) => {
1320 let mut knowledge =
1321 pb::knowledge_service_client::KnowledgeServiceClient::new(channel);
1322 knowledge
1323 .maintain_knowledge_graph(request)
1324 .await
1325 .map(|response| response.into_inner())
1326 }
1327 }
1328 })
1329 }
1330}
1331
1332// ---------------------------------------------------------------------------

Callers 3

query_enrichFunction · 0.45
query_embedFunction · 0.45
query_reindexFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected