Large language models have demonstrated their capabilities in storyline creation and human-like character role-playing. Current language model agents mainly focus on reasonable behaviors from the level of individuals, and their behaviors might be hard to constraint on the level of the whole storyline. In this paper we introduce IBSEN, a director-actor coordinate agent framework that generates drama scripts and makes the plot played by agents more controllable. The director agent writes plot outlines that the user desires to see, instructs the actor agents to role-play their characters, and reschedules the plot when human players participate in the scenario to ensure the plot is progressing towards the objective. To evaluate the framework, we create a novel drama plot that involves several actor agents and check the interactions between them under the instruction of the director agent. Evaluation results show that our framework could generate complete, diverse drama scripts from only a rough outline of plot objectives, meanwhile maintaining the characteristics of characters in the drama. Our codes and prompts are available at https://github.com/OpenDFM/ibsen.
翻译:大语言模型已在故事情节创作与拟人化角色扮演方面展现出强大能力。现有语言模型智能体主要关注个体层面的合理行为,其行为在整体故事线层面往往难以约束。本文提出IBSEN——一种导演-演员协同智能体框架,能够生成戏剧剧本并使智能体演绎的情节更具可控性。导演智能体根据用户期望撰写情节大纲,指导演员智能体进行角色扮演,并在人类玩家参与剧情时重新调度情节走向,确保故事朝目标方向发展。为评估该框架,我们构建了包含多个演员智能体的新颖戏剧情节,并检验其在导演智能体指导下的交互行为。评估结果表明,仅需粗略的情节目标大纲,本框架即可生成完整且多样化的戏剧剧本,同时保持剧中角色的性格特征。代码与提示词已开源:https://github.com/OpenDFM/ibsen。