implemented shell_exec

This commit is contained in:
Luxferre
2026-03-21 17:11:17 +02:00
parent a2af89e61f
commit 6e2294cb48
6 changed files with 101 additions and 2 deletions
+3
View File
@@ -24,6 +24,9 @@ func NewSidekick(config AgentConfig, model ModelConfig, extTools []ToolDefinitio
ToolRegistry: make(map[string]ToolDefinition),
}
for name, tool := range DefaultInternalTools() {
if name == "shell_exec" && !s.Config.EnableShellExec {
continue
}
s.registerTool(name, tool)
}
for _, tool := range extTools {