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

Method query_context

source/MaaAgentClient/Client/AgentClient.cpp:2625–2633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2623}
2624
2625MaaContext* AgentClient::query_context(const std::string& context_id)
2626{
2627 auto it = context_map_.find(context_id);
2628 if (it == context_map_.end()) {
2629 LogError << "context not found" << VAR(context_id);
2630 return nullptr;
2631 }
2632 return it->second;
2633}
2634
2635std::string AgentClient::tasker_id(MaaTasker* tasker)
2636{

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected