This document provides an overview of the Therapeutic Text Adventure (TTA) architecture.
The TTA project is built with a modular architecture that separates concerns and allows for easy extension. The main components are:
┌─────────────────────────────────────────────────────────────────┐
│ TTA System │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Game Engine │
├─────────────┬─────────────┬─────────────┬─────────────┬─────────┤
│ Game Loop │ Game State │ Commands │ Input │ Output │
└─────────────┴─────────────┴─────────────┴─────────────┴─────────┘
│
┌────────────────┼────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
│ Agent System │ │ Tool System │ │ Knowledge Graph │
├───────────────────┤ ├───────────────────┤ ├───────────────────┤
│ Input Processor │ │ Look Tool │ │ Locations │
│ Narrative Generator│ │ Move Tool │ │ Items │
└───────────────────┘ │ Examine Tool │ │ Characters │
│ │ Talk Tool │ └───────────────────┘
│ │ Inventory Tool │ │
│ └───────────────────┘ │
│ │ │
└──────────┬───────────┘ │
│ │
▼ ▼
┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
│ Model System │ │ MCP System │ │ Neo4j │
├───────────────────┤ ├───────────────────┤ ├───────────────────┤
│ Model Manager │ │ Server Manager │ │ Graph Database │
│ Transformers API │ │ Agent Adapters │ │ │
└───────────────────┘ └───────────────────┘ └───────────────────┘
The TTA architecture follows these key design principles: