From 09061d8175bb63d6893d835ed446da34f9bdd59a Mon Sep 17 00:00:00 2001 From: Leandro Barbosa Date: Wed, 18 Feb 2026 16:09:29 -0300 Subject: [PATCH] fix: align struct fields and method signatures for goimports --- pkg/multiagent/handoff_test.go | 6 +++--- pkg/multiagent/handoff_tool.go | 10 +++++----- pkg/tools/hooks_test.go | 10 ++++++---- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/pkg/multiagent/handoff_test.go b/pkg/multiagent/handoff_test.go index 56082f9af..91e8c5e72 100644 --- a/pkg/multiagent/handoff_test.go +++ b/pkg/multiagent/handoff_test.go @@ -814,9 +814,9 @@ type simpleTool struct { name string } -func (s *simpleTool) Name() string { return s.name } -func (s *simpleTool) Description() string { return "test tool" } -func (s *simpleTool) Parameters() map[string]interface{} { return nil } +func (s *simpleTool) Name() string { return s.name } +func (s *simpleTool) Description() string { return "test tool" } +func (s *simpleTool) Parameters() map[string]interface{} { return nil } func (s *simpleTool) Execute(_ context.Context, _ map[string]interface{}) *tools.ToolResult { return tools.NewToolResult("ok") } diff --git a/pkg/multiagent/handoff_tool.go b/pkg/multiagent/handoff_tool.go index 98e3cbd48..098991a27 100644 --- a/pkg/multiagent/handoff_tool.go +++ b/pkg/multiagent/handoff_tool.go @@ -10,11 +10,11 @@ import ( // HandoffTool allows an LLM agent to delegate a task to another agent. type HandoffTool struct { - resolver AgentResolver - board *Blackboard - fromAgentID string - originChannel string - originChatID string + resolver AgentResolver + board *Blackboard + fromAgentID string + originChannel string + originChatID string depth int // current handoff depth (0 = top-level) visited []string // agent IDs already in the call chain maxDepth int // max allowed depth (0 = use DefaultMaxHandoffDepth) diff --git a/pkg/tools/hooks_test.go b/pkg/tools/hooks_test.go index 13670cbe0..bde4b4548 100644 --- a/pkg/tools/hooks_test.go +++ b/pkg/tools/hooks_test.go @@ -30,10 +30,12 @@ type dummyTool struct { name string } -func (d *dummyTool) Name() string { return d.name } -func (d *dummyTool) Description() string { return "test tool" } -func (d *dummyTool) Parameters() map[string]interface{} { return nil } -func (d *dummyTool) Execute(_ context.Context, _ map[string]interface{}) *ToolResult { return NewToolResult("ok") } +func (d *dummyTool) Name() string { return d.name } +func (d *dummyTool) Description() string { return "test tool" } +func (d *dummyTool) Parameters() map[string]interface{} { return nil } +func (d *dummyTool) Execute(_ context.Context, _ map[string]interface{}) *ToolResult { + return NewToolResult("ok") +} func TestToolHook_BeforeAndAfterCalled(t *testing.T) { reg := NewToolRegistry()