diff --git a/pkg/agent/multi/agent.go b/pkg/agent/multi/agent.go index 01700ab64..a61602e72 100644 --- a/pkg/agent/multi/agent.go +++ b/pkg/agent/multi/agent.go @@ -83,10 +83,10 @@ func NewBaseAgent(cfg AgentConfig, registry *tools.ToolRegistry) *BaseAgent { } } -func (a *BaseAgent) Name() string { return a.config.Name } -func (a *BaseAgent) Role() string { return a.config.Role } -func (a *BaseAgent) SystemPrompt() string { return a.config.SystemPrompt } -func (a *BaseAgent) Capabilities() []string { return a.config.Capabilities } +func (a *BaseAgent) Name() string { return a.config.Name } +func (a *BaseAgent) Role() string { return a.config.Role } +func (a *BaseAgent) SystemPrompt() string { return a.config.SystemPrompt } +func (a *BaseAgent) Capabilities() []string { return a.config.Capabilities } func (a *BaseAgent) Tools() *tools.ToolRegistry { return a.tools } // HandoffRequest represents a request to delegate a task from one agent diff --git a/pkg/agent/multi/multi_test.go b/pkg/agent/multi/multi_test.go index bdbdb8467..f8626bbaf 100644 --- a/pkg/agent/multi/multi_test.go +++ b/pkg/agent/multi/multi_test.go @@ -37,11 +37,11 @@ func newMockAgent(name, role string, capabilities []string) *mockAgent { } } -func (m *mockAgent) Name() string { return m.name } -func (m *mockAgent) Role() string { return m.role } -func (m *mockAgent) SystemPrompt() string { return m.systemPrompt } -func (m *mockAgent) Capabilities() []string { return m.capabilities } -func (m *mockAgent) Tools() *tools.ToolRegistry { return m.toolRegistry } +func (m *mockAgent) Name() string { return m.name } +func (m *mockAgent) Role() string { return m.role } +func (m *mockAgent) SystemPrompt() string { return m.systemPrompt } +func (m *mockAgent) Capabilities() []string { return m.capabilities } +func (m *mockAgent) Tools() *tools.ToolRegistry { return m.toolRegistry } func (m *mockAgent) Execute(ctx context.Context, task string, shared *SharedContext) (string, error) { return m.executeFunc(ctx, task, shared) } diff --git a/pkg/agent/multi/registry.go b/pkg/agent/multi/registry.go index fbfcedb96..7e02f8e7e 100644 --- a/pkg/agent/multi/registry.go +++ b/pkg/agent/multi/registry.go @@ -36,9 +36,9 @@ type agentEntry struct { // // Thread-safe: all operations are protected by a read-write mutex. type AgentRegistry struct { - mu sync.RWMutex - agents map[string]*agentEntry - shared *SharedContext + mu sync.RWMutex + agents map[string]*agentEntry + shared *SharedContext } // NewAgentRegistry creates a new AgentRegistry with a fresh SharedContext.