On the Role of Contextual Information and Ego States in LLM Agent Behavior for Transactional Analysis Dialogues

Monika Zamojska, Jarosław A. Chudziak
12/18/2025
cs.MAcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

LLM-powered agents are now used in many areas, from customer support to education, and there is increasing interest in their ability to act more like humans. This includes fields such as social, political, and psychological research, where the goal is to model group dynamics and social behavior. However, current LLM agents often lack the psychological depth and consistency needed to capture the real patterns of human thinking. They usually provide direct or statistically likely answers, but they miss the deeper goals, emotional conflicts, and motivations that drive real human interactions. This paper proposes a Multi-Agent System (MAS) inspired by Transactional Analysis (TA) theory. In the proposed system, each agent is divided into three ego states - Parent, Adult, and Child. The ego states are treated as separate knowledge structures with their own perspectives and reasoning styles. To enrich their response process, they have access to an information retrieval mechanism that allows them to retrieve relevant contextual information from their vector stores. This architecture is evaluated through ablation tests in a simulated dialogue scenario, comparing agents with and without information retrieval. The results are promising and open up new directions for exploring how psychologically grounded structures can enrich agent behavior. The contribution is an agent architecture that integrates Transactional Analysis theory with contextual information retrieval to enhance the realism of LLM-based multi-agent simulations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zamojska2025role,
  title  = {On the Role of Contextual Information and Ego States in LLM Agent Behavior for Transactional Analysis Dialogues},
  author = {Monika Zamojska and Jarosław A. Chudziak},
  year   = {2025},
  eprint = {2512.17060},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.17060v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.17060.svg)](https://codeofpaper.com/paper/2512.17060)

Discussion