diff --git a/src/albert/__init__.py b/src/albert/__init__.py index 859627f7..e21b0dec 100644 --- a/src/albert/__init__.py +++ b/src/albert/__init__.py @@ -4,4 +4,4 @@ __all__ = ["Albert", "AlbertClientCredentials", "AlbertSSOClient"] -__version__ = "1.7.6" +__version__ = "1.7.8" diff --git a/src/albert/resources/inventory.py b/src/albert/resources/inventory.py index 3905c412..c47ce24c 100644 --- a/src/albert/resources/inventory.py +++ b/src/albert/resources/inventory.py @@ -252,6 +252,12 @@ def validate_formula_fields(self) -> "InventoryItem": raise ValueError("A project_id must be supplied for all formulas.") return self + def to_note_mention(self) -> str: + """Convert the inventory informatio to an @-mention string to be used in notebooks""" + to_mention = f'@{self.id[3:]} | {self.name}' + # return string + return to_mention + class InventorySpecValue(BaseAlbertModel): min: str | None = Field(default=None)