Search
What it is
- A thin action class that subclasses
naas_abi.ontologies.modules.NexusPlatformOntology.Search. - Intended as a customization point for implementing search-related logic via the
actions()method.
Public API
class Search(_Search)actions(self)- Placeholder method meant to be overridden/implemented with action logic.
- Current implementation is a no-op (
pass).
Configuration/Dependencies
- Depends on:
naas_abi.ontologies.modules.NexusPlatformOntology.Search(imported as_Search).
Usage
from naas_abi.ontologies.classes.ontology_naas_ai.nexus.Search import Search
class MySearch(Search):
def actions(self):
# implement custom behavior here
return "ok"
s = MySearch()
print(s.actions())
Caveats
actions()currently does nothing; to have behavior, you must implement/override it.- Behavior and required initialization (if any) may be defined by the parent
_Searchclass.