- All Known Implementing Classes:
ModelRegistry.NoopModelRegistry
public interface ModelRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static final record
Semi parsed model where inference entity id, task type and service are known but the settings are not parsed. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteModel
(String modelId, ActionListener<Boolean> listener) void
getAllModels
(ActionListener<List<ModelRegistry.UnparsedModel>> listener) Get all models.void
getModel
(String inferenceEntityId, ActionListener<ModelRegistry.UnparsedModel> listener) Get a model.void
getModelsByTaskType
(TaskType taskType, ActionListener<List<ModelRegistry.UnparsedModel>> listener) Get all models of a particular task type.void
getModelWithSecrets
(String inferenceEntityId, ActionListener<ModelRegistry.UnparsedModel> listener) Get a model with its secret settingsvoid
storeModel
(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
-