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

Method get_workflow_snapshot

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

Source from the content-addressed store, hash-verified

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