# Core Architecture **作用**: 介绍 AG-UI 的核心架构、设计原则和运行机制。 **源文件**: `llms-full.txt` **行号范围**: 453-679 **内容索引**: - Design Principles - 事件驱动、双向交互、灵活中间件 (行 463-489) - Architectural Overview - 客户端-服务器架构 (行 491-534) - Protocol layer - run(input) -> Observable (行 537-567) - Standard HTTP client - HttpAgent, SSE/HTTP binary (行 569-585) - Message types - Lifecycle, Text, Tool, State, Special 事件 (行 587-609) - Running Agents (行 611-640) - State Management - STATE_SNAPSHOT, STATE_DELTA (行 642-652) - Tools and Handoff (行 653-662) - Base Event 属性 (行 664-677)