Skip to main content

Server

What it is

  • A thin wrapper class that subclasses naas_abi.ontologies.modules.NexusPlatformOntology.Server.
  • Intended as an “action class” placeholder for adding custom logic via actions().

Public API

  • class Server(_Server)
    • Subclass of naas_abi.ontologies.modules.NexusPlatformOntology.Server.
    • actions(self)
      • Placeholder method for implementing action logic.
      • Currently does nothing (pass).

Configuration/Dependencies

  • Depends on naas_abi.ontologies.modules.NexusPlatformOntology.Server (imported as _Server).

Usage

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

server = Server()
server.actions() # currently no-op

Caveats

  • actions() is unimplemented and has no effect until you add logic.