Enha: use tool atrribute to init agent client
This commit is contained in:
@@ -201,7 +201,7 @@ func (t *Tools) GetWebAgentClient() *agent.AgentClient {
|
||||
}
|
||||
return ""
|
||||
}
|
||||
t.webAgentClient = agent.NewAgentClient(cfg, logger, getToken)
|
||||
t.webAgentClient = agent.NewAgentClient(t.cfg, t.logger, getToken)
|
||||
})
|
||||
return t.webAgentClient
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user