mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-17 16:35:19 +08:00
16 lines
361 B
Go
16 lines
361 B
Go
package machinetool
|
|
|
|
import (
|
|
"mayfly-go/internal/ai/tools"
|
|
"mayfly-go/pkg/logx"
|
|
)
|
|
|
|
func Init() {
|
|
if commandExecTool, err := GetCommandExec(); err != nil {
|
|
logx.Errorf("agent tool - 获取MachineCommandExec工具失败: %v", err)
|
|
} else {
|
|
tools.DefaultRegistry.Register(commandExecTool)
|
|
tools.RegisterTool(tools.ToolTypeMachine, commandExecTool)
|
|
}
|
|
}
|