An agent-based opinion dynamics model with a language model-based belief system