MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / run_task

Method run_task

source/MaaAgentServer/RemoteInstance/RemoteContext.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15MaaTaskId RemoteContext::run_task(const std::string& entry, const json::value& pipeline_override)
16{
17 ContextRunTaskReverseRequest req {
18 .context_id = context_id_,
19 .entry = entry,
20 .pipeline_override = pipeline_override,
21 };
22
23 auto resp_opt = server_.send_and_recv<ContextRunTaskReverseResponse>(req);
24 if (!resp_opt) {
25 return MaaInvalidId;
26 }
27 return resp_opt->task_id;
28}
29
30MaaRecoId RemoteContext::run_recognition(const std::string& entry, const json::value& pipeline_override, const cv::Mat& image)
31{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected