models
List all models in the model registry. Calling mb.models fetches a list of models names, optionally filtered by a prefix.
Parameters
mb.models(...)
prefix:Optional[str]Filter the list of returned models to a specific prefix.branch:Optional[str]The branch to use when fetching models from the registry. By default, the current branch is used.
Returns
List[str] - The list of models in the registry.
Examples
Listing all models
To retrieve a list of all models in the registry:
mb.models()
Listing models in the "finance" directory
To filter models to a subdirectory, use prefix=:
mb.models(prefix="finance/")
Listing models on a branch
To list models on branch my_branch in the project_foo directory:
mb.models(prefix="project_foo/", branch="my_branch")