on main help sign in
fix: remove deadcode
00cefc9Christian Rocha
internal/agent/coordinator.go−16
@@ -71,7 +71,6 @@ type Coordinator interface {
71 Summarize(context.Context, string) error
71 Summarize(context.Context, string) error
72 Model() Model
72 Model() Model
73 UpdateModels(ctx context.Context) error
73 UpdateModels(ctx context.Context) error
74− RefreshTools(ctx context.Context) error
75}
74}
76
75
77type coordinator struct {
76type coordinator struct {
@@ -905,21 +904,6 @@ func (c *coordinator) UpdateModels(ctx context.Context) error {
905 return nil
904 return nil
906}
905}
907
906
908−func (c *coordinator) RefreshTools(ctx context.Context) error {
909− agentCfg, ok := c.cfg.Config().Agents[config.AgentCoder]
910− if !ok {
911− return errors.New("coder agent not configured")
912− }
913−
914− tools, err := c.buildTools(ctx, agentCfg)
915− if err != nil {
916− return err
917− }
918− c.currentAgent.SetTools(tools)
919− slog.Debug("refreshed agent tools", "count", len(tools))
920− return nil
921−}
922−
923func (c *coordinator) QueuedPrompts(sessionID string) int {
907func (c *coordinator) QueuedPrompts(sessionID string) int {
924 return c.currentAgent.QueuedPrompts(sessionID)
908 return c.currentAgent.QueuedPrompts(sessionID)
925}
909}