def __init__(self, manifest, default_answers={}):
    self._manifest = manifest[CONVERSATION]
    self._stop_command = manifest.get(STOP_COMMAND)
    self._answers = StoppableDict(default_answers)
    keys = list(default_answers.keys())
    if (len(keys) == 0):
        self._current_question = None
        self._levels = Levels([Level(self._manifest)])
    else:
        qid = keys[(len(keys) - 1)]
        result = self._get_question_by_id(self._manifest, qid)
        self._levels = result['levels']
        self._current_question = result['item']
def __init__(self, manifest, default_answers={}):
    self._manifest = manifest[CONVERSATION]
    self._stop_command = manifest.get(STOP_COMMAND)
    self._answers = StoppableDict(default_answers)
    keys = list(default_answers.keys())
    if (len(keys) == 0):
        self._current_question = None
        self._levels = Levels([Level(self._manifest)])
    else:
        qid = keys[(len(keys) - 1)]
        result = self._get_question_by_id(self._manifest, qid)
        self._levels = result['levels']
        self._current_question = result['item']