Skip to content

tool_adapter

diapason.skills.tool_adapter

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

SkillTool

Bases: BaseTool

Wraps a SkillManifest as a BaseTool that agents can invoke.

Follows the same adapter pattern as MCPToolAdapter.

Parameters

manifest: The skill manifest to wrap. executor: A :class:SkillExecutor used to run the skill pipeline. skill_manager: Optional skill manager (reserved for sub-skill delegation).

execute(**params)

Execute the skill.

If the manifest has pipeline steps, run them via the executor and collect the last step's output. If markdown_content is present, append it to the content. Returns a combined :class:ToolResult.