Menu

Tian AI's Three-Layer Architecture: A Developer's Perspective
📰

Tian AI's Three-Layer Architecture: A Developer's Perspective

DEV Community·Jeffrey.Feillp·6 months ago
#DqiHFYt7
#layer#ai#architecture#python#module
Reading 0:00
15s threshold

Tian AI's Three-Layer Architecture: A Developer's Perspective

Tian AI is organized into three logical layers, each with a distinct responsibility.

Layer 1: Perception & Communication

Talker Module

Handles conversation management

Multi-turn context tracking

Emotion-aware responses

LLM-driven follow-up questions

File: talker/__init__.py

Layer 2: Reasoning & Knowledge

Thinker Module

Three-layer reasoning (Fast/CoT/Deep)

Query routing based on complexity

Knowledge base integration

Knowledge Module

SQLite FTS5 knowledge retrieval

Million-entry concept database

0.04-second average query time

Files: cot_engine.py , knowledge/__init__.py

Layer 3: Action & Evolution

Agent Module

LLM-driven task planning

TaskQueue with dependency resolution

Safety whitelist for autonomous execution

Self-Evolution Module

AST-based code analysis

Automated patch generation

XP + leveling system

Files: agent/__init__.py , llm_agent.py , self_modify.py

Cross-Cutting Concerns

LLM Management

llm_manager.py :…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.