MCPcopy Create free account
hub / github.com/SoarGroup/Soar / DoExplainBacktraces

Method DoExplainBacktraces

Core/CLI/src/cli_explainbacktraces.cpp:132–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132bool CommandLineInterface::DoExplainBacktraces(const std::string* pProduction, const int condition)
133{
134 // quick sanity check
135 if (condition < -1)
136 {
137 return SetError("Condition number must be a non-negative integer.");
138 }
139
140 agent* thisAgent = m_pAgentSML->GetSoarAgent();
141 if (!pProduction)
142 {
143 // no production means query, ignore other args
144 ExplainListChunks(thisAgent);
145 return true;
146 }
147
148 ExplainChunks(thisAgent, pProduction->c_str(), condition);
149 return true;
150}
151

Callers 1

ParseMethod · 0.45

Calls 3

SetErrorFunction · 0.85
ExplainListChunksFunction · 0.85
ExplainChunksFunction · 0.85

Tested by

no test coverage detected