Datasets:
Tasks:
Text Generation
Formats:
json
Languages:
English
Size:
10K - 100K
Tags:
Synthetic
sonicium-quantum-lab
artificial-intelligence
software
nlp
currencies-and-foreign-exchange
License:
Publish function-calling-currency-exchange (mirror of Kaggle soniciumquantumlab/function-calling-currency-exchange)
d9b0643 verified |
Download README.md from SoniciumQuantumLab/function-calling-currency-exchange: direct link, hf CLI and curl.
- Browser
- Download file 10.3 kB
-
https://huggingface.co/datasets/SoniciumQuantumLab/function-calling-currency-exchange/resolve/main/README.md
- Command line
-
hf download hf://datasets/SoniciumQuantumLab/function-calling-currency-exchange/README.md
-
curl -L -o README.md https://huggingface.co/datasets/SoniciumQuantumLab/function-calling-currency-exchange/resolve/main/README.md
10.3 kB
| license: cc-by-nc-sa-4.0 | |
| language: | |
| - en | |
| pretty_name: "Function-Calling SFT: Currency Exchange Tools" | |
| task_categories: | |
| - text-generation | |
| tags: | |
| - synthetic | |
| - sonicium-quantum-lab | |
| - artificial-intelligence | |
| - software | |
| - nlp | |
| - currencies-and-foreign-exchange | |
| - text-generation | |
| - function-calling | |
| - tool-use | |
| - llm-agents | |
| - llm-fine-tuning | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: "function_calling_currency_exchange.jsonl.gz" | |
| # Function-Calling SFT: Currency Exchange Tools | |
| > **Hugging Face mirror** of the Kaggle dataset [soniciumquantumlab/function-calling-currency-exchange](https://www.kaggle.com/datasets/soniciumquantumlab/function-calling-currency-exchange), created by **Hussain Billah** ([ORCID 0009-0009-5686-619X](https://orcid.org/0009-0009-5686-619X)) and published by **Sonicium Quantum Lab Ltd.** | |
| > Data files here are gzip-compressed copies of the original files (`function_calling_currency_exchange.csv.gz`, `function_calling_currency_exchange.jsonl.gz`) and load directly with the `datasets` library: | |
| > | |
| > ```python | |
| > from datasets import load_dataset | |
| > ds = load_dataset("SoniciumQuantumLab/function-calling-currency-exchange") | |
| > ``` | |
| 77K synthetic currency exchange tool-use examples for LLM agents. | |
| Created by **Hussain Billah** ([ORCID 0009-0009-5686-619X](https://orcid.org/0009-0009-5686-619X)) · Published by **Sonicium Quantum Lab Ltd.** · Series DOI: [10.5281/zenodo.24355126](https://doi.org/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,975 synthetic function-calling (tool-use) examples** in the **Currency Exchange** 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,975 | | |
| | Domain | Currency Exchange | | |
| | Tools in this domain | 4 (`fx_cancel`, `fx_create`, `fx_get_status`, `fx_history`) | | |
| | Tools offered per record | 2–4 (mean 3) · distractors 1–3 (mean 2) | | |
| | Difficulty | easy 25,803, hard 25,615, medium 25,557 | | |
| | Splits (train / validation / test) | 69,423 / 3,821 / 3,731 | | |
| | Tokens per record (approx.) | 180–277 (mean 228.7) | | |
| | Files | `function_calling_currency_exchange.csv` (93.9 MB, 21 columns) · `function_calling_currency_exchange.jsonl` (122.1 MB, same records) | | |
| | Language | English | | |
| | Generator version | `2.1.0` | | |
| ## 3. Tools in this domain | |
| | Tool | Description | Parameters | | |
| |---|---|---| | |
| | `fx_cancel` | Cancel a currency exchange order order. | order_id: string | | |
| | `fx_create` | Book/create a new currency exchange order. | customer: string, date: string | | |
| | `fx_get_status` | Check the status of a currency exchange order order. | order_id: string | | |
| | `fx_history` | List recent currency exchange order order history. | limit: integer | | |
| ## 4. Example record | |
| | Field | Value | | |
| |---|---| | |
| | `user_query` | What is the status of my currency exchange order order FX410464? | | |
| | `assistant_reasoning` | The user's request requires the 'fx_get_status' tool — Check the status of a currency exchange order order. I will call it with the parameters extracted from the request. | | |
| | `tool_call` | `{"name": "fx_get_status", "arguments": {"order_id": "FX410464"}}` | | |
| | `tool_result` | `{"order_id": "FX410464", "status": "completed"}` | | |
| | `final_answer` | Your currency exchange order order FX410464 is currently completed. | | |
| | `num_available_tools` / `num_distractor_tools` | 2 / 1 | | |
| ## 5. Schema (function_calling_currency_exchange.csv) | |
| | Column | Type | Description | | |
| |---|---|---| | |
| | `id` | string | Unique record ID: {category}_{8-digit index}. | | |
| | `category` | string | Generator category; one value per dataset (function_calling_currency_exchange). | | |
| | `domain_label` | string | Human-readable service domain (Currency Exchange). | | |
| | `task_type` | string | Task label; always function_calling. | | |
| | `difficulty` | string | Difficulty label assigned by the generator (easy / hard / medium). | | |
| | `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 | |
| ```python | |
| import json, pandas as pd | |
| df = pd.read_csv("/kaggle/input/function-calling-currency-exchange/function_calling_currency_exchange.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_currency_exchange.jsonl`) for streaming pipelines. | |
| ## 7. Suggested uses | |
| - Supervised fine-tuning of LLMs for **function calling / tool use** in the currency exchange 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 | |
| ```bibtex | |
| @misc{sonicium_function_calling_currency_exchange_2026, | |
| title = {Function-Calling SFT: Currency Exchange Tools}, | |
| author = {Billah, Hussain and {Sonicium Quantum Lab Ltd.}}, | |
| year = {2026}, | |
| publisher = {Kaggle}, | |
| howpublished = {\url{https://www.kaggle.com/datasets/soniciumquantumlab/function-calling-currency-exchange}} | |
| } | |
| ``` | |
| ## 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.** | |
| - Primary contact: **Nazmul Basher**, Head of Marketing & Communications | |
| - Chairman and Chief Scientist: **Hussain Billah** | |
| - Email: research@sonicium.ltd · collaboration@sonicium.ltd | |
| - Website: https://soniciumquantumlab.com | |
| - Bangladesh office: 5th Floor, Opolok, 225 Senpara Parbata Lane, Mirpur-10, Dhaka-1216, Bangladesh | |
| - US office: 1270 3rd St, Brooklyn, New York 11219, USA | |
| ## Files | |
| - `function_calling_currency_exchange.csv` — 76,975 records, 21 columns (CSV with header). | |
| - `function_calling_currency_exchange.jsonl` — the same records in JSON Lines format (one JSON object per line). | |
| - `README.md` — this documentation. |