A Framework for Efficient Development and Debugging of Role-Playing Agents with Large Language Models

Hirohane Takagi, Shoji Moriya, Takuma Sato, Manabu Nagao and Keita Higuchi

Abstract

We propose a framework that leverages large language models (LLMs) to semi-automate the development and debugging of role-playing agents, reducing the need for extensive manual effort. Role-playing agents powered by LLMs offer scalable solutions that enhance communication and interaction in various applications, such as employee training, healthcare, and software development. However, creating prompts manually is a time-consuming process, and sequential debugging increases the difficulty of anticipating conversation flow, resulting in increased cognitive load. Our framework addresses these challenges by generating and summarizing dialogue examples, providing a clearer overview of conversation flow and reduce mental workload. It also enhances role-playing quality by mitigating LLMs’ tendency to produce generic or vague responses. In a user study, the proposed method significantly improved perceived workload and five of the six NASA-TLX dimensions. Moreover, it can generate agents comparable to those created with expertly crafted prompts. This framework is model-agnostic, enabling integration of advancements in LLM capabilities and prompting techniques, and is applicable to diverse domains.

Venue
IUI 2025
Volume
Proceedings of the 30th International Conference on Intelligent User Interfaces
DOI
10.1145/3708359.3712119
PDF
https://dl.acm.org/doi/pdf/10.1145/3708359.3712119
Anthology ID
2025.iui.49

Cite

@inproceedings{takagi-etal-2025-framework,
    title = {{A Framework for Efficient Development and Debugging of Role-Playing Agents with Large Language Models}},
    author = {Hirohane Takagi and Shoji Moriya and Takuma Sato and Manabu Nagao and Keita Higuchi},
    booktitle = {Proceedings of the 30th International Conference on Intelligent User Interfaces},
    isbn = {9798400713064},
    year = {2025},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3708359.3712119},
    url = {https://doi.org/10.1145/3708359.3712119},
    abstract = {We propose a framework that leverages large language models (LLMs) to semi-automate the development and debugging of role-playing agents, reducing the need for extensive manual effort. Role-playing agents powered by LLMs offer scalable solutions that enhance communication and interaction in various applications, such as employee training, healthcare, and software development. However, creating prompts manually is a time-consuming process, and sequential debugging increases the difficulty of anticipating conversation flow, resulting in increased cognitive load. Our framework addresses these challenges by generating and summarizing dialogue examples, providing a clearer overview of conversation flow and reduce mental workload. It also enhances role-playing quality by mitigating LLMs’ tendency to produce generic or vague responses. In a user study, the proposed method significantly improved perceived workload and five of the six NASA-TLX dimensions. Moreover, it can generate agents comparable to those created with expertly crafted prompts. This framework is model-agnostic, enabling integration of advancements in LLM capabilities and prompting techniques, and is applicable to diverse domains.}
}