This commit is contained in:
lpf
2026-02-13 14:35:23 +08:00
parent 308d69271a
commit 47a5f4b602
3 changed files with 76 additions and 22 deletions

View File

@@ -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{})