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

Method maintain_knowledge_graph

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

Source from the content-addressed store, hash-verified

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

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