Papers
Topics
Authors
Recent
Assistant
AI Research Assistant
Well-researched responses based on relevant abstracts and paper content.
Custom Instructions Pro
Preferences or requirements that you'd like Emergent Mind to consider when generating responses.
Gemini 2.5 Flash
Gemini 2.5 Flash 83 tok/s
Gemini 2.5 Pro 54 tok/s Pro
GPT-5 Medium 21 tok/s Pro
GPT-5 High 20 tok/s Pro
GPT-4o 103 tok/s Pro
Kimi K2 205 tok/s Pro
GPT OSS 120B 456 tok/s Pro
Claude Sonnet 4 35 tok/s Pro
2000 character limit reached

Drama Engine: A Framework for Narrative Agents (2408.11574v1)

Published 21 Aug 2024 in cs.AI and cs.CL

Abstract: This technical report presents the Drama Engine, a novel framework for agentic interaction with LLMs designed for narrative purposes. The framework adapts multi-agent system principles to create dynamic, context-aware companions that can develop over time and interact with users and each other. Key features include multi-agent workflows with delegation, dynamic prompt assembly, and model-agnostic design. The Drama Engine introduces unique elements such as companion development, mood systems, and automatic context summarising. It is implemented in TypeScript. The framework's applications include multi-agent chats and virtual co-workers for creative writing. The paper discusses the system's architecture, prompt assembly process, delegation mechanisms, and moderation techniques, as well as potential ethical considerations and future extensions.

Summary

  • The paper introduces a novel framework that leverages multi-agent systems to enable dynamic narrative interactions with large language models.
  • The paper employs a model-agnostic, TypeScript implementation that assembles context-aware prompts and delegates tasks via moderators and deputies.
  • The paper demonstrates real-world creative writing applications through evolving companion behaviors, mood systems, and automated context summarization.

Analysis of "Drama Engine: A Framework for Narrative Agents"

The paper "Drama Engine: A Framework for Narrative Agents" presents a comprehensive account of a novel framework designed to facilitate agentic interactions with LLMs for narrative purposes. Authored by Martin Pichlmair, Riddhi Raj, and Charlene Putney, this framework, termed the Drama Engine, leverages multi-agent system principles to create dynamic, context-aware companions capable of interaction and development over time.

Core Framework

The Drama Engine is implemented in TypeScript and aims to support various applications involving multi-agent and single-companion chats. Its key features include:

  • Multi-agent workflows with delegation: The framework orchestrates conversations between multiple agents via a moderator, enabling agents to delegate complex tasks to deputies.
  • Dynamic prompt assembly: Prompts are dynamically constructed based on current context, which includes chat participants' data, the task at hand, and the agents' states.
  • Model-agnostic design: The framework can rely on various backend LLMs compatible with OpenAI’s API standards, ensuring flexibility in deployment.

Unique Features

The Drama Engine incorporates several unique features that set it apart from similar systems:

  • Companion Development: Companions in the Drama Engine can evolve over time, unlocking new interactions as pre-defined conditions are met.
  • Mood Systems: The mood of a companion, which affects prompt generation, can be specified during configuration.
  • Automatic Context Summarization: When provided data exceeds the model’s context size, the system can automatically summarize the data through various methods.
  • Environmental Reactions: Companions can react to environment-supplied statistics within predefined contexts.

Applications

The primary applications of the Drama Engine include multi-agent chats and virtual coworkers for creative writing. In multi-agent chat scenarios, the framework runs conversations for multiple rounds, dynamically selecting speakers based on a prioritization system. For creative writing, companions can engage in task-based interactions, such as summarizing text or discussing thematic elements of a document.

Evaluation and Observations

The Drama Engine has been put to test via integration into the Writers Room, a live product for creative writers. Users have highlighted certain behavioral tendencies of the companions:

  • Niceness Predominance: Companions often exhibit overly friendly interactions, which may stem from the fine-tuning datasets of the underlying models rather than the framework itself.
  • Style Homogenization: A tendency has been observed whereby companions mimic each other's conversational styles, potentially linked to model size and fine-tuning.

Discussion and Extensions

The paper underscores several discussion points:

  • Trade-offs: Balancing model size against speed, cost, and quality remains a pivotal consideration. Larger models offer improved role-playing but at higher computational costs.
  • Model Improvements: There is a need for LLMs specifically fine-tuned for role-playing to better meet the requirements of narrative interactions.

To extend the Drama Engine, developers can introduce new deputies with specific actions or create novel subclasses of existing deputies. Future functionalities may include memory systems for companions and the incorporation of tool-calling capabilities.

Ethical Considerations

The authors address several ethical concerns:

  • Privacy and Safety: Ensuring user communication safety and privacy is paramount.
  • Bias Management: Recognizing and addressing the biases originating from model training data is crucial, especially in artistic and narrative contexts.
  • Transparency: Maintaining transparency regarding the unpredictable nature of LLM-generated content is essential.
  • Reliability: Acknowledging the inherent unreliability of LLMs and communicating the limitations of the Drama Engine in decision-making contexts beyond entertainment and aesthetic support.

Future Outlook

Anticipated developments include the implementation of memory mechanisms for companions and exploring tool-calling functionalities once a unified syntax is established.

Conclusion

"Drama Engine: A Framework for Narrative Agents" contributes a versatile and dynamic approach to multi-agent interactions within the narrative domain. By enabling companions to evolve, exhibit mood-driven behaviors, and interact based on rich contextual data, it offers promising avenues for applications in creative writing and beyond. As LLMs continue to evolve, frameworks like the Drama Engine will play a crucial role in harnessing their narrative potential.

Lightbulb On Streamline Icon: https://streamlinehq.com

Continue Learning

We haven't generated follow-up questions for this paper yet.

List To Do Tasks Checklist Streamline Icon: https://streamlinehq.com

Collections

Sign up for free to add this paper to one or more collections.

X Twitter Logo Streamline Icon: https://streamlinehq.com

Tweets

This paper has been mentioned in 1 post and received 1 like.