style: apply gofmt formatting

This commit is contained in:
Edouard CLAUDE 2026-02-18 14:56:43 +04:00
parent 7ab8431b33
commit fcd951cc27
3 changed files with 12 additions and 12 deletions

View file

@ -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

View file

@ -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)
}

View file

@ -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.