package documentation

Undocumented

Package ai Undocumented
Module catalog No module docstring; 1/1 function documented

From __init__.py:

Function register_new_attribute_value Registers a new attribute value in the database.
Function register_new_comment Registers a new note for a document.
Function register_new_post Registers a new document in the database.
def register_new_attribute_value(attribute: str, value: str) -> bool:

Registers a new attribute value in the database. Args: attribute (str): The name of the attribute to register. value (str): The new value of the attribute. Returns: bool: True if the attribute was registered successfully or if it already exists. Raises: RegisterError: If there is an error during registration.

def register_new_comment(note: Note) -> bool:

Registers a new note for a document. Args: note (Note): The note to register. Returns: bool: True if the note was registered successfully. Raises: NotFoundError: If the document does not exist. ExistsError: If the note already exists. RegisterError: If there is an error during registration.

def register_new_post(document: Document) -> bool:

Registers a new document in the database. Args: document (Document): The document to register. Returns: bool: True if the document was registered successfully. Raises: NotFoundError: If the document does not exist. RegisterError: If there is an error during registration.