Skip to content

tool_adapter

tool_adapter

SkillTool — wraps a skill as a tool that agents can invoke.

Classes

SkillTool

SkillTool(manifest: SkillManifest, executor: SkillExecutor)

Bases: BaseTool

Wraps a SkillManifest as a BaseTool that agents can invoke.

Follows the same adapter pattern as MCPToolAdapter.

Source code in src/openjarvis/skills/tool_adapter.py
def __init__(
    self,
    manifest: SkillManifest,
    executor: SkillExecutor,
) -> None:
    self._manifest = manifest
    self._executor = executor
    self.tool_id = f"skill_{manifest.name}"