GLM-5.2-Agent
收藏资源简介:
GLM-5.2 Agent traces 是一个由 TeichAI 使用 teich 工具生成的智能体轨迹数据集,旨在记录 GLM-5.2 模型在会话中的原始交互行为,用于智能体训练与蒸馏。数据集包含 151 个 JSONL 文件,每个文件代表一个独立的智能体会话,以每行一个 JSON 对象的形式存储。数据内容涵盖了完整的会话历史,并经过规范化处理,确保语义顺序为推理优先、可选的助手文本次之、工具调用最后。数据集的一个关键特性是嵌入了训练就绪的工具模式,即使会话中未实际调用工具,也能通过数据集级别的工具模式快照(包含 bash、edit、read、write、read_file、write_file 等函数描述)提供完整的工具定义,确保训练数据的可用性。此外,数据还保留了丰富的运行时上下文信息,如技能、MCP 指令、钩子上下文、权限状态、日期变更和会话回顾等,这些信息在原始记录可用时会以掩码化的“系统”消息形式保存。数据集适用于文本生成任务,特别是基于智能体轨迹的模型训练、行为克隆和知识蒸馏。用户可以通过 teich 工具进行数据加载、转换(如转换为包含 prompt、messages、tools 和 metadata 的 OpenAI 风格格式)、混合和验证,以适配不同的训练流程。
GLM-5.2 Agent Traces is an agent trajectory dataset generated by TeichAI using the teich tool, which aims to record the original interactive behaviors of the GLM-5.2 model during conversations for agent training and knowledge distillation. The dataset consists of 151 JSONL files, each representing an independent agent conversation, stored in the format of one JSON object per line. The data covers the complete conversation history and has been standardized to ensure that the semantic order follows: reasoning first, followed by optional assistant messages, and finally tool calls. A key feature of this dataset is the embedded training-ready tool schema. Even if no tools are actually called during a conversation, it can provide complete tool definitions via a dataset-level tool schema snapshot (including function descriptions such as bash, edit, read, write, read_file, and write_file), ensuring the availability of training data. In addition, the dataset retains rich runtime context information, such as skills, MCP instructions, hook context, permission status, date changes, session reviews, etc. These pieces of information will be saved as masked "system" messages when the original records are available. This dataset is suitable for text generation tasks, especially model training, behavioral cloning, and knowledge distillation based on agent trajectories. Users can use the teich tool to load, transform (e.g., convert to OpenAI-style format containing prompt, messages, tools, and metadata), mix, and validate the data to adapt to various training workflows.
数据集名称
- GLM-5.2 Agent traces
基本属性
- 发布者: TeichAI (通过 teich 工具生成)
- 数据集标识:
AletheiaResearch/GLM-5.2-Agent - 任务类别: 文本生成 (text-generation)
- 标签: agent-traces, distillation, pi, z-ai/glm-5.2, teich
数据规模与格式
- 文件数量: 196个JSONL文件
- 数据格式: 每行一个JSON对象,代表一个完整的agent会话记录
- 模型元数据:
z-ai/glm-5.2
数据结构
每个agent会话记录包含常见顶层事件组:
session_metaturn_contextevent_msgresponse_itemsessionmessagesession_infomodel_changethinking_level_changeexternal_session_metaexternal_messageexternal_stderr
数据生成与处理
- 使用 teich 工具生成
- 支持训练就绪的工具schema恢复,即使原始记录中只包含工具名称或调用
- 提供了完整的数据集级tools schema快照(内嵌于README折叠区域),包含bash、edit、read、read_file、write、write_file等工具定义
load_traces函数可将该schema作为fallbacktools字段应用到每个加载的样本
训练与使用
- 数据集可直接用于Teich的数据准备和训练工具
- 可使用
teich convert命令转换为独立的OpenAI风格JSONL行(包含prompt、messages、tools、metadata字段) - 详细训练指南可参考 Teich训练文档
- 数据加载、混合、转换和验证方法可参考 Preparing Data文档
示例数据
json {"type": "session", "version": 3, "id": "019ee172-2f9f-7341-8125-4e5d535d9e56", "timestamp": "2026-06-19T19:53:37.440Z", "cwd": "/workspace"}




