seed_dataset.json
2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"skill": "youtube-data-expert",
"description": "YouTube 数据抓取专家技能训练数据",
"samples": [
{
"id": "sample-001",
"task": "获取单个视频详情",
"input": {
"videoId": "dQw4w9WgXcQ"
},
"expected_output": {
"id": "dQw4w9WgXcQ",
"title": "完整视频标题",
"description": "视频描述",
"publishedAt": "ISO8601格式时间",
"channelId": "频道ID",
"channelTitle": "频道名称",
"viewCount": 12345678,
"likeCount": 123456,
"commentCount": 12345,
"duration": "PT3M33S"
}
},
{
"id": "sample-002",
"task": "批量获取视频详情",
"input": {
"videoIds": ["id1", "id2", "id3", "...up_to_50"]
},
"expected_api_call": "GET /videos?id=id1,id2,id3,...&part=snippet,statistics"
},
{
"id": "sample-003",
"task": "获取频道详情",
"input": {
"channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw"
},
"expected_output": {
"id": "频道ID",
"title": "频道名称",
"description": "频道描述",
"subscriberCount": 1000000,
"viewCount": 100000000,
"videoCount": 500,
"publishedAt": "创建时间"
}
},
{
"id": "sample-004",
"task": "搜索视频",
"input": {
"query": "机器学习教程",
"maxResults": 25
},
"expected_api_call": "GET /search?q=机器学习教程&type=video&maxResults=25"
},
{
"id": "sample-005",
"task": "获取频道上传列表",
"input": {
"uploadsPlaylistId": "UUPxMZIFE215t3YupO8B1Bdw"
},
"expected_api_call": "GET /playlistItems?playlistId=UUPxMZIFE215t3YupO8B1Bdw&maxResults=50"
},
{
"id": "sample-006",
"task": "处理隐藏订阅数",
"input": {
"channelId": "xxx",
"hiddenSubscriberCount": true
},
"expected_behavior": "使用 viewCount/videoCount 作为规模估算"
},
{
"id": "sample-007",
"task": "解析 ISO 8601 时长",
"input": {
"duration": "PT15M33S"
},
"expected_output": 933
},
{
"id": "sample-008",
"task": "配额追踪",
"input": {
"requests": [
{"endpoint": "search", "count": 1},
{"endpoint": "videos", "count": 3}
]
},
"expected_quota_used": 103
},
{
"id": "sample-009",
"task": "处理 403 错误",
"input": {
"error": {"code": 403, "message": "quotaExceeded"}
},
"expected_behavior": "停止执行,报告配额已用完"
},
{
"id": "sample-010",
"task": "分页获取",
"input": {
"pageToken": "CAEQAA",
"maxResults": 50
},
"expected_behavior": "使用 pageToken 获取下一页结果"
}
]
}