mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-28 04:57:29 +08:00
Add multi-agent config and registry runtime flow
This commit is contained in:
@@ -60,6 +60,7 @@ func agentCmd() {
|
||||
configureCronServiceRuntime(cronService, cfg)
|
||||
|
||||
agentLoop := agent.NewAgentLoop(cfg, msgBus, provider, cronService)
|
||||
agentLoop.SetConfigPath(getConfigPath())
|
||||
|
||||
startupInfo := agentLoop.GetStartupInfo()
|
||||
logger.InfoCF("agent", logger.C0098,
|
||||
|
||||
@@ -665,6 +665,7 @@ func buildGatewayRuntime(ctx context.Context, cfg *config.Config, msgBus *bus.Me
|
||||
}
|
||||
|
||||
agentLoop := agent.NewAgentLoop(cfg, msgBus, provider, cronService)
|
||||
agentLoop.SetConfigPath(getConfigPath())
|
||||
|
||||
startupInfo := agentLoop.GetStartupInfo()
|
||||
toolsInfo := startupInfo["tools"].(map[string]interface{})
|
||||
|
||||
Reference in New Issue
Block a user