Dataset Viewer
Auto-converted to Parquet Duplicate
source_file
stringclasses
1 value
source_record_index
int64
0
511
canonical_record_sha256
stringlengths
64
64
trajectory_index
int64
0
511
rollout_id
stringlengths
36
36
rollout_offset
int64
0
15
prompt_group_uid
stringclasses
32 values
source_sample
stringclasses
32 values
ability
stringclasses
1 value
data_source
stringclasses
4 values
provenance_data_type
stringclasses
4 values
provenance_schema_version
stringclasses
1 value
context_reliable
bool
1 class
context_error_json
stringclasses
0 values
global_step
int64
2
2
batch_index
int64
1
1
epoch
int64
0
0
effective_total_tokens
int64
5.18k
30.5k
trainable_response_tokens
int64
650
24.6k
user_turn_rewards_json
stringlengths
6
175
questions_json
stringclasses
31 values
ground_truth_json
stringclasses
31 values
prompt_text
stringclasses
30 values
response_text
stringlengths
2.91k
123k
messages_json
stringlengths
23.6k
153k
non_tensor_json
stringlengths
51.1k
265k
data/raw_trajectories_update_2_512.jsonl
0
9acf0064eb561fcf4464452d3fb8f4c7cf8bf17359935192169335681bc78e80
0
9af4c6b1-a2a7-4b1e-8d14-be699720004b
0
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,631
3,599
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's see. The user wants to book a first-class flight from San Francisco to Los Ang(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
1
dc01d5dd7ec33094ee9c0c4c332b3a22c7e06f8ae5d786cc44cd53a219a4cd13
1
40156064-2eeb-4a46-8367-addee96f15c8
1
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,695
3,663
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, the user wants to book a first-class flight from San Francisco to Los Angeles on Oct(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
2
8fb9020ae80f600247324f9d938e634b96ad7ad69d4aceb0ebb79847dc36e11e
2
2dcd9673-3298-4951-80c2-36f6749aacbd
2
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,193
3,161
[-2.0,0.0,0.0,0.0,-1.0,-1.0,0.0,-1.0,0.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's see. The user wants to book a first-class flight from San Francisco to Los Ang(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
3
bc8e93c33bf491f6c5f63057f1bbd7ebd4e1d0a2185ab0dc546d80499b4ab9ae
3
a833040d-e4f0-4d2e-b373-49cd14be0ed4
3
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,822
3,790
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's tackle this user's request step by step. The user wants to book a first-class (...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
4
831d21df45b47f9d34dc47d3022b3afbe57ef6f94e3b3bb485039f9089fbdf98
4
f9fde46a-fcf6-4bc6-a233-5472857ad838
4
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,928
3,896
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's break down the user's request. They want to book a first-class flight from San(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
5
4f11ef363dbaed46a9c8e0dd1310ec0289d2336b1717b535b7028237bfbf8547
5
dc552765-8052-4665-a23c-d28f24e25430
5
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
10,443
4,411
[-1.0,-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's break down the user's request. They want to fly from San Francisco to Los Ange(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
6
09cfa2ede2e3a88bb1796b6c2555a80347f8a9838017ec4948513f97abccf666
6
0f8cce8f-9cdc-422b-b88f-3b5c48bf0688
6
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,958
3,926
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's see. The user wants to book a flight from San Francisco to Los Angeles on Octo(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
7
d37005f4f70c10751086f565984fe4a315e94dd1fa54de0b6026f161b7017432
7
befe3412-0d57-48a4-9ce9-2d31ab381b79
7
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,727
3,695
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's break down the user's request. They want to book a first-class flight from San(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
8
b28f0c75283314297745e3e217fe5f970a1a203669be55c07ea2b7bd2a1ecbcd
8
84f88361-d8a6-4211-81cc-00599c0190b4
8
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
9,579
3,547
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0,1.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's see. The user wants to book a first-class flight from San Francisco to Los Ang(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
data/raw_trajectories_update_2_512.jsonl
9
4986ebe0d9f65a38ceb9e9f6e2d48b6ca58c744260532f02fc89e873d789a1dd
9
8516d0df-e6fb-4a67-969d-637bfd967e77
9
1b94ddc9-3612-48c4-acf2-7b755d72330f
multi_turn_base_156
multi_turn_function_calling
multi_turn_base
multi_turn_base
rods_matchtir_rollout.v1
true
null
2
1
0
10,839
4,807
[-1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0,-3.0,-3.0,-3.0,-3.0,-3.0,1.0,-1.0,0.0]
"[[{\"content\":\"I'm planning to fly from San Francisco to Los Angeles on October 15, 2026. Could y(...TRUNCATED)
"[[\"get_flight_cost(travel_from='SFO', travel_to='LAX', travel_date='2026-10-15', travel_class='fir(...TRUNCATED)
"system\nYou are an expert in composing functions. You are given a question and a set of possible fu(...TRUNCATED)
"<think>\nOkay, let's break down the user's request. They want to book a first-class flight from San(...TRUNCATED)
"{\"messages\":[{\"content\":\"You are an expert in composing functions. You are given a question an(...TRUNCATED)
"{\"ability\":\"multi_turn_function_calling\",\"data_source\":\"multi_turn_base\",\"extra_info\":{\"(...TRUNCATED)
End of preview. Expand in Data Studio
ToolWeave mark

🧡 ToolWeave BFCL Formal-Training Rollout Case Study

This dataset publishes the complete raw on-policy rollout artifact from ToolWeave formal-training update 2, together with a focused real-rollout case study and deterministic K=16 peer-group analysis for runtime-interaction credit assignment. The records contain protocol failures and self-correction; they are raw reinforcement-learning trajectories, not curated demonstrations and not benchmark results.

Project: Muradil-mamat-211/ToolWeave

πŸ‘οΈ Dataset Viewer

The Hub viewer exposes four independent, schema-stable subsets instead of trying to merge semantically different JSON artifacts into one table:

Viewer subset Rows Canonical source
raw_trajectories (default) 512 data/raw_trajectories_update_2_512.jsonl
selected_rollout 1 data/multi_turn_base_156_rollout_offset_9.json
credit_summary 16 analysis/user_turn3_k16_credit_summary.csv
interaction_advantage 36 analysis/user_turn3_k16_full_interaction_advantage.csv

The files under viewer/ are deterministic Parquet views, not replacements for the canonical artifacts. Key identifiers and scalar metrics remain typed columns. Irregular nested trajectory structures are losslessly serialized as compact JSON strings, including the complete non_tensor_json field, so the Hub can build Parquet without merging incompatible object schemas or creating zero-child structs. canonical_record_sha256 links each trajectory-view row to its canonicalized source record, and each Parquet file embeds its source-file SHA256 in schema metadata.

Rebuild and validate the Viewer files with:

python -m pip install -r scripts/requirements-viewer.txt
python scripts/build_viewer_parquet.py

🧾 Formal-Training Update 2 Raw Dataset

data/raw_trajectories_update_2_512.jsonl is the complete raw trajectory artifact produced by ToolWeave formal training at update_2.

Field Value
Training update update_2
Records 512 trajectories
Prompt groups 32 groups Γ— 16 rollouts
Format JSONL, one trajectory per line
Role Raw on-policy training artifact, not SFT data or a benchmark result

Each record preserves the runtime messages, parser/provenance metadata, reward records, questions, ground truth, and policy responses generated during the formal-training rollout.

πŸ”Ž Source identity

Field Value
Original BFCL sample multi_turn_base_156
Source JSONL line 10
Trajectory index 9
Global step / batch / epoch 2 / 1 / 0
Group/prompt UID 1b94ddc9-3612-48c4-acf2-7b755d72330f
Individual rollout ID 8516d0df-e6fb-4a67-969d-637bfd967e77
Rollout offset 9
Rollouts sharing the group UID 16
Source artifact SHA256 806b209cf7e02a1a20396fa833238fbe3bf9a2eacd794af7b3b8ed17ab6ba3e4

non_tensor.uid is the prompt/group identifier shared by the K=16 rollouts. It is not a unique trajectory ID. matchtir_provenance.rollout_id identifies the individual rollout.

πŸ—‚οΈ Complete stateful sample

The published JSON preserves the complete trajectory record: all five statefully connected BFCL user turns, runtime messages, interaction provenance, reward records, questions, ground truth, and policy responses.

User turn Ground-truth calls
0 get_flight_cost, book_flight
1 retrieve_invoice
2 contact_customer_support
3 ticket_login, create_ticket
4 edit_ticket

The ground-truth call-count structure is [2, 1, 1, 2, 1].

πŸ” Runtime-interaction recovery

ToolWeave's formal local temporal axis is the sequence of real non-answer runtime interactions within one BFCL user turn. One runtime interaction is one assistant generation followed by parser/environment handling. A valid final answer is excluded from the local sequence and receives global advantage only.

For User Turn 3, the selected rollout contains six non-answer runtime interactions:

j=0  parse_error  β†’ P_j=[] β†’ r_j=0
j=1  parse_error  β†’ P_j=[] β†’ r_j=0
j=2  parse_error  β†’ P_j=[] β†’ r_j=0
j=3  parse_error  β†’ P_j=[] β†’ r_j=0
j=4  parse_error  β†’ P_j=[] β†’ r_j=0
j=5  one valid tool-call action containing:
       β”œβ”€β”€ ticket_login
       └── create_ticket
     β†’ call rewards [1.0, 1.0]
     β†’ r_j=1.0

The parser-rejected generations remain real discount steps at immediate reward zero. Only the final successfully parsed calls enter whole-user-turn matching. The valid action contains one <tool_call> block with a JSON array of two calls, so it remains one temporal interaction and its call rewards are averaged.

πŸ“ Frozen formal-credit semantics

The active Stage-3 mode is runtime_interaction_final:

  • all successfully parsed calls in one BFCL user turn are concatenated with multiplicity preserved and matched once;
  • call rewards are scattered back to their originating runtime interaction;
  • an unparsed interaction has P_j=[] and r_j=0, but remains in the timeline;
  • discounting uses real non-answer runtime depth j, with gamma=0.9;
  • local peers share (group_uid, user_turn_id, runtime_interaction_index);
  • ragged normalization uses unbiased sample standard deviation without zero-padding;
  • singleton and zero-variance peer sets abstain with A_local=0;
  • fusion is A_TW = A_RODS + A_local, with no averaging or post-fusion normalization.

For the special rollout:

immediate rewards:  [0, 0, 0, 0, 0, 1]
discounted returns: [0.59049, 0.65610, 0.72900, 0.81000, 0.90000, 1.00000]
peer support:       [16, 16, 1, 1, 1, 1]

Its fixed-denominator progress reward is R_P=0.8, and its global normalized advantage is A_RODS=-0.4966976345. Full-precision peer means, sample standard deviations, local advantages, and fused advantages are provided in the analysis files.

The complete K=16 User Turn 3 audit contains 36 rowsβ€”one for every real non-answer runtime interaction across the group. runtime_interaction_index and runtime_depth are the formal temporal fields. The older interaction_index, tool_attempt_index, r_t, and R_t fields remain only for backward compatibility; they do not define discounting or normalization.

The same deterministic audit verifies offset 2 with the runtime state checker. Its User Turn 3 calls match locally, while an earlier User Turn 0 omitted book_flight and used SAN instead of the ground-truth SFO for get_flight_cost. The resulting TravelAPI state mismatch makes the stateful User Turn 3 terminal score zero; this is neither a User Turn 3 parser failure nor a matching failure.

βœ… Implementation and solver provenance

The values are reproduced by the current frozen ToolWeave Stage-3 formal-training implementation. The source trajectory remains unchanged; the production implementation replays its runtime/provenance records deterministically. The complete relevant pytest suite, K=16 regression, parser-error token-broadcast checks, and deterministic CPU trainer tensor-contract checks passed. No new formal training or checkpoint generation was performed for this documentation synchronization.

Solver provenance:

  • the MatchTIR paper describes maximum-weight KM/Hungarian assignment;
  • the audited MatchTIR public helper at commit 975c4535fbb86a49f21ff7d291a1fa822f827684 uses sorted positive non-conflicting edges;
  • ToolWeave uses SciPy's true linear_sum_assignment(..., maximize=True) through its production matching module.

ToolWeave is an adaptation, not a literal MatchTIR implementation.

πŸ“¦ Files

File Contents
data/raw_trajectories_update_2_512.jsonl Complete 512-trajectory raw artifact from formal-training update_2
data/multi_turn_base_156_rollout_offset_9.json Complete original rollout, including all five BFCL user turns
analysis/user_turn3_k16_credit_summary.json Full-precision K=16 matching, return, normalization, fusion, and state audit
analysis/user_turn3_k16_credit_summary.csv Compact per-rollout summary
analysis/user_turn3_k16_full_interaction_advantage.json One structured row per User Turn 3 non-answer runtime interaction
analysis/user_turn3_k16_full_interaction_advantage.csv Exact tabular production-replay export
viewer/*.parquet Schema-stable, derived tables used exclusively by the Hub Dataset Viewer
scripts/build_viewer_parquet.py Deterministic converter and row/schema validator for all Viewer subsets

The raw JSONL is the complete update-2 source artifact; the smaller JSON/CSV files provide focused, reproducible analyses of the selected K=16 group.

πŸ” Credential-like benchmark fixtures

Credential-like strings in the full record are synthetic BFCL benchmark fixtures, not production credentials. Questions, ground truth, and initial environment configuration were checked against the corresponding static BFCL source row. No Hugging Face token, GitHub token, SSH private key, cloud access key, or local server path is included.

πŸ™ Upstream context

The task data and execution environment derive from the public BFCL/EnvTuning infrastructure in AWorld-RL and the Berkeley Function-Calling Leaderboard. MatchTIR is referenced for the structural local-credit backbone; ToolWeave's runtime-depth and BFCL user-turn adaptations are project-specific.

Downloads last month
60