Hexagonal. The flank drive sleeves have a precise fit for each dimension. The corners are rounded and the flat surface is slightly convex. This means that the grip is 100% on the flat sides of the nut/bolt. Especially during assembly, this is a guarantee not to damage the head.
Sleeve for external Torx screw