AgentIntent
What it is
- A thin wrapper class around
naas_abi.ontologies.modules.NexusPlatformOntology.AgentIntent. - Provides an
actions()hook intended for custom logic.
Public API
class AgentIntent(_AgentIntent)- Extends:
naas_abi.ontologies.modules.NexusPlatformOntology.AgentIntent actions(self)- Placeholder method meant to be implemented.
- Current behavior: no-op (
pass).
- Extends:
Configuration/Dependencies
- Depends on:
naas_abi.ontologies.modules.NexusPlatformOntology.AgentIntent
Usage
from naas_abi.ontologies.classes.ontology_naas_ai.nexus.AgentIntent import AgentIntent
class MyAgentIntent(AgentIntent):
def actions(self):
# implement your logic here
print("Running actions")
intent = MyAgentIntent()
intent.actions()
Caveats
actions()is not implemented in this class; you must override it to do anything.- Initialization requirements and other behaviors are inherited from
_AgentIntent(not shown here).