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

Method get_workflow_snapshot

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

Source from the content-addressed store, hash-verified

1261 }
1262
1263 pub fn get_workflow_snapshot(
1264 &self,
1265 request: pb::GetWorkflowSnapshotRequest,
1266 ) -> CliResult<pb::GetWorkflowSnapshotResponse> {
1267 self.call(move |backend| async move {
1268 match backend {
1269 Backend::Local(state) => services_agent::KnowledgeImpl { state }
1270 .get_workflow_snapshot(Request::new(request))
1271 .await
1272 .map(|response| response.into_inner()),
1273 Backend::Reactor(channel) => {
1274 pb::knowledge_service_client::KnowledgeServiceClient::new(channel)
1275 .get_workflow_snapshot(request)
1276 .await
1277 .map(|response| response.into_inner())
1278 }
1279 }
1280 })
1281 }
1282
1283 pub fn query_graph(&self, request: pb::QueryGraphRequest) -> CliResult<pb::QueryGraphResponse> {
1284 let response = self.call(move |backend| async move {

Callers 2

workflow_snapshotFunction · 0.45
intent_graphFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected