This does exist to some degree, as far as I understand, along the lines of style-transfer and ControlNet in visual domains. Anthropic has some research called "persona vectors" which effectively push generative behaviors toward or away from particular traits.
[0] https://www.anthropic.com/research/persona-vectors [1] https://arxiv.org/abs/2507.21509