/////////////////////////////////////////////////////////////////
// predict command file.
//
// Author: <NAME>, <EMAIL>,
//         <NAME>, <EMAIL>
// Date  : 2007
//
/////////////////////////////////////////////////////////////////

#include "portability.h"

#include "cli_CommandLineInterface.h"

#include "cli_Commands.h"

#include "sml_Names.h"
#include "sml_AgentSML.h"

#include "decision_manipulation.h"

using namespace cli;
using namespace sml;

bool CommandLineInterface::DoPredict()
{
    agent* thisAgent = m_pAgentSML->GetSoarAgent();
    const char* prediction_result = predict_get(thisAgent);
    
    if (m_RawOutput)
    {
        m_Result << prediction_result;
    }
    else
    {
        AppendArgTagFast(sml_Names::kParamMessage, sml_Names::kTypeString, prediction_result);
    }
    
    return true;
}
