mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-03 04:47:29 +08:00
fix bug
This commit is contained in:
@@ -48,6 +48,9 @@ type AgentLoop struct {
|
||||
func NewAgentLoop(cfg *config.Config, msgBus *bus.MessageBus, provider providers.LLMProvider, cs *cron.CronService) *AgentLoop {
|
||||
workspace := cfg.WorkspacePath()
|
||||
os.MkdirAll(workspace, 0755)
|
||||
logger.InfoCF("agent", "Agent workspace initialized", map[string]interface{}{
|
||||
"workspace": workspace,
|
||||
})
|
||||
|
||||
toolsRegistry := tools.NewToolRegistry()
|
||||
toolsRegistry.Register(&tools.ReadFileTool{})
|
||||
|
||||
Reference in New Issue
Block a user