/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ package org.opensearch.ml.engine; import org.opensearch.ml.common.MLModel; import java.util.Map; public interface MLExecutable extends Executable { /** * Init model (deploy model into memory) with ML model content and params. * @param model ML model * @param params other parameters */ void initModel(MLModel model, Map params); /** * Close resources like deployed model. */ void close(); }