MCPcopy Create free account
hub / github.com/chigraph/chigraph / contextJson

Method contextJson

libchigraph/src/Result.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86void chi::Result::removeContext(int id) { mContexts.erase(id); }
87
88nlohmann::json Result::contextJson() const {
89 // merge all the contexts
90 auto merged = nlohmann::json::object();
91
92 for (const auto& ctx : mContexts) { mergeJsonIntoConservative(merged, ctx.second); }
93
94 return merged;
95}
96
97Result operator+(const Result& lhs, const Result& rhs) {
98 Result ret;

Callers 2

operator+Function · 0.80
Result.cppFile · 0.80

Calls 1

Tested by

no test coverage detected