def chat(debugger, command, result, internal_dict):
    """Custom LLDB command - chat

    The chat command is used to generate GDB commands based on plain English
    input.
    """
    global prev_command
    # handle when user types 'chat help'
    if command == "help":
        utils.chat_help()
        return
    prev_command, command = utils.chat_helper(command, prompt=COMMAND_PROMPT)
    debugger.HandleCommand(command)
Custom LLDB command - chat

    The chat command is used to generate GDB commands based on plain English
    input.
    
chatgdb/lldb.py