- All Known Implementing Classes:
ModelRegistry.NoopModelRegistry
public interface ModelRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final recordSemi parsed model where inference entity id, task type and service are known but the settings are not parsed. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteModel(String modelId, ActionListener<Boolean> listener) voidgetAllModels(ActionListener<List<ModelRegistry.UnparsedModel>> listener) Get all models.voidgetModel(String inferenceEntityId, ActionListener<ModelRegistry.UnparsedModel> listener) Get a model.voidgetModelsByTaskType(TaskType taskType, ActionListener<List<ModelRegistry.UnparsedModel>> listener) Get all models of a particular task type.voidgetModelWithSecrets(String inferenceEntityId, ActionListener<ModelRegistry.UnparsedModel> listener) Get a model with its secret settingsvoidstoreModel(Model model, ActionListener<Boolean> listener)
-
Method Details
-
getModel
Get a model. Secret settings are not included- Parameters:
inferenceEntityId- Model to getlistener- Model listener
-
getModelWithSecrets
void getModelWithSecrets(String inferenceEntityId, ActionListener<ModelRegistry.UnparsedModel> listener) Get a model with its secret settings- Parameters:
inferenceEntityId- Model to getlistener- Model listener
-
getModelsByTaskType
void getModelsByTaskType(TaskType taskType, ActionListener<List<ModelRegistry.UnparsedModel>> listener) Get all models of a particular task type. Secret settings are not included- Parameters:
taskType- The task typelistener- Models listener
-
getAllModels
Get all models. Secret settings are not included- Parameters:
listener- Models listener
-
storeModel
-
deleteModel
-