hussainbillah's picture
Publish function-calling-laundry-service (mirror of Kaggle soniciumquantumlab/function-calling-laundry-service)
608fda0 verified
|
Raw History Blame Contribute Delete
10.2 kB
metadata
license: cc-by-nc-sa-4.0
language:
  - en
pretty_name: 'Function-Calling SFT: Laundry Service Tools'
task_categories:
  - text-generation
tags:
  - synthetic
  - sonicium-quantum-lab
  - business
  - artificial-intelligence
  - software
  - nlp
  - text-generation
  - function-calling
  - tool-use
  - llm-agents
  - llm-fine-tuning
configs:
  - config_name: default
    data_files:
      - split: train
        path: function_calling_laundry_service.jsonl.gz

Function-Calling SFT: Laundry Service Tools

Hugging Face mirror of the Kaggle dataset soniciumquantumlab/function-calling-laundry-service, created by Hussain Billah (ORCID 0009-0009-5686-619X) and published by Sonicium Quantum Lab Ltd. Data files here are gzip-compressed copies of the original files (function_calling_laundry_service.csv.gz, function_calling_laundry_service.jsonl.gz) and load directly with the datasets library:

from datasets import load_dataset
ds = load_dataset("SoniciumQuantumLab/function-calling-laundry-service")

77K synthetic laundry service tool-use examples for LLM agents.

Created by Hussain Billah (ORCID 0009-0009-5686-619X) · Published by Sonicium Quantum Lab Ltd. · Series DOI: 10.5281/zenodo.24355126 · Series: Sonicium Function-Calling · Generator 2.1.0 · License CC BY-NC-SA 4.0

Custom datasets & commercial licensing: Need a larger volume, a new domain, a custom schema or file format, or a commercial / enterprise license? Sonicium Quantum Lab Ltd. builds custom datasets on request.

Email: research@sonicium.ltd · collaboration@sonicium.ltd · Website: https://soniciumquantumlab.com


1. Overview

This dataset contains 76,976 synthetic function-calling (tool-use) examples in the Laundry Service domain, built for training and evaluating LLM agents.

Each record is a complete tool-use episode: a system prompt, a list of available tools (JSON schemas, including distractor tools that must not be called), a user request, a short reasoning note, the expected tool call with arguments, a simulated tool result and the assistant's final answer. This teaches a model to pick the right tool, fill its arguments from the request, and answer from the tool output.

The dataset is one domain of the Sonicium Function-Calling series (50 service domains, about 77K records each), so you can fine-tune on one domain or mix many domains for a general-purpose agent.

2. Highlights

Item Value
Records 76,976
Domain Laundry Service
Tools in this domain 4 (laundry_cancel, laundry_create, laundry_get_status, laundry_history)
Tools offered per record 2–4 (mean 3) · distractors 1–3 (mean 2)
Difficulty medium 25,817, easy 25,639, hard 25,520
Splits (train / validation / test) 69,319 / 3,895 / 3,762
Tokens per record (approx.) 174–272 (mean 224.7)
Files function_calling_laundry_service.csv (92.1 MB, 21 columns) · function_calling_laundry_service.jsonl (120.3 MB, same records)
Language English
Generator version 2.1.0

3. Tools in this domain

Tool Description Parameters
laundry_cancel Cancel a laundry pickup order. order_id: string
laundry_create Book/create a new laundry pickup. customer: string, date: string
laundry_get_status Check the status of a laundry pickup order. order_id: string
laundry_history List recent laundry pickup order history. limit: integer

4. Example record

Field Value
user_query Show my last 4 laundry pickup orders.
assistant_reasoning The user's request requires the 'laundry_history' tool — List recent laundry pickup order history. I will call it with the parameters extracted from the request.
tool_call {"name": "laundry_history", "arguments": {"limit": 4}}
tool_result {"count": 4, "limit": 4}
final_answer You have 4 recent laundry pickup order(s) on record.
num_available_tools / num_distractor_tools 4 / 3

5. Schema (function_calling_laundry_service.csv)

Column Type Description
id string Unique record ID: {category}_{8-digit index}.
category string Generator category; one value per dataset (function_calling_laundry_service).
domain_label string Human-readable service domain (Laundry Service).
task_type string Task label; always function_calling.
difficulty string Difficulty label assigned by the generator (medium / easy / hard).
system_prompt string System prompt telling the assistant it can call the listed tools.
available_tools string JSON list of tool schemas offered in this record (name, description, parameters): the correct tool plus distractors.
user_query string The user request (user turn).
assistant_reasoning string Short rationale naming the tool to call and why.
tool_call string Expected tool call as JSON: {"name": ..., "arguments": {...}}.
tool_result string Simulated JSON response returned by the tool.
final_answer string Assistant final reply to the user, grounded in the tool result.
num_available_tools integer Number of tools offered in available_tools.
num_distractor_tools integer Number of offered tools that should NOT be called.
language string Language code of the record (en).
dataset_version string Generator / schema version (2.1.0).
split string Suggested split: train (90%), validation (5%) or test (~5%).
verified boolean True when the generator consistency check passed (true for every row).
token_estimate integer Approximate token length of the full record.
created_at datetime Generation timestamp (ISO 8601).
seed string Deterministic generation seed: {date}:{category}:{index}.

6. Quick start

import json, pandas as pd

df = pd.read_csv("/kaggle/input/function-calling-laundry-service/function_calling_laundry_service.csv")
print(df.shape, df["split"].value_counts().to_dict())

# Build an OpenAI-style tool-calling conversation for SFT
def to_messages(r):
    call = json.loads(r.tool_call)
    return {
        "tools": json.loads(r.available_tools),
        "messages": [
            {"role": "system", "content": r.system_prompt},
            {"role": "user", "content": r.user_query},
            {"role": "assistant", "tool_calls": [{"type": "function", "function": {"name": call["name"], "arguments": json.dumps(call["arguments"])}}]},
            {"role": "tool", "name": call["name"], "content": r.tool_result},
            {"role": "assistant", "content": r.final_answer},
        ],
    }

print(to_messages(df.iloc[0]))

The same records are available as JSON Lines (function_calling_laundry_service.jsonl) for streaming pipelines.

7. Suggested uses

  • Supervised fine-tuning of LLMs for function calling / tool use in the laundry service domain
  • Teaching tool selection under distractors and argument extraction from natural-language requests
  • Training models to write a final answer grounded in a tool result
  • Evaluating tool-calling accuracy (exact match on tool name and arguments) with the test split
  • Building multi-domain agent corpora by combining datasets from the Sonicium Function-Calling series

8. Generation and quality notes

  • Synthetic and template-based. Requests are instantiated from parameterized templates (names, dates, IDs, amounts), so similar phrasings recur. Deduplicate on user_query or paraphrase if you need more variety.
  • Simulated tools. Tool results are generated, not returned by real services; IDs, names and values are fictional.
  • Structured fields. available_tools, tool_call and tool_result are JSON strings; parse them with json.loads.
  • Splits. The split column gives a ready-made train / validation / test partition (about 90 / 5 / 5 %).
  • Reproducible. Each record stores its generator seed; IDs follow {category}_{8-digit index}.

9. More from Sonicium Quantum Lab Ltd.

Browse the full Sonicium Function-Calling series (50 service domains) and the Sonicium Math Reasoning series (49 topics) at https://www.kaggle.com/soniciumquantumlab/datasets

10. License

Released under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) — https://creativecommons.org/licenses/by-nc-sa/4.0/

Free for research, education and other non-commercial use with attribution. For commercial licensing, contact Sonicium Quantum Lab Ltd. (see below).

11. Citation

@misc{sonicium_function_calling_laundry_service_2026,
  title        = {Function-Calling SFT: Laundry Service Tools},
  author       = {Billah, Hussain and {Sonicium Quantum Lab Ltd.}},
  year         = {2026},
  publisher    = {Kaggle},
  howpublished = {\url{https://www.kaggle.com/datasets/soniciumquantumlab/function-calling-laundry-service}}
}

12. Contact & Custom Data Requests

For custom datasets (larger scale, new domains, custom schema or format) or a commercial license, email us with your use case, the volume you need and your preferred format.

Sonicium Quantum Lab Ltd.

Files

  • function_calling_laundry_service.csv — 76,976 records, 21 columns (CSV with header).
  • function_calling_laundry_service.jsonl — the same records in JSON Lines format (one JSON object per line).
  • README.md — this documentation.