Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    ArrowNotImplementedError
Message:      Cannot write struct type 'parameters' with no child field to Parquet. Consider adding a dummy child field.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 673, in write_table
                  self._build_writer(inferred_schema=pa_table.schema)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in _build_writer
                  self.pa_writer = pq.ParquetWriter(
                                   ^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pyarrow/parquet/core.py", line 1070, in __init__
                  self.writer = _parquet.ParquetWriter(
                                ^^^^^^^^^^^^^^^^^^^^^^^
                File "pyarrow/_parquet.pyx", line 2363, in pyarrow._parquet.ParquetWriter.__cinit__
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
              pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'parameters' with no child field to Parquet. Consider adding a dummy child field.
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1908, in _prepare_split_single
                  num_examples, num_bytes = writer.finalize()
                                            ^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 688, in finalize
                  self._build_writer(self.schema)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in _build_writer
                  self.pa_writer = pq.ParquetWriter(
                                   ^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pyarrow/parquet/core.py", line 1070, in __init__
                  self.writer = _parquet.ParquetWriter(
                                ^^^^^^^^^^^^^^^^^^^^^^^
                File "pyarrow/_parquet.pyx", line 2363, in pyarrow._parquet.ParquetWriter.__cinit__
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
              pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'parameters' with no child field to Parquet. Consider adding a dummy child field.
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1736, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1919, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

system
string
messages
list
tools
list
num_messages
int64
num_tools
int64
num_tool_calls
int64
has_tool
bool
has_tool_call
bool
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_exchange_rate", "description": "Get the exchange rate between two currencies", "parameters": { "type": "object", "properties": { "base_currency": { "type": "string", "description": "The currency to convert from" }, "target_currency": { "type": "string", "description": "The currency to convert to" } }, "required": [ "base_currency", "target_currency" ] } }
[ { "role": "user", "content": "Can you book a flight for me from New York to London?", "tool_calls": null }, { "role": "assistant", "content": "I'm sorry, but I don't have the capability to book flights. My current function allows me to get the exchange rate between two currencies. If you nee...
[ { "name": "get_exchange_rate", "description": "Get the exchange rate between two currencies", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null, ...
2
1
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_news_headlines", "description": "Get the latest news headlines", "parameters": { "type": "object", "properties": { "country": { "type": "string", "description": "The country for which to fetch news" } }, "required": [ "country" ] } }
[ { "role": "user", "content": "Can you tell me the latest news headlines for the United States?", "tool_calls": null }, { "role": "assistant", "content": "<functioncall> {\"name\": \"get_news_headlines\", \"arguments\": '{\"country\": \"United States\"}'} <|endoftext|>", "tool_calls": nul...
[ { "name": "get_news_headlines", "description": "Get the latest news headlines", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null, "symbo...
8
1
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_password", "description": "Generate a random password", "parameters": { "type": "object", "properties": { "length": { "type": "integer", "description": "The length of the password" }, "include_symbols": { "type": "boolean", "description": "Whether to include symbols in the password" } }, "required": [ "length" ] } } { "name": "create_task", "description": "Create a new task in a task management system", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the task" }, "due_date": { "type": "string", "format": "date", "description": "The due date of the task" }, "priority": { "type": "string", "enum": [ "low", "medium", "high" ], "description": "The priority of the task" } }, "required": [ "title", "due_date", "priority" ] } }
[ { "role": "user", "content": "I need a new password. Can you generate one for me?", "tool_calls": null }, { "role": "assistant", "content": "Of course. How long would you like your password to be? And would you like it to include symbols? <|endoftext|>", "tool_calls": null }, { "...
[ { "name": "generate_password", "description": "Generate a random password", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null, "symbol": ...
6
2
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_password", "description": "Generate a random password with specified criteria", "parameters": { "type": "object", "properties": { "length": { "type": "integer", "description": "The length of the password" }, "include_numbers": { "type": "boolean", "description": "Include numbers in the password" }, "include_special_characters": { "type": "boolean", "description": "Include special characters in the password" } }, "required": [ "length" ] } }
[ { "role": "user", "content": "I need a new password. Can you generate one for me?", "tool_calls": null }, { "role": "assistant", "content": "Of course! How long would you like your password to be? And do you want it to include numbers and special characters? <|endoftext|>", "tool_calls":...
[ { "name": "generate_password", "description": "Generate a random password with specified criteria", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": ...
6
1
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_median", "description": "Calculate the median of a list of numbers", "parameters": { "type": "object", "properties": { "numbers": { "type": "array", "items": { "type": "number" }, "description": "A list of numbers" } }, "required": [ "numbers" ] } }
[ { "role": "user", "content": "Hi, I have a list of numbers and I need to find the median. Can you help me with that?", "tool_calls": null }, { "role": "assistant", "content": "Of course, I can help you with that. Please provide me with the list of numbers. <|endoftext|>", "tool_calls": n...
[ { "name": "calculate_median", "description": "Calculate the median of a list of numbers", "parameters": { "type": "object", "properties": { "numbers": { "type": "array", "items": { "type": "number" }, "description": "A list of numbe...
6
1
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_loan_payment", "description": "Calculate the monthly payment for a loan", "parameters": { "type": "object", "properties": { "principal": { "type": "number", "description": "The principal amount of the loan" }, "interest_rate": { "type": "number", "description": "The annual interest rate for the loan" }, "loan_term": { "type": "integer", "description": "The term of the loan in years" } }, "required": [ "principal", "interest_rate", "loan_term" ] } }
[ { "role": "user", "content": "Hi, I need to calculate my monthly loan payment. I have a loan of $50000 with an annual interest rate of 5% and a loan term of 10 years. Can you help me with that?", "tool_calls": null }, { "role": "assistant", "content": "Of course, I can help you with that. Le...
[ { "name": "calculate_loan_payment", "description": "Calculate the monthly payment for a loan", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null,...
7
1
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_temperature", "description": "Convert temperature from one unit to another", "parameters": { "type": "object", "properties": { "temperature": { "type": "number", "description": "The temperature value" }, "from_unit": { "type": "string", "description": "The unit to convert from" }, "to_unit": { "type": "string", "description": "The unit to convert to" } }, "required": [ "temperature", "from_unit", "to_unit" ] } } { "name": "get_current_date", "description": "Get the current date", "parameters": {} }
[ { "role": "user", "content": "Hi, I need to convert a temperature from Celsius to Fahrenheit. The temperature is 30 degrees Celsius.", "tool_calls": null }, { "role": "assistant", "content": "<functioncall> {\"name\": \"convert_temperature\", \"arguments\": '{\"temperature\": 30, \"from_unit...
[ { "name": "convert_temperature", "description": "Convert temperature from one unit to another", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null...
4
2
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_movie_details", "description": "Get details of a movie", "parameters": { "type": "object", "properties": { "movie_title": { "type": "string", "description": "The title of the movie" } }, "required": [ "movie_title" ] } }
[ { "role": "user", "content": "Can you please order a pizza for me?", "tool_calls": null }, { "role": "assistant", "content": "I'm sorry, but I can't assist with that. My current capabilities allow me to provide information about movies based on their titles. I don't have the ability to place...
[ { "name": "get_movie_details", "description": "Get details of a movie", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null, "symbol": null...
2
1
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_tip", "description": "Calculate the tip amount for a bill", "parameters": { "type": "object", "properties": { "bill_amount": { "type": "number", "description": "The total bill amount" }, "tip_percentage": { "type": "number", "description": "The percentage of tip" } }, "required": [ "bill_amount", "tip_percentage" ] } } { "name": "track_calories", "description": "Track daily calorie intake", "parameters": { "type": "object", "properties": { "meal": { "type": "string", "description": "The meal for which calories are being tracked" }, "calories": { "type": "number", "description": "The number of calories consumed" }, "date": { "type": "string", "format": "date", "description": "The date for which calories are being tracked" } }, "required": [ "meal", "calories", "date" ] } }
[ { "role": "user", "content": "Hi, I need help with calculating a tip. My bill is $50 and I want to leave a 20% tip.", "tool_calls": null }, { "role": "assistant", "content": "Sure, let me calculate that for you. <|endoftext|>", "tool_calls": null }, { "role": "assistant", "co...
[ { "name": "calculate_tip", "description": "Calculate the tip amount for a bill", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null, "symb...
5
2
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_contact", "description": "Create a new contact", "parameters": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the contact" }, "email": { "type": "string", "description": "The email address of the contact" } }, "required": [ "name", "email" ] } }
[ { "role": "user", "content": "I need to create a new contact for my friend John Doe. His email is johndoe@example.com.", "tool_calls": null }, { "role": "assistant", "content": "<functioncall> {\"name\": \"create_contact\", \"arguments\": '{\"name\": \"John Doe\", \"email\": \"johndoe@exampl...
[ { "name": "create_contact", "description": "Create a new contact", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null, "symbol": null, ...
4
1
0
true
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_calendar_event", "description": "Create a new calendar event", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the event" }, "start_time": { "type": "string", "description": "The start time of the event in the format YYYY-MM-DD HH:MM" }, "end_time": { "type": "string", "description": "The end time of the event in the format YYYY-MM-DD HH:MM" } }, "required": [ "title", "start_time", "end_time" ] } }
[ { "role": "user", "content": "Can you help me create a calendar event for my meeting tomorrow?", "tool_calls": null }, { "role": "assistant", "content": "Of course, I can help with that. Could you please provide me with the title of the event, and the start and end times? <|endoftext|>", ...
[ { "name": "create_calendar_event", "description": "Create a new calendar event", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": { "type": "string", "de...
8
1
0
true
false
SYSTEM: You are a helpful assistant, with no access to external functions.
[ { "role": "user", "content": "You are given a sequence of numbers: 2, 4, 6, 8, 10. Each number represents a moment in time, just like the waves in the ocean. As you continue the sequence, you notice that the difference between each number remains the same. Just like how the winds and currents shape the wave...
[]
10
0
0
false
false
SYSTEM: You are a helpful assistant, with no access to external functions.
[ { "role": "user", "content": "What could be the potential cause of a loud knocking sound and engine slowdown in a 2010 Toyota Camry with a 4-cylinder engine, given the following diagnostic trouble codes retrieved by the OBD-II scanner: P0325, P0300, P0301, P0302, P0303, P0304? Can you provide a step-by-step...
[]
10
0
0
false
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_movie", "description": "Search for a movie by title", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the movie" } }, "required": [ "title" ] } }
[ { "role": "user", "content": "Can you find information about the movie \"Inception\"?", "tool_calls": null }, { "role": "assistant", "content": "<functioncall> {\"name\": \"search_movie\", \"arguments\": '{\"title\": \"Inception\"}'} <|endoftext|>", "tool_calls": null }, { "role"...
[ { "name": "search_movie", "description": "Search for a movie by title", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": { "type": "string", "description...
8
1
0
true
false
SYSTEM: You are a helpful assistant, with no access to external functions.
[ { "role": "user", "content": "What are some practical tips and guidance we can provide in an excel table format to motivate individuals to make healthy food choices and empower them to cook nutritious meals from scratch? The table should include information about the benefits of fresh ingredients, herbs, an...
[]
4
0
0
false
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_stock_price", "description": "Get the current stock price", "parameters": { "type": "object", "properties": { "stock_symbol": { "type": "string", "description": "The symbol of the stock, e.g. AAPL" } }, "required": [ "stock_symbol" ] } } { "name": "calculate_age", "description": "Calculate the age of a person", "parameters": { "type": "object", "properties": { "birth_date": { "type": "string", "description": "The birth date of the person" } }, "required": [ "birth_date" ] } }
[ { "role": "user", "content": "Hey, can you tell me the current price of Apple's stock?", "tool_calls": null }, { "role": "assistant", "content": "<functioncall> {\"name\": \"get_stock_price\", \"arguments\": '{\"stock_symbol\": \"AAPL\"}'} <|endoftext|>", "tool_calls": null }, { ...
[ { "name": "get_stock_price", "description": "Get the current stock price", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author": null, "symbol": n...
10
2
0
true
false
SYSTEM: You are a helpful assistant, with no access to external functions.
[ { "role": "user", "content": "Enumerate five unique properties that differentiate maritime polar and continental tropical air masses based on their temperature, humidity, and pressure.", "tool_calls": null }, { "role": "assistant", "content": "Sure, here are five unique properties that diffe...
[]
8
0
0
false
false
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_loan_payment", "description": "Calculate the monthly payment amount for a loan", "parameters": { "type": "object", "properties": { "loan_amount": { "type": "number", "description": "The total loan amount" }, "interest_rate": { "type": "number", "description": "The annual interest rate" }, "loan_term": { "type": "integer", "description": "The duration of the loan in months" } }, "required": [ "loan_amount", "interest_rate", "loan_term" ] } } { "name": "calculate_discounted_price", "description": "Calculate the discounted price based on a given original price and discount percentage", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price before discount" }, "discount_percentage": { "type": "number", "description": "The percentage of the discount" } }, "required": [ "original_price", "discount_percentage" ] } }
[ { "role": "user", "content": "Hi, I need some help with a loan I'm considering.", "tool_calls": null }, { "role": "assistant", "content": "Of course, I'd be happy to help. Could you please provide me with the total loan amount, the annual interest rate, and the duration of the loan in months...
[ { "name": "calculate_loan_payment", "description": "Calculate the monthly payment amount for a loan", "parameters": { "type": "object", "properties": { "numbers": null, "text": null, "patterns": null, "birth_date": null, "title": null, "author"...
6
2
0
true
false
End of preview.

Glaive Function Calling V2 (Structured)

This dataset is a cleaned and structured version of the original
Glaive Function Calling V2.

The goal of this dataset is to make the conversations easier to use for training tool-calling / function-calling language models, such as:

  • Llama
  • Qwen
  • Mistral
  • DeepSeek
  • other OpenAI-compatible tool calling models

The original dataset stores conversations as raw text.
This version converts them into a structured message format suitable for modern LLM training pipelines.


Dataset Features

Each row contains the following fields:

Column Description
system System prompt defining assistant behavior
messages Structured conversation messages
tools List of tool schemas available to the assistant
num_tools Number of tools available
num_messages Number of messages in the conversation
num_tool_calls Total number of tool calls made by the assistant
has_tools Whether tools are available in the environment
has_tool_call Whether the assistant used a tool

Example Row

{
  "system": "You are a helpful AI assistant...",
  "tools": [
    {
      "name": "get_weather",
      "description": "Get weather information",
      "parameters": {
        "type": "object",
        "properties": {
          "city": {"type": "string"}
        }
      }
    }
  ],
  "messages": [
    {"role": "user", "content": "What's the weather in Tokyo?"},
    {
      "role": "assistant",
      "tool_calls": [
        {
          "name": "get_weather",
          "arguments": {"city": "Tokyo"}
        }
      ]
    },
    {"role": "tool", "content": "{\"temperature\": 25}"}
  ],
  "num_tools": 1,
  "num_messages": 3,
  "num_tool_calls": 1,
  "has_tools": true,
  "has_tool_call": true
}

Source Dataset

Original dataset:

GlaiveAI Function Calling V2

https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2

All credit for the data goes to the original authors.

This version only restructures the dataset for easier machine learning usage.


Notes

This dataset performs the following preprocessing steps:

  • extraction of tool schemas from system prompts
  • conversion of raw chat text into structured messages
  • detection of tool calls
  • generation of additional metadata fields

The goal is to provide a cleaner dataset format for LLM training pipelines.

Downloads last month
-