// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.


const INITIALIZE = 'IN';
const REQUEST_TRIAL_JOBS = 'GE';
const REPORT_METRIC_DATA = 'ME';
const UPDATE_SEARCH_SPACE = 'SS';
const IMPORT_DATA = 'FD'
const ADD_CUSTOMIZED_TRIAL_JOB = 'AD';
const TRIAL_END = 'EN';
const TERMINATE = 'TE';
const PING = 'PI';

const INITIALIZED = 'ID';
const NEW_TRIAL_JOB = 'TR';
const SEND_TRIAL_JOB_PARAMETER = 'SP';
const NO_MORE_TRIAL_JOBS = 'NO';
const KILL_TRIAL_JOB = 'KI';

const TUNER_COMMANDS: Set<string> = new Set([
    INITIALIZE,
    REQUEST_TRIAL_JOBS,
    REPORT_METRIC_DATA,
    UPDATE_SEARCH_SPACE,
    IMPORT_DATA,
    ADD_CUSTOMIZED_TRIAL_JOB,
    TERMINATE,
    PING,

    INITIALIZED,
    NEW_TRIAL_JOB,
    SEND_TRIAL_JOB_PARAMETER,
    NO_MORE_TRIAL_JOBS
]);

const ASSESSOR_COMMANDS: Set<string> = new Set([
    INITIALIZE,
    REPORT_METRIC_DATA,
    TRIAL_END,
    TERMINATE,

    KILL_TRIAL_JOB
]);

export {
    INITIALIZE,
    REQUEST_TRIAL_JOBS,
    REPORT_METRIC_DATA,
    UPDATE_SEARCH_SPACE,
    IMPORT_DATA,
    ADD_CUSTOMIZED_TRIAL_JOB,
    TRIAL_END,
    TERMINATE,
    PING,
    INITIALIZED,
    NEW_TRIAL_JOB,
    NO_MORE_TRIAL_JOBS,
    KILL_TRIAL_JOB,
    TUNER_COMMANDS,
    ASSESSOR_COMMANDS,
    SEND_TRIAL_JOB_PARAMETER
};
