Character-LLM: A Trainable Agent for Role-Playing