pub fn fold_bot(mut bot: CsmlBot) -> Result<String, EngineError> {
    // load native components into the bot
    bot.native_components = match load_components() {
        Ok(components) => Some(components),
        Err(err) => return Err(EngineError::Parring(err.format_error())),
    };

    Ok(csml_interpreter::fold_bot(&bot))
}
/**
 * fold CSML bot in one single flow.
 * Rename all existing steps, goto and functions in order to match their origin flow.
 * Examples:
 *  step_name: -> flow_name_step_name:
 *  goto step_name -> goto flow_name_step_name
 */
fold CSML bot in one single flow.
Rename all existing steps, goto and functions in order to match their origin flow.
fold CSML bot in one single flow . Rename all existing steps goto and functions in order to match their origin flow .
pub fn fold_bot(mut bot: CsmlBot) -> Result<String, EngineError> {
    // load native components into the bot
    bot.native_components = match load_components() {
        Ok(components) => Some(components),
        Err(err) => return Err(EngineError::Parring(err.format_error())),
    };
    Ok(csml_interpreter::fold_bot(&bot))
}
pub fn fold_bot ( mut bot : CsmlBot ) -> Result < String , EngineError > { // load native components into the bot bot . native_components = match load_components ( ) { Ok ( components ) => Some ( components ) , Err ( err ) => return Err ( EngineError :: Parring ( err . format_error ( ) ) ) , } ; Ok ( csml_interpreter :: fold_bot ( & bot ) ) }
fold CSML bot in one single flow.
fold CSML bot in one single flow .
bot
CsmlBot
bot
CsmlBot