新推出:交互式会话探索器! 我们上线了一个交互式会话探索器,帮助您以交互方式探索该数据集。立即体验!
本数据集涵盖了 16 周(2026-05-17 至 2026-09-05)内编码与助手类智能体通过 FreeInference 网关与 LLM 交互的完整记录,共计 12,002 个智能体会话,来自 267 个账户和 14 种智能体框架,包含 1,186,582 次 LLM 请求和 1,213,347 次工具调用。
本数据集配套论文 From Requests to Sessions: A Large-Scale Characterization of Human-Driven Agentic Workloads 发布。用于读取数据、回放前缀缓存并复现论文图表的代码位于 HarvardMadSys/freeinference_agentic_trace。
该 trace 包含请求时序与服务延迟、模型及匿名化提供商信息、token 用量、工具定义与调用、输入变更,以及用于缓存回放的块级前缀。不公开任何消息文本。
主要发布版本位于:
release/<week>/traces/<day>.jsonl.zst每个文件都是 zstd 压缩的 JSONL 格式,每行对应一个智能体会话。每个会话按顺序包含其 LLM 请求。每个请求记录了对应的模型调用及响应所生成的工具调用。如果某个工具调用启动了子智能体,则完整的子智能体会话将嵌套在该调用节点下。
一条轨迹的结构如下:
{
"week": "2026-05-17_2026-05-23",
"day": "2026-05-17",
// Session field
"session_id": "...",
"user_id": "...",
"harness": "claude-code",
"start_ms": 1778977459236,
"end_ms": 1778984067198,
// LLM requests in chronological order.
"requests": [
{
// Position in the session and user turn.
"step": 0,
"turn_index": 0,
// What triggered the request and how it connects
// to the previous request.
"step_trigger": "user",
"link_reason": null,
// Request timing at the gateway.
"start_ms": 1778977459236,
"end_ms": 1778977468828,
"ttft_ms": 7889,
// Requested model and anonymized upstream provider.
"model": "glm-5.1",
"provider": "B",
"stream": true,
// Token counts reported by the provider.
"provider_tokens": {
"prompt": 52731,
"completion": 230,
"cached": 1280
},
// Input tokens broken down by message role, tokenized with tiktoken.
"role_tokens": {
"system": 1790,
"user": 1110,
"assistant": 15916,
"tool": 25725,
"tool_definitions": 8638
},
// Shape of the input and tools exposed to the model.
"n_messages": 179,
"tool_definition_names": [
"read_file",
"write_file",
"terminal",
"execute_code"
],
"finish_reason": "tool_calls",
// How the input differs from the previous request.
// Null for the first request in a session.
"mutation": null,
// Input represented as chained 16-token blocks,
// tokenized with tiktoken.
"block_ids": [123, 456, 789, "..."],
// Tool calls produced by the model response.
"tool_calls": [
{
"call_index": 0,
"name": "terminal",
// Normalized tool type. Shell calls additionally record
// the programs found in the command.
"category": "*Interpreter",
"programs": ["python"],
"parse_status": "success",
// Arguments preserve their structure while sensitive
// values are replaced with typed placeholders.
"arguments": [
[
"command",
"python <path> --status"
],
[
"timeout",
"<num>"
]
],
// Tool outcome and the gap until the next LLM request.
"outcome": "error",
"result_tokens": 842,
"latency_ms": 5272,
// If this call starts another agent, its complete
// session is nested here.
"subagent": null
}
]
},
{
"step": 1,
"turn_index": 0,
"step_trigger": "tool",
"link_reason": "tool_call_id",
// Later requests contain the same fields.
// Here the previous input was extended without changing
// any earlier content.
"mutation": {
"transition": "append",
"cause": null
},
"tool_calls": ["..."]
}
]
}为了方便使用,processed/ 目录包含通过解析并展平 trace 数据生成的 Parquet 表,按会话、请求和工具调用进行组织。
o200k_base 进行分词,而非服务提供方的分词器,并按 16 个 token 为一个块进行分组。输入按以下顺序渲染:工具定义 → 系统提示 → 消息,不完整的末尾块会被丢弃。other 或带类型的占位符。manifest.json 会记录从发布中排除的会话及其排除原因。直接从 Hugging Face Hub 查询派生的 Parquet 表:
SELECT
sessions.harness,
count(*) AS requests,
approx_quantile(requests.ttft_ms, 0.5) AS p50_ttft_ms
FROM 'hf://datasets/harvardMadsys/freeinference_agentic_trace/release/*/processed/requests.parquet' AS requests
JOIN 'hf://datasets/harvardMadsys/freeinference_agentic_trace/release/*/processed/sessions.parquet' AS sessions
USING (session_id)
GROUP BY sessions.harness
ORDER BY requests DESC;from datasets import load_dataset
traces = load_dataset(
"harvardMadsys/freeinference_agentic_trace",
"traces",
split="week_2026_08_30",
)派生的 request 和 tool-call 表也可作为独立配置单独提供,方便使用:
requests = load_dataset(
"harvardMadsys/freeinference_agentic_trace",
"requests",
split="week_2026_08_30",
streaming=True,
)
tool_calls = load_dataset(
"harvardMadsys/freeinference_agentic_trace",
"tool_calls",
split="week_2026_08_30",
streaming=True,
)下载完整数据集:
hf download harvardMadsys/freeinference_agentic_trace \
--repo-type dataset \
--local-dir freeinference_trace或下载一周的:
hf download harvardMadsys/freeinference_agentic_trace \
--repo-type dataset \
--local-dir freeinference_trace \
--include "release/2026-08-30_2026-09-05/*"本数据集基于知识共享署名 4.0 国际许可协议(CC BY 4.0)发布。
如果您使用了本数据集,请引用以下论文。
如果您在研究中使用本数据集或数据工件,请引用我们的论文:
@article{freeinference2026requests,
title={From Requests to Sessions: A Large-Scale Characterization of Human-Driven Agentic Workloads},
author={Nixon, William and Tian, Muxin and Zheng, Yunjia and Gunawi, Haryadi S. and Yang, Juncheng},
year={2026}
}