I don’t know how genres work. But it is a piece that features different instruments taking turns improvising but i hesitate to label it jazz. Correct me if I’m wrong.

The Moving Finger writes; and having writ,

Moves on: nor all your Piety nor Wit

Shall lure it back to cancel half a Line,

Nor all your Tears wash out a Word of it.