export class AgentModeResolver {
    constructor(options) {
        this.options = options;
    }
    resolve(modeName) {
        var _a;
        return (_a = this.options.modes.find((mode) => mode.name === modeName)) !== null && _a !== void 0 ? _a : this.options.modes[0];
    }
}
