ToolSkillPath returns the full path where a tool's skill file would be installed.
(tool AgentTool)
| 142 | |
| 143 | // ToolSkillPath returns the full path where a tool's skill file would be installed. |
| 144 | func ToolSkillPath(tool AgentTool) string { |
| 145 | cwd, err := os.Getwd() |
| 146 | if err != nil { |
| 147 | return "" |
| 148 | } |
| 149 | return filepath.Join(cwd, tool.SkillDir, tool.SkillFile) |
| 150 | } |
| 151 | |
| 152 | // ToolInstalled checks if the skill file exists for the given tool. |
| 153 | func ToolInstalled(tool AgentTool) bool { |
no test coverage detected