* Add tools enable or diable config

This commit is contained in:
lxowalle 2026-03-04 17:01:19 +08:00
parent ad8bb3d9b7
commit 9d96da820c

View file

@ -241,16 +241,11 @@ func TestAgentLoop_GetStartupInfo(t *testing.T) {
} }
defer os.RemoveAll(tmpDir) defer os.RemoveAll(tmpDir)
cfg := &config.Config{ cfg := config.DefaultConfig()
Agents: config.AgentsConfig{ cfg.Agents.Defaults.Workspace = tmpDir
Defaults: config.AgentDefaults{ cfg.Agents.Defaults.Model = "test-model"
Workspace: tmpDir, cfg.Agents.Defaults.MaxTokens = 4096
Model: "test-model", cfg.Agents.Defaults.MaxToolIterations = 10
MaxTokens: 4096,
MaxToolIterations: 10,
},
},
}
msgBus := bus.NewMessageBus() msgBus := bus.NewMessageBus()
provider := &mockProvider{} provider := &mockProvider{}