[[reference-ml-get_trained_models]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.ml.getTrainedModels Get trained model configuration info. {ref}/get-trained-models.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlGetTrainedModelsRequest, options?): Promise ---- [discrete] ===== `MlGetTrainedModelsRequest` [source,ts] ---- interface MlGetTrainedModelsRequest extends <> { model_id?: <> allow_no_match?: boolean decompress_definition?: boolean exclude_generated?: boolean from?: <> include?: MlInclude size?: <> tags?: string | string[] } ---- [discrete] ===== `MlGetTrainedModelsResponse` [source,ts] ---- interface MlGetTrainedModelsResponse { count: <> trained_model_configs: MlTrainedModelConfig[] } ----