conversations listlengths 3 23 | source stringclasses 1
value | category stringclasses 1
value | skip_prompt_formatting bool 1
class |
|---|---|---|---|
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_exchange_rate\",\n \"description\": \"Get the exchange rate between two currencies\",\n \"parameters\": {\n \"type\": \"object\",\n \"propertie... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_news_headlines\",\n \"description\": \"Get the latest news headlines\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_password\",\n \"description\": \"Generate a random password with specified criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"pro... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_median\",\n \"description\": \"Calculate the median of a list of numbers\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\":... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_temperature\",\n \"description\": \"Convert temperature from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"propert... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_movie_details\",\n \"description\": \"Get details of a movie\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_contact\",\n \"description\": \"Create a new contact\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_calendar_event\",\n \"description\": \"Create a new calendar event\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "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 noti... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "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... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movie\",\n \"description\": \"Search for a movie by title\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "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 nutrit... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Enumerate five unique properties that differentiate maritime polar and continental tropical air masses based on their temperature, humidity, and pressure."
},
{
... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly payment amount for a loan\",\n \"parameters\": {\n \"type\": \"object\",\n \"p... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "What is the mathematical formula to determine the maximum number of different ways a common kitchen item can be utilized? Hint: Consider the number of different surfa... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_news\",\n \"description\": \"Get the latest news headlines\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {},\n \"requ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "What is the Python code for implementing a function that determines whether a given string is a palindrome or not? Please provide the code and explain your reasoning ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "What is the C++ code for creating a function that generates a simile to describe a given setting? The function should take in the setting as input and output a simile... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bi... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Using Python programming language, create a function that can identify the pattern of the numbered sequence 1, 4, 7, 10, etc., and output the formula for generating t... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a given range\",\n \"parameters\": {\n \"type\": \"object\",\n \"pro... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_books\",\n \"description\": \"Search for books based on title, author, or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"propertie... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "How does the endocannabinoid system affect the immune system?"
},
{
"from": "gpt",
"value": "The endocannabinoid system (ECS) plays an essential role in r... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\":... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_lyrics\",\n \"description\": \"Get the lyrics of a song\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"song\... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\",\n \"parameters\": {\n \"type\": \"object\",\n \... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "As a manager of a sales team, you want to increase the motivation of your sales representatives to meet the sales target. To achieve this, you have implemented five d... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Provide a list of three commonly used websites that are popular amongst internet users worldwide. This list should include websites that are frequently visited for a ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Can you create a series of clues that will lead to the main points of a speech on green energy? Each clue should give a hint towards one of the main points, and when ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_book\",\n \"description\": \"Search for books based on user preferences\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_books\",\n \"description\": \"Search for books based on title or author\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on specified criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\"... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the BMI (Body Mass Index)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "In the context of online shopping, what are the most significant challenges that customers face, and how do these challenges impact their overall shopping experience?... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Which R code can be used to identify scientific research institutes in France for a biotech-related task?\nHere's a sample R code that uses the \"europe\" dataset to ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"check_email_availability\",\n \"description\": \"Check if an email address is available or already taken\",\n \"parameters\": {\n \"type\": \"object\",\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on title or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Can you write a shell command to count the number of letters in each word of a given sentence and add them up to get a total number? Then use that number as a clue to... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_restaurants\",\n \"description\": \"Search for restaurants based on the given criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"pr... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on date of birth\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_calendar_event\",\n \"description\": \"Create a new calendar event\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price of a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"propertie... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Can you create a new magical creature struct in Go with the following attributes: name (string), element (string), abilities (slice of strings), and description (stri... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_movie_info\",\n \"description\": \"Get detailed information about a movie\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_recipe\",\n \"description\": \"Search for a recipe based on ingredients\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on title, actor, or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properti... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_definition\",\n \"description\": \"Get the definition of a word\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Your task is to create a web page that displays a summary of a famous scientist's life and achievements. The information to include is:\n- The scientist was a British... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "A small business sells handcrafted goods. They have a collection of 10 unique items. The price of each item is a prime number ranging from 2 to 29 dollars. The sum of... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Suppose you have collected news articles on the global economy and you want to categorize them into positive, neutral, and negative sentiments. You come across the fo... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on the date of birth\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\":... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"r... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "How can we apply computational linguistics to reduce the length of the statement \"Despite several weeks of intensive preparation by the team, the game resulted in an... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"analyze_website\",\n \"description\": \"Analyze the content and performance of a website\",\n \"parameters\": {\n \"type\": \"object\",\n \"propert... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_mortgage_payment\",\n \"description\": \"Calculate the monthly mortgage payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"proper... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "What JavaScript functions can be used to create an interactive map that displays the locations of littering incidents and promotes community involvement in cleaning u... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "I have a JSON file that contains information about the Harry Potter movie series. Here's a sample data:\n{\n \"movies\": [\n {\n \"title\": \"Harry Potter and the Phi... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "In addition to the given prompt, include the requirement of using the word \"crimson\" to describe the color of the sunset in your haiku. Create a vivid image of a sn... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current price of a stock\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Challenge: Can you rearrange the given numbers in a way that the largest number comes first and the smallest comes last?\nNumbers to rearrange: 10, 2, 5, -4, 92, 101 ... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for the given data\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Identify the name of the artist in the following lyrics and provide a comprehensive analysis of their musical career, including their discography, collaborations, and... | glaive-function-calling-v2 | tool_call | false |
[
{
"from": "system",
"value": "You are a helpful assistant, with no access to external functions."
},
{
"from": "human",
"value": "Explain why the result of 6 - 3 = 3 is accurate."
},
{
"from": "gpt",
"value": "The result of 6 - 3 = 3 is accurate because it follows the principle of su... | glaive-function-calling-v2 | tool_call | false |
End of preview. Expand in Data Studio
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
ShareGPT Tool Calls Dataset
A clean, structured tool-call dataset in ShareGPT format derived from the popular glaiveai/glaive-function-calling-v2 dataset.
Format
Each example follows the canonical ShareGPT schema used by OpenHermes, UltraChat, and many other fine-tuning datasets:
{
"conversations": [
{"from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required - {...}"},
{"from": "human", "value": "Can you tell me the latest news headlines for the United States?"},
{"from": "gpt", "value": "<functioncall> {\"name\": \"get_news_headlines\", \"arguments\": '{\"country\": \"United States\"}'}"},
{"from": "human", "value": "FUNCTION RESPONSE: {\"headlines\": [...]}"},
{"from": "gpt", "value": "Here are the latest news headlines..."}
],
"source": "glaive-function-calling-v2",
"category": "tool_call",
"skip_prompt_formatting": false
}
Roles
system— system prompt with available function definitions (JSON Schema)human— user queries and tool results (prefixed withFUNCTION RESPONSE:)gpt— assistant responses, including<functioncall>invocations
Stats
| Metric | Value |
|---|---|
| Total examples | 104,924 |
With <functioncall> |
75,530 |
With FUNCTION RESPONSE |
75,688 |
| 3-turn convos | 15,128 |
| 5-turn convos | 27,438 |
| 7-turn convos | 19,417 |
| 9-turn convos | 16,601 |
Splits
| Split | Size |
|---|---|
train |
104,924 |
Usage
Compatible with any trainer that consumes ShareGPT format (e.g., trl.SFTTrainer, FastChat, etc.).
from datasets import load_dataset
ds = load_dataset("Guilherme34/sharegpt-tool-calls", split="train")
print(ds[0]["conversations"])
License
Derived from glaiveai/glaive-function-calling-v2 which is Apache-2.0.
- Downloads last month
- 23