AgentTool
What it is
- A thin subclass wrapper around
naas_abi.ontologies.modules.NexusPlatformOntology.AgentTool. - Intended as an extension point to implement custom tool behavior via the
actions()method.
Public API
class AgentTool(_AgentTool)- Inherits all behavior from
_AgentTool(imported asAgentToolfromNexusPlatformOntology). actions(self)- Placeholder method meant to be overridden/implemented with tool logic.
- Current implementation:
pass(no behavior).
- Inherits all behavior from
Configuration/Dependencies
- Depends on:
naas_abi.ontologies.modules.NexusPlatformOntology.AgentTool(imported as_AgentTool).
Usage
from naas_abi.ontologies.classes.ontology_naas_ai.nexus.AgentTool import AgentTool
class MyTool(AgentTool):
def actions(self):
# implement tool logic here
return "done"
tool = MyTool()
print(tool.actions())
Caveats
actions()is not implemented in this module; calling it onAgentTooldirectly will do nothing and returnNone.- All operational behavior, initialization requirements, and other methods come from the parent
_AgentToolclass.