tool_adapter
tool_adapter
¶
SkillTool — wraps a skill as a tool that agents can invoke.
Classes¶
SkillTool
¶
SkillTool(
manifest: SkillManifest,
executor: SkillExecutor,
*,
skill_manager: Optional[Any] = None,
)
Bases: BaseTool
Wraps a SkillManifest as a BaseTool that agents can invoke.
Follows the same adapter pattern as MCPToolAdapter.
| PARAMETER | DESCRIPTION |
|---|---|
manifest
|
The skill manifest to wrap.
TYPE:
|
executor
|
A :class:
TYPE:
|
skill_manager
|
Optional skill manager (reserved for sub-skill delegation).
TYPE:
|
Source code in src/diapason/skills/tool_adapter.py
Methods:¶
execute
¶
execute(**params: Any) -> ToolResult
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.