Skip to main content

SearchRole

What it is

  • A thin subclass of naas_abi.ontologies.modules.NexusPlatformOntology.SearchRole.
  • Intended as an action class hook point where you implement custom logic in actions().

Public API

  • class SearchRole(_SearchRole)
    • actions(self)
      • Placeholder action method.
      • Currently unimplemented (pass).

Configuration/Dependencies

  • Depends on:
    • naas_abi.ontologies.modules.NexusPlatformOntology.SearchRole (imported as _SearchRole).

Usage

from naas_abi.ontologies.classes.ontology_naas_ai.nexus.SearchRole import SearchRole

class MySearchRole(SearchRole):
def actions(self):
# implement your logic here
return "ok"

role = MySearchRole()
print(role.actions())

Caveats

  • actions() does nothing in the provided implementation; you must override or implement it to add behavior.
  • Behavior and requirements inherited from _SearchRole are defined in NexusPlatformOntology and are not shown here.