Skip to main content

Agent

What it is

  • Agent is a thin subclass of naas_abi.ontologies.modules.NexusPlatformOntology.Agent.
  • It provides an actions() hook intended to be overridden with custom logic.

Public API

  • Class Agent(_Agent)
    • Inherits all behavior from naas_abi.ontologies.modules.NexusPlatformOntology.Agent.
    • Method actions(self)
      • Placeholder method meant to implement action logic.
      • Current implementation: pass (no behavior).

Configuration/Dependencies

  • Depends on:
    • naas_abi.ontologies.modules.NexusPlatformOntology.Agent (imported as _Agent)

Usage

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

class MyAgent(Agent):
def actions(self):
# implement agent actions here
print("Running actions")

agent = MyAgent()
agent.actions()

Caveats

  • Agent.actions() does nothing unless you override it.
  • Actual capabilities and required initialization parameters depend on the base _Agent implementation.