ToolSkillPath returns the full path where a tool's skill file would be installed.
(tool AgentTool)
| 208 | |
| 209 | // ToolSkillPath returns the full path where a tool's skill file would be installed. |
| 210 | func ToolSkillPath(tool AgentTool) string { |
| 211 | cwd, err := os.Getwd() |
| 212 | if err != nil { |
| 213 | return "" |
| 214 | } |
| 215 | return filepath.Join(cwd, tool.SkillDir, tool.SkillFile) |
| 216 | } |
| 217 | |
| 218 | // ToolInstalled checks if the skill file exists for the given tool. |
| 219 | func ToolInstalled(tool AgentTool) bool { |