code: func (srv *Instance) RegisterAgent(ctx context.Context, name string, agent agents.Agent) error {
  	return srv.agents.RegisterAgent(ctx, name, agent, srv.connector)
  }
docs: // RegisterAgent adds a new agent to the running instance