Datasets:
Download README.md from Balab2021/CricketData-T20-Agentic-ToolUse: direct link, hf CLI and curl.
- Browser
- Download file 7.86 kB
-
https://huggingface.co/datasets/Balab2021/CricketData-T20-Agentic-ToolUse/resolve/main/README.md
- Command line
-
hf download hf://datasets/Balab2021/CricketData-T20-Agentic-ToolUse/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Balab2021/CricketData-T20-Agentic-ToolUse/resolve/main/README.md
license: cc0-1.0
task_categories:
- question-answering
- text-generation
tags:
- agents
- tool-use
- function-calling
- reinforcement-learning
- rlvr
- cricket
- t20
- synthetic
- nemo-curator
- nemo-gym
size_categories:
- 100K<n<1M
configs:
- config_name: default
data_files:
- split: train
path: data/train-*.parquet
- split: test
path: data/test-*.parquet
- split: benchmark
path: data/benchmark-*.parquet
Cricket T20I scorebook agent tasks (multi-step tool use, exact answers)
99,132 tool-use tasks built from Balab2021/CricketData-T20-Reasoning-Qwen3.8-Full with NeMo Curator (nemo-curator 1.4.0).
The source dataset asks cricket arithmetic questions with all numbers given in the prompt. Here the numbers are removed from the question and placed behind tools: the agent has to find the match, look up the state of an innings at one or two points, calculate, and report a number. Every answer is computed exactly from the data, so a run can be scored without a judge model. The dataset is meant for post-training and evaluating agents with verifiable rewards.
What is in the repository
| Path | Content |
|---|---|
data/train-*.parquet |
94,002 tasks from 1,567 matches |
data/test-*.parquet |
5,130 tasks from 171 other matches (no match is in both splits) |
data/benchmark-*.parquet |
600 test tasks, 60 per task type (subset of test) |
scorebook/matches.jsonl |
1,774 matches: id, date, venue, team batting first, team batting second |
scorebook/deliveries.jsonl |
394,701 innings states, one per legal delivery |
scorebook.py |
the four tools, the task builders and the answer checker (Python standard library only) |
stats.json |
counts from every pipeline stage |
Tools
| Tool | Arguments | Returns |
|---|---|---|
find_match |
team_a, team_b, date |
match_id, venue, which team batted first and second |
get_score |
match_id, innings, overs |
runs, wickets, balls bowled, balls remaining, target (second innings) |
get_batter |
match_id, innings, overs |
batter on strike, that batter's runs and balls faced, bowler |
calculate |
expression |
value of an arithmetic expression |
A point in an innings is written overs.balls (14.3 = 14 overs and 3 balls). A lookup returns the state right after
the legal delivery that completed that point. Tool errors come back as {"error": "..."}.
Task types
| Type | Question | Score/batter lookups in the reference solution | train | test | benchmark |
|---|---|---|---|---|---|
run_rate |
run rate after a given point | 1 | 9,402 | 513 | 60 |
required_rate |
run rate a chasing side still needs | 1 | 9,395 | 513 | 60 |
projection |
projected 20-over total at the current rate | 1 | 9,402 | 513 | 60 |
phase_runs |
runs scored between two points of an innings | 2 | 9,398 | 513 | 60 |
phase_rate |
run rate between two points of an innings | 2 | 9,401 | 513 | 60 |
phase_wickets |
wickets lost between two points of an innings | 2 | 9,400 | 513 | 60 |
innings_compare |
lead of the chasing side over the other side at the same stage (two innings) | 2 | 9,398 | 513 | 60 |
strike_rate |
strike rate of the batter on strike | 1 | 9,402 | 513 | 60 |
milestone |
balls the batter on strike needs for the next multiple of 50 | 1 | 9,402 | 513 | 60 |
batter_share |
share of the team's runs scored by the batter on strike | 2 | 9,402 | 513 | 60 |
Every reference solution is: find_match, then the lookups, then one calculate call, then the answer
(3.5 tool calls on average).
Columns
| Column | Meaning |
|---|---|
id |
<match_id>-<innings>-<balls>[-<innings>-<balls>]-<type> |
split, qtype, match_id |
split, task type, match |
question |
user message |
gold, answer_kind |
exact answer; rate answers are accepted within 0.011, int answers must match |
tools |
JSON string: the four tool definitions (OpenAI Responses format) |
messages |
JSON string: reference conversation (system, user, assistant tool calls, tool results, final answer) |
num_reference_tool_calls |
tool calls in the reference conversation |
source_row_indices |
JSON string: row numbers in Valarmathy/CricketData that the task uses |
Example
T20 International Bangladesh v England at Zayed Cricket Stadium on 2021-10-27.
England were chasing. After 11.1 overs of the chase, what run rate (runs per over) did they need over the rest of their 20 overs to reach the target? Round to 2 decimal places.
Reference solution (answer 3.51):
assistant -> find_match({"team_a": "Bangladesh", "team_b": "England", "date": "2021-10-27"})
tool <- {"match_id": 1273731, "date": "2021-10-27", "venue": "Zayed Cricket Stadium", "bat_first": "Bangladesh", "bat_second": "England"}
assistant -> get_score({"match_id": 1273731, "innings": 2, "overs": "11.1"})
tool <- {"match_id": 1273731, "innings": 2, "batting_team": "England", "bowling_team": "Bangladesh", "overs": "11.1", "balls_bowled": 67, "balls_remaining": 53, "runs": 94, "wickets": 1, "target": 125}
assistant -> calculate({"expression": "round((125 - 94) * 6 / 53, 2)"})
tool <- {"value": 3.51}
assistant: Using the scorebook figures, round((125 - 94) * 6 / 53, 2) = 3.51. / Final answer: 3.51
How it was built
- Extract - the
sourcerecord of every question row becomes one scorebook entry (state after a delivery). Rows for wides and no-balls and rain-revised matches are dropped: 500,000 question rows, 34,947 unusable, 69,538 repeats of a delivery already seen. - Clean - exact de-duplication per match, innings and ball (1 removed); rows with impossible values (813) and innings whose score ever decreases (0) are dropped.
- Exclude double-headers - 36 matches share both teams and the date with another match (same venue too), so a question could not say which one is meant. They stay in the scorebook, but no task is built on them.
- Generate - per match, up to 6 tasks of each type for training matches and 3 for test matches, at points between 2.0 and 18.0 overs; two-point tasks span at least 2 overs.
- Validate - the reference conversation of every task is replayed through the scorebook and its final answer is checked against the gold answer with the dataset's own checker (0 mismatches and 0 malformed tasks were dropped; 99,132 kept).
The train/test split follows the source dataset: a match that has any test row is a test match.
Use
import json
from datasets import load_dataset
ds = load_dataset("Balab2021/CricketData-T20-Agentic-ToolUse", split="benchmark")
row = ds[0]
tools, reference = json.loads(row["tools"]), json.loads(row["messages"])
To run an agent, download scorebook.py and the scorebook/ folder:
import json, scorebook as S
book = S.Scorebook(map(json.loads, open("scorebook/matches.jsonl")), map(json.loads, open("scorebook/deliveries.jsonl")))
result = book.call("get_score", {"match_id": 1001349, "innings": 1, "overs": "14.3"})
ok = S.is_correct(S.parse_answer("Final answer: 7.25"), 7.25, "rate")
Versions
- 2026-12-01, second upload: tasks on same-day double-headers removed (they were ambiguous; 1.9% of the first upload).
Limits
- The reference conversations are produced by a program, not by a model. They show one valid tool sequence without reasoning text.
- All tasks are arithmetic over scorebook lookups in one domain. Results here say little about open-ended agent work.
- Numbers come from
Valarmathy/CricketDataas they are; they were checked for internal consistency, not against official scorecards.
Licence
CC0-1.0, the same as the source data.