Change summary
internal/agent/coordinator.go | 16 ----------------
1 file changed, 16 deletions(-)
Detailed changes
@@ -71,7 +71,6 @@ type Coordinator interface {
Summarize(context.Context, string) error
Model() Model
UpdateModels(ctx context.Context) error
- RefreshTools(ctx context.Context) error
}
type coordinator struct {
@@ -905,21 +904,6 @@ func (c *coordinator) UpdateModels(ctx context.Context) error {
return nil
}
-func (c *coordinator) RefreshTools(ctx context.Context) error {
- agentCfg, ok := c.cfg.Config().Agents[config.AgentCoder]
- if !ok {
- return errors.New("coder agent not configured")
- }
-
- tools, err := c.buildTools(ctx, agentCfg)
- if err != nil {
- return err
- }
- c.currentAgent.SetTools(tools)
- slog.Debug("refreshed agent tools", "count", len(tools))
- return nil
-}
-
func (c *coordinator) QueuedPrompts(sessionID string) int {
return c.currentAgent.QueuedPrompts(sessionID)
}