# Events

**作用**: 详细介绍 AG-UI 协议中的所有事件类型，包括生命周期、文本、工具调用、状态管理、推理等事件。

**源文件**: `llms-full.txt`
**行号范围**: 680-1475

**内容索引**:
- Event Types Overview - 事件分类表 (行 692-703)
- Base Event Properties (行 705-713)
- Lifecycle Events - RunStarted, RunFinished, RunError, StepStarted, StepFinished (行 715-754)
- Text Message Events - TextMessageStart, TextMessageContent, TextMessageEnd, TextMessageChunk (行 835-937)
- Tool Call Events - ToolCallStart, ToolCallArgs, ToolCallEnd, ToolCallResult, ToolCallChunk (行 938-1066)
- State Management Events - StateSnapshot, StateDelta, MessagesSnapshot (行 1067-1155)
- Activity Events - ActivitySnapshot, ActivityDelta (行 1156-1189)
- Special Events - Raw, Custom (行 1191-1233)
- Reasoning Events - ReasoningStart, ReasoningMessageStart/Content/End/Chunk, ReasoningEnd, ReasoningEncryptedValue (行 1234-1368)
- Deprecated Events - THINKING_* 事件迁移 (行 1369-1389)
- Draft Events - Meta Events, Modified Lifecycle Events (行 1391-1446)
- Event Flow Patterns - Start-Content-End, Snapshot-Delta, Lifecycle (行 1447-1474)
