词元之母TOK.MOM - 平台充值汇率 1:1 即 1 人民币充值到账 1 美元,支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!

agent/trajectory.py、run_agent.py(搜索 _save_trajectory)、batch_runner.py| 文件 | 时机 |
|---|---|
trajectory_samples.jsonl | 成功完成的对话(completed=True) |
failed_trajectories.jsonl | 失败或被中断的对话(completed=False) |
batch_runner.py)按批次写入自定义输出文件batch_001_output.jsonl),并附带额外的元数据字段。save_trajectory() 的 filename 参数覆盖文件名。_save_trajectory)#{
"conversations": [ ... ],
"timestamp": "2026-03-30T14:22:31.456789",
"model": "anthropic/claude-sonnet-4.6",
"completed": true
}batch_runner.py)#{
"prompt_index": 42,
"conversations": [ ... ],
"metadata": { "prompt_source": "gsm8k", "difficulty": "hard" },
"completed": true,
"partial": false,
"api_calls": 7,
"toolsets_used": ["code_tools", "file_tools"],
"tool_stats": {
"terminal": {"count": 3, "success": 3, "failure": 0},
"read_file": {"count": 2, "success": 2, "failure": 0},
"write_file": {"count": 0, "success": 0, "failure": 0}
},
"tool_error_counts": {
"terminal": 0,
"read_file": 0,
"write_file": 0
}
}tool_stats 和 tool_error_counts 字典已规范化,包含所有可能的工具model_tools.TOOL_TO_TOOLSET_MAP),缺省值为零,conversations 数组使用 ShareGPT 角色约定:| API 角色 | ShareGPT from |
|---|---|
| system | "system" |
| user | "human" |
| assistant | "gpt" |
| tool | "tool" |