Can the language model in a running AI agent be replaced?
Yes, if the agent is built so that data connections, tools, rights and the log do not depend on a particular provider. Then only one link changes: another model is connected and the set of test examples is run to make sure the quality of answers has not dropped.
More in the guide to choosing a language model for business.