functions
stringlengths
85
879
conversation
listlengths
2
12
[{"name": "find_nearby_restaurants", "description": "Find nearby restaurants based on location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The location to search for restaurants"}}, "required": ["location"]}}]
[ { "content": "Can you book a flight for me to New York?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but I don't have the capability to book flights. My current function is to find nearby restaurants based on a given location. If you need help with that, feel free to ask!", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "create_user", "description": "Create a new user", "parameters": {"type": "object", "properties": {"name": {"type": "string", "description": "The name of the user"}, "email": {"type": "string", "description": "The email address of the user"}, "password": {"type": "string", "description": "The password for the user"}}, "required": ["name", "email", "password"]}}]
[ { "content": "Hi, I need to create a new user account.", "function_call": null, "name": null, "role": "user" }, { "content": "Sure, I can help with that. Could you please provide me with the name, email, and password for the new user?", "function_call": null, "name": null, "role": "assistant" }, { "content": "The name is John Doe, email is [email protected] and password is johndoe123.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"name\": \"John Doe\", \"email\": \"[email protected]\", \"password\": \"johndoe123\"}", "name": "create_user" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"User 'John Doe' has been successfully created.\\\"}\"", "function_call": null, "name": "create_user", "role": "function" }, { "content": "Great news! The user 'John Doe' has been successfully created.", "function_call": null, "name": null, "role": "assistant" }, { "content": "That's great! Now, can you also book a flight for me from New York to London?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My current functions are limited to tasks such as creating users. You might want to use a travel booking website or app for your flight booking needs.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_definition", "description": "Get the definition of a word", "parameters": {"type": "object", "properties": {"word": {"type": "string", "description": "The word to get the definition of"}}, "required": ["word"]}}]
[ { "content": "What does the word 'serendipity' mean?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"word\": \"serendipity\"}", "name": "get_definition" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"definition\\\": \\\"Serendipity is the occurrence and development of events by chance in a happy or beneficial way.\\\"}\"", "function_call": null, "name": "get_definition", "role": "function" }, { "content": "The word 'serendipity' means the occurrence and development of events by chance in a happy or beneficial way.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Interesting! What about 'ephemeral'?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"word\": \"ephemeral\"}", "name": "get_definition" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"definition\\\": \\\"Ephemeral means lasting for a very short time.\\\"}\"", "function_call": null, "name": "get_definition", "role": "function" }, { "content": "The word 'ephemeral' means lasting for a very short time.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Thank you for the help!", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you have any other words you'd like to know the definition of, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "calculate_loan_interest", "description": "Calculate the interest amount on a loan", "parameters": {"type": "object", "properties": {"loan_amount": {"type": "number", "description": "The loan amount"}, "interest_rate": {"type": "number", "description": "The annual interest rate"}, "loan_term": {"type": "integer", "description": "The loan term in years"}}, "required": ["loan_amount", "interest_rate", "loan_term"]}}, {"name": "generate_invoice", "description": "Generate an invoice for a purchase", "parameters": {"type": "object", "properties": {"customer_name": {"type": "string", "description": "The name of the customer"}, "items": {"type": "array", "items": {"type": "string"}, "description": "The items purchased"}, "total_amount": {"type": "number", "description": "The total amount of the purchase"}}, "required": ["customer_name", "items", "total_amount"]}}]
[ { "content": "Hi, I need some help with calculating the interest on a loan I'm considering.", "function_call": null, "name": null, "role": "user" }, { "content": "Of course, I'd be happy to help with that. Could you please provide me with the loan amount, the annual interest rate, and the loan term in years?", "function_call": null, "name": null, "role": "assistant" }, { "content": "Sure, the loan amount is $50000, the annual interest rate is 5% and the loan term is 10 years.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"loan_amount\": 50000, \"interest_rate\": 5, \"loan_term\": 10}", "name": "calculate_loan_interest" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"interest_amount\\\": 25000}\"", "function_call": null, "name": "calculate_loan_interest", "role": "function" }, { "content": "Based on the details you provided, the total interest amount on your loan over the term of 10 years would be $25,000.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "encode_base64", "description": "Encode a text string in Base64 format", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to encode"}}, "required": ["text"]}}]
[ { "content": "Hi, I need to encode a text string in Base64 format. The text is \"Hello, World!\"", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"text\": \"Hello, World!\"}", "name": "encode_base64" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": \\\"SGVsbG8sIFdvcmxkIQ==\\\"}\"", "function_call": null, "name": "encode_base64", "role": "function" }, { "content": "The Base64 encoded version of your text \"Hello, World!\" is \"SGVsbG8sIFdvcmxkIQ==\".", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "create_calendar_event", "description": "Create a new event in the calendar", "parameters": {"type": "object", "properties": {"event_title": {"type": "string", "description": "The title of the event"}, "event_date": {"type": "string", "description": "The date of the event"}, "event_time": {"type": "string", "description": "The time of the event"}, "event_location": {"type": "string", "description": "The location of the event"}}, "required": ["event_title", "event_date", "event_time"]}}]
[ { "content": "I need to create a new event in my calendar.", "function_call": null, "name": null, "role": "user" }, { "content": "Sure, I can help with that. Could you please provide me with the title, date, and time of the event?", "function_call": null, "name": null, "role": "assistant" }, { "content": "The event is called \"Annual Sales Meeting\". It's on the 15th of March at 10:00 AM.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"event_title\": \"Annual Sales Meeting\", \"event_date\": \"15th of March\", \"event_time\": \"10:00 AM\"}", "name": "create_calendar_event" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Event 'Annual Sales Meeting' has been successfully created for 15th of March at 10:00 AM.\\\"}\"", "function_call": null, "name": "create_calendar_event", "role": "function" }, { "content": "The event \"Annual Sales Meeting\" has been successfully created for the 15th of March at 10:00 AM. Is there anything else you need help with?", "function_call": null, "name": null, "role": "assistant" }, { "content": "Yes, could you also add the location for the event?", "function_call": null, "name": null, "role": "user" }, { "content": "Of course, could you please provide me with the location?", "function_call": null, "name": null, "role": "assistant" }, { "content": "The meeting will be held at the Main Conference Room.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"event_title\": \"Annual Sales Meeting\", \"event_date\": \"15th of March\", \"event_time\": \"10:00 AM\", \"event_location\": \"Main Conference Room\"}", "name": "create_calendar_event" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Location 'Main Conference Room' has been successfully added to the event 'Annual Sales Meeting'.\\\"}\"", "function_call": null, "name": "create_calendar_event", "role": "function" }, { "content": "The location \"Main Conference Room\" has been successfully added to the event \"Annual Sales Meeting\". Is there anything else you need assistance with?", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_movie_details", "description": "Get details about a movie", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}, "year": {"type": "integer", "description": "The release year of the movie"}, "director": {"type": "string", "description": "The director of the movie"}}, "required": ["title"]}}]
[ { "content": "Can you tell me about the movie \"Inception\"?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"Inception\"}", "name": "get_movie_details" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"title\\\": \\\"Inception\\\", \\\"year\\\": 2010, \\\"director\\\": \\\"Christopher Nolan\\\", \\\"genre\\\": \\\"Science Fiction\\\", \\\"rating\\\": 8.8}\"", "function_call": null, "name": "get_movie_details", "role": "function" }, { "content": "The movie \"Inception\" was released in the year 2010. It was directed by Christopher Nolan and falls under the genre of Science Fiction. It has a rating of 8.8.", "function_call": null, "name": null, "role": "assistant" }, { "content": "What about \"The Dark Knight\"?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"The Dark Knight\"}", "name": "get_movie_details" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"title\\\": \\\"The Dark Knight\\\", \\\"year\\\": 2008, \\\"director\\\": \\\"Christopher Nolan\\\", \\\"genre\\\": \\\"Action, Crime, Drama\\\", \\\"rating\\\": 9.0}\"", "function_call": null, "name": "get_movie_details", "role": "function" }, { "content": "\"The Dark Knight\" is an Action, Crime, Drama movie released in 2008. It was directed by Christopher Nolan and has a rating of 9.0.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Interesting! Can you tell me about \"Titanic\"?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"Titanic\"}", "name": "get_movie_details" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"title\\\": \\\"Titanic\\\", \\\"year\\\": 1997, \\\"director\\\": \\\"James Cameron\\\", \\\"genre\\\": \\\"Drama, Romance\\\", \\\"rating\\\": 7.8}\"", "function_call": null, "name": "get_movie_details", "role": "function" }, { "content": "The movie \"Titanic\" was released in 1997. It was directed by James Cameron and is a Drama, Romance movie. It has a rating of 7.8.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "recommend_movies", "description": "Recommend movies based on user preferences", "parameters": {"type": "object", "properties": {"genre": {"type": "string", "description": "The preferred movie genre"}, "year_range": {"type": "object", "properties": {"start_year": {"type": "integer", "description": "The start year of the movie release"}, "end_year": {"type": "integer", "description": "The end year of the movie release"}}}}}}]
[ { "content": "I'm in the mood for a comedy movie. Can you recommend something from the 90s?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"genre\": \"comedy\", \"year_range\": {\"start_year\": 1990, \"end_year\": 1999}}", "name": "recommend_movies" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"movies\\\": [\\\"Dumb and Dumber\\\", \\\"Groundhog Day\\\", \\\"There's Something About Mary\\\", \\\"The Big Lebowski\\\", \\\"American Pie\\\"]}\"", "function_call": null, "name": "recommend_movies", "role": "function" }, { "content": "Based on your preferences, here are some comedy movies from the 90s that you might enjoy: \"Dumb and Dumber\", \"Groundhog Day\", \"There's Something About Mary\", \"The Big Lebowski\", and \"American Pie\".", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great! What about some action movies from the 2000s?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"genre\": \"action\", \"year_range\": {\"start_year\": 2000, \"end_year\": 2009}}", "name": "recommend_movies" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"movies\\\": [\\\"The Dark Knight\\\", \\\"Gladiator\\\", \\\"The Bourne Identity\\\", \\\"Kill Bill: Volume 1\\\", \\\"300\\\"]}\"", "function_call": null, "name": "recommend_movies", "role": "function" }, { "content": "For action movies from the 2000s, you might like \"The Dark Knight\", \"Gladiator\", \"The Bourne Identity\", \"Kill Bill: Volume 1\", or \"300\".", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "search_lyrics", "description": "Search for song lyrics based on a song title", "parameters": {"type": "object", "properties": {"song_title": {"type": "string", "description": "The title of the song"}}, "required": ["song_title"]}}]
[ { "content": "Can you order a pizza for me?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities allow me to search for song lyrics based on a song title. If you need any song lyrics, feel free to ask!", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "calculate_factorial", "description": "Calculate the factorial of a given number", "parameters": {"type": "object", "properties": {"number": {"type": "integer", "description": "The number for which factorial needs to be calculated"}}, "required": ["number"]}}]
[ { "content": "Hi, I need to calculate the factorial of 5. Can you help me with that?", "function_call": null, "name": null, "role": "user" }, { "content": "Of course, I can help you with that. Let me do the calculations for you.", "function_call": { "arguments": "{\"number\": 5}", "name": "calculate_factorial" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": 120}\"", "function_call": null, "name": "calculate_factorial", "role": "function" }, { "content": "The factorial of 5 is 120.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_definition", "description": "Get the definition of a word", "parameters": {"type": "object", "properties": {"word": {"type": "string", "description": "The word for which definition should be fetched"}, "language": {"type": "string", "description": "The language of the word, e.g. English, French, Spanish"}}, "required": ["word", "language"]}}]
[ { "content": "Can you tell me the definition of the word \"serendipity\" in English?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"word\": \"serendipity\", \"language\": \"English\"}", "name": "get_definition" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"definition\\\": \\\"The occurrence and development of events by chance in a happy or beneficial way.\\\"}\"", "function_call": null, "name": "get_definition", "role": "function" }, { "content": "The definition of the word \"serendipity\" in English is \"The occurrence and development of events by chance in a happy or beneficial way.\"", "function_call": null, "name": null, "role": "assistant" }, { "content": "What about the word \"amor\" in Spanish?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"word\": \"amor\", \"language\": \"Spanish\"}", "name": "get_definition" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"definition\\\": \\\"Sentimiento intenso del ser humano que, partiendo de su propio insuficiencia, necesita y busca el encuentro y unión con otro ser.\\\"}\"", "function_call": null, "name": "get_definition", "role": "function" }, { "content": "The definition of the word \"amor\" in Spanish is \"Sentimiento intenso del ser humano que, partiendo de su propio insuficiencia, necesita y busca el encuentro y unión con otro ser.\"", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "calculate_fibonacci_sequence", "description": "Calculate the Fibonacci sequence up to a given number", "parameters": {"type": "object", "properties": {"number": {"type": "integer", "description": "The number up to which the Fibonacci sequence should be calculated"}}, "required": ["number"]}}]
[ { "content": "Hi, can you calculate the Fibonacci sequence up to 10 for me?", "function_call": null, "name": null, "role": "user" }, { "content": "Sure, I can help with that. Let me do the calculations for you.", "function_call": { "arguments": "{\"number\": 10}", "name": "calculate_fibonacci_sequence" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"sequence\\\": [0, 1, 1, 2, 3, 5, 8]}\"", "function_call": null, "name": "calculate_fibonacci_sequence", "role": "function" }, { "content": "The Fibonacci sequence up to 10 is: 0, 1, 1, 2, 3, 5, 8.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great, thanks! Now, can you please book a flight for me from New York to London?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but I'm unable to assist with that. Booking a flight is an external task and I don't have a function provided for that task. I recommend using a trusted travel booking site or contacting your preferred airline directly.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "analyze_sentiment", "description": "Analyze the sentiment of a text", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to analyze"}, "language": {"type": "string", "description": "The language of the text (optional)"}}, "required": ["text"]}}]
[ { "content": "Can you analyze the sentiment of this text for me? \"I am feeling really happy today!\"", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"text\": \"I am feeling really happy today!\"}", "name": "analyze_sentiment" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"sentiment\\\": \\\"positive\\\", \\\"confidence\\\": 0.98}\"", "function_call": null, "name": "analyze_sentiment", "role": "function" }, { "content": "The sentiment of the text is positive with a confidence of 98%.", "function_call": null, "name": null, "role": "assistant" }, { "content": "What about this one? \"I am not sure how I feel about this.\"", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"text\": \"I am not sure how I feel about this.\"}", "name": "analyze_sentiment" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"sentiment\\\": \\\"neutral\\\", \\\"confidence\\\": 0.85}\"", "function_call": null, "name": "analyze_sentiment", "role": "function" }, { "content": "The sentiment of the text is neutral with a confidence of 85%.", "function_call": null, "name": null, "role": "assistant" }, { "content": "And this? \"I am really upset about the situation.\"", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"text\": \"I am really upset about the situation.\"}", "name": "analyze_sentiment" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"sentiment\\\": \\\"negative\\\", \\\"confidence\\\": 0.95}\"", "function_call": null, "name": "analyze_sentiment", "role": "function" }, { "content": "The sentiment of the text is negative with a confidence of 95%.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_random_number", "description": "Get a random number within a specified range", "parameters": {"type": "object", "properties": {"min": {"type": "number", "description": "The minimum value of the range"}, "max": {"type": "number", "description": "The maximum value of the range"}}, "required": ["min", "max"]}}]
[ { "content": "I need a random number between 1 and 100.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"min\": 1, \"max\": 100}", "name": "get_random_number" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"number\\\": 42}\"", "function_call": null, "name": "get_random_number", "role": "function" }, { "content": "The random number between 1 and 100 is 42.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Can you generate another random number but this time between 200 and 300?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"min\": 200, \"max\": 300}", "name": "get_random_number" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"number\\\": 278}\"", "function_call": null, "name": "get_random_number", "role": "function" }, { "content": "The random number between 200 and 300 is 278.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great, thanks for the help!", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "create_calendar_event", "description": "Create a new event in the user's calendar", "parameters": {"type": "object", "properties": {"event_title": {"type": "string", "description": "The title of the event"}, "start_time": {"type": "string", "format": "date-time", "description": "The start time of the event"}, "end_time": {"type": "string", "format": "date-time", "description": "The end time of the event"}, "location": {"type": "string", "description": "The location of the event"}}, "required": ["event_title", "start_time", "end_time"]}}]
[ { "content": "Can you help me schedule a meeting?", "function_call": null, "name": null, "role": "user" }, { "content": "Of course! I can help you create a calendar event. Could you please provide me with the title of the event, the start and end times, and the location?", "function_call": null, "name": null, "role": "assistant" }, { "content": "The meeting is titled \"Project Discussion\", it will start at 10:00 AM on 2022-03-15 and end at 11:00 AM on the same day. The location is the conference room.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"event_title\": \"Project Discussion\", \"start_time\": \"2022-03-15T10:00:00\", \"end_time\": \"2022-03-15T11:00:00\", \"location\": \"conference room\"}", "name": "create_calendar_event" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Event 'Project Discussion' has been successfully created for 2022-03-15 from 10:00 AM to 11:00 AM at conference room.\\\"}\"", "function_call": null, "name": "create_calendar_event", "role": "function" }, { "content": "The meeting titled \"Project Discussion\" has been successfully scheduled for 2022-03-15 from 10:00 AM to 11:00 AM at the conference room.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great! Can you also order lunch for the meeting?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but as an AI, I don't have the capability to place food orders. My current functions only allow me to create calendar events. You might want to use a food delivery app or website to place your order.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "search_movie", "description": "Search for a movie by title", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}, "year": {"type": "integer", "description": "The release year of the movie"}}, "required": ["title"]}}, {"name": "get_movie_reviews", "description": "Get reviews for a movie", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}, "year": {"type": "integer", "description": "The release year of the movie"}, "critic": {"type": "string", "description": "The name of the critic"}}, "required": ["title"]}}]
[ { "content": "Can you find a movie for me?", "function_call": null, "name": null, "role": "user" }, { "content": "Of course! Could you please provide me with the title of the movie you're looking for?", "function_call": null, "name": null, "role": "assistant" }, { "content": "The movie is called \"Inception\".", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"Inception\"}", "name": "search_movie" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"title\\\": \\\"Inception\\\", \\\"year\\\": 2010, \\\"director\\\": \\\"Christopher Nolan\\\", \\\"genre\\\": \\\"Science Fiction\\\", \\\"rating\\\": 8.8}\"", "function_call": null, "name": "search_movie", "role": "function" }, { "content": "The movie \"Inception\" was released in 2010. It was directed by Christopher Nolan and falls under the genre of Science Fiction. It has a rating of 8.8.", "function_call": null, "name": null, "role": "assistant" }, { "content": "That's the one! Can you also find the release year of \"The Dark Knight\"?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"The Dark Knight\"}", "name": "search_movie" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"title\\\": \\\"The Dark Knight\\\", \\\"year\\\": 2008, \\\"director\\\": \\\"Christopher Nolan\\\", \\\"genre\\\": \\\"Action, Crime, Drama\\\", \\\"rating\\\": 9.0}\"", "function_call": null, "name": "search_movie", "role": "function" }, { "content": "\"The Dark Knight\" was released in the year 2008. It was also directed by Christopher Nolan and falls under the genres of Action, Crime, and Drama. It has a rating of 9.0.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "play_music", "description": "Play music based on user's preferences", "parameters": {"type": "object", "properties": {"genre": {"type": "string", "description": "The genre of music to play"}, "mood": {"type": "string", "description": "The mood of the music to play"}}}}]
[ { "content": "I'm feeling a bit down. Can you play some uplifting music for me?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"genre\": \"pop\", \"mood\": \"uplifting\"}", "name": "play_music" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Now playing uplifting pop music\\\"}\"", "function_call": null, "name": "play_music", "role": "function" }, { "content": "I've started playing some uplifting pop music for you. I hope it helps to lift your spirits!", "function_call": null, "name": null, "role": "assistant" }, { "content": "Thank you, that's exactly what I needed. Can you also play some jazz music that's calming?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"genre\": \"jazz\", \"mood\": \"calming\"}", "name": "play_music" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Now playing calming jazz music\\\"}\"", "function_call": null, "name": "play_music", "role": "function" }, { "content": "I've now started playing some calming jazz music for you. Enjoy the soothing tunes!", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "search_images", "description": "Search for images based on keywords", "parameters": {"type": "object", "properties": {"keywords": {"type": "array", "items": {"type": "string"}, "description": "The keywords to search for images"}, "color": {"type": "string", "description": "The color to filter results (e.g. red, blue, green)"}, "size": {"type": "string", "description": "The size of the images to filter results (e.g. small, medium, large)"}}, "required": ["keywords"]}}]
[ { "content": "Hi, I need some images for my project.", "function_call": null, "name": null, "role": "user" }, { "content": "Sure, I can help with that. Could you please provide me with the keywords, preferred color, and size for the images?", "function_call": null, "name": null, "role": "assistant" }, { "content": "I need large, red images related to 'climate change'.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"keywords\": [\"climate change\"], \"color\": \"red\", \"size\": \"large\"}", "name": "search_images" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"images\\\": [{\\\"url\\\": \\\"image1.jpg\\\", \\\"description\\\": \\\"Climate change impact on polar bears\\\"}, {\\\"url\\\": \\\"image2.jpg\\\", \\\"description\\\": \\\"Deforestation due to climate change\\\"}, {\\\"url\\\": \\\"image3.jpg\\\", \\\"description\\\": \\\"Climate change and global warming\\\"}]}\"", "function_call": null, "name": "search_images", "role": "function" }, { "content": "Here are some images I found:\n1. [Climate change impact on polar bears](image1.jpg)\n2. [Deforestation due to climate change](image2.jpg)\n3. [Climate change and global warming](image3.jpg)", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great, thanks! Can you also print these images for me?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but as an AI, I don't have the capability to physically print images. You'll need to download the images and print them using a printer.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "calculate_tax", "description": "Calculate the tax amount based on income", "parameters": {"type": "object", "properties": {"income": {"type": "number", "description": "The income amount"}, "tax_rate": {"type": "number", "description": "The tax rate in percentage"}}, "required": ["income", "tax_rate"]}}]
[ { "content": "Hi, I need to calculate my tax. My income is $50000 and the tax rate is 20%.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"income\": 50000, \"tax_rate\": 20}", "name": "calculate_tax" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"tax_amount\\\": 10000}\"", "function_call": null, "name": "calculate_tax", "role": "function" }, { "content": "Based on your income and the tax rate, your tax amount will be $10000.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Oh, I see. What if my income is $60000 with the same tax rate?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"income\": 60000, \"tax_rate\": 20}", "name": "calculate_tax" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"tax_amount\\\": 12000}\"", "function_call": null, "name": "calculate_tax", "role": "function" }, { "content": "If your income is $60000 and the tax rate is the same, your tax amount will be $12000.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Thank you for the information.", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "check_palindrome", "description": "Check if a word is a palindrome", "parameters": {"type": "object", "properties": {"word": {"type": "string", "description": "The word to check"}}, "required": ["word"]}}]
[ { "content": "Hi, can you check if the word 'racecar' is a palindrome?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"word\": \"racecar\"}", "name": "check_palindrome" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": true, \\\"message\\\": \\\"The word 'racecar' is a palindrome\\\"}\"", "function_call": null, "name": "check_palindrome", "role": "function" }, { "content": "Yes, the word 'racecar' is a palindrome.", "function_call": null, "name": null, "role": "assistant" }, { "content": "What about the word 'hello'?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"word\": \"hello\"}", "name": "check_palindrome" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": false, \\\"message\\\": \\\"The word 'hello' is not a palindrome\\\"}\"", "function_call": null, "name": "check_palindrome", "role": "function" }, { "content": "No, the word 'hello' is not a palindrome.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Interesting, thanks for the help!", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you have any other words you want to check, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "find_closest_parking", "description": "Find the closest parking spot to a given location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The location for which closest parking spot needs to be found"}}, "required": ["location"]}}]
[ { "content": "I am currently at the Central Park. Can you find me the closest parking spot?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"location\": \"Central Park\"}", "name": "find_closest_parking" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"data\\\": {\\\"name\\\": \\\"Central Park Plaza\\\", \\\"distance\\\": \\\"0.5 miles\\\", \\\"availability\\\": \\\"Available\\\"}}\"", "function_call": null, "name": "find_closest_parking", "role": "function" }, { "content": "The closest parking spot to Central Park is at Central Park Plaza, which is just 0.5 miles away. The parking spot is currently available.", "function_call": null, "name": null, "role": "assistant" }, { "content": "That's great! How about the closest parking near Times Square?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"location\": \"Times Square\"}", "name": "find_closest_parking" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"data\\\": {\\\"name\\\": \\\"Times Square Garage\\\", \\\"distance\\\": \\\"0.2 miles\\\", \\\"availability\\\": \\\"Full\\\"}}\"", "function_call": null, "name": "find_closest_parking", "role": "function" }, { "content": "The closest parking to Times Square is at Times Square Garage, which is just 0.2 miles away. However, it is currently full.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "calculate_tip_amount", "description": "Calculate the tip amount based on the bill total and tip percentage", "parameters": {"type": "object", "properties": {"bill_total": {"type": "number", "description": "The total bill amount"}, "tip_percentage": {"type": "number", "description": "The percentage of the bill to be tipped"}}, "required": ["bill_total", "tip_percentage"]}}]
[ { "content": "Hi, I need help with calculating the tip for my bill.", "function_call": null, "name": null, "role": "user" }, { "content": "Of course, I can help with that. Could you please provide me with the total bill amount and the percentage of the tip you want to give?", "function_call": null, "name": null, "role": "assistant" }, { "content": "Sure, the total bill is $100 and I want to give a 15% tip.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"bill_total\": 100, \"tip_percentage\": 15}", "name": "calculate_tip_amount" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"tip_amount\\\": 15}\"", "function_call": null, "name": "calculate_tip_amount", "role": "function" }, { "content": "Based on the total bill and the tip percentage you provided, the tip amount you should give is $15.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great, thanks for the help! Can you also book a taxi for me to get home?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book taxis or perform other external tasks. I suggest using a taxi booking app or website for this.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "create_calendar_event", "description": "Create a new event in the calendar", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the event"}, "start_time": {"type": "string", "format": "date-time", "description": "The start time of the event"}, "end_time": {"type": "string", "format": "date-time", "description": "The end time of the event"}}, "required": ["title", "start_time", "end_time"]}}]
[ { "content": "I need to schedule a meeting for tomorrow at 10am and it will end at 11am. The title of the meeting is \"Project Discussion\".", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"Project Discussion\", \"start_time\": \"2022-04-15T10:00:00\", \"end_time\": \"2022-04-15T11:00:00\"}", "name": "create_calendar_event" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Event 'Project Discussion' has been successfully created for 2022-04-15 from 10:00 to 11:00\\\"}\"", "function_call": null, "name": "create_calendar_event", "role": "function" }, { "content": "The meeting titled \"Project Discussion\" has been successfully scheduled for tomorrow from 10am to 11am.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great, can you also schedule a follow-up meeting for the same day at 2pm and it will end at 3pm? The title of the meeting is \"Project Follow-up\".", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"Project Follow-up\", \"start_time\": \"2022-04-15T14:00:00\", \"end_time\": \"2022-04-15T15:00:00\"}", "name": "create_calendar_event" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Event 'Project Follow-up' has been successfully created for 2022-04-15 from 14:00 to 15:00\\\"}\"", "function_call": null, "name": "create_calendar_event", "role": "function" }, { "content": "The follow-up meeting titled \"Project Follow-up\" has been successfully scheduled for tomorrow from 2pm to 3pm.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_lyrics", "description": "Get the lyrics of a specific song", "parameters": {"type": "object", "properties": {"song_title": {"type": "string", "description": "The title of the song"}}, "required": ["song_title"]}}]
[ { "content": "Can you order a pizza for me?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. My current function allows me to fetch the lyrics of a specific song. If you need any song lyrics, feel free to ask!", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "add_numbers", "description": "Add two numbers", "parameters": {"type": "object", "properties": {"num1": {"type": "number", "description": "The first number"}, "num2": {"type": "number", "description": "The second number"}}, "required": ["num1", "num2"]}}]
[ { "content": "Hi, I need help with some calculations. Can you add 45 and 67 for me?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"num1\": 45, \"num2\": 67}", "name": "add_numbers" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": 112}\"", "function_call": null, "name": "add_numbers", "role": "function" }, { "content": "The sum of 45 and 67 is 112.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great! Now, can you add 112 and 88?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"num1\": 112, \"num2\": 88}", "name": "add_numbers" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": 200}\"", "function_call": null, "name": "add_numbers", "role": "function" }, { "content": "The sum of 112 and 88 is 200.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Thank you for your help!", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you have any other calculations or questions, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "create_todo", "description": "Create a new todo item with the given details", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the todo item"}, "due_date": {"type": "string", "format": "date", "description": "The due date of the todo item"}, "priority": {"type": "string", "description": "The priority of the todo item"}}, "required": ["title", "due_date", "priority"]}}]
[ { "content": "Hey, can you help me create a new todo item?", "function_call": null, "name": null, "role": "user" }, { "content": "Of course! I can help with that. Could you please provide me with the title, due date, and priority of the todo item?", "function_call": null, "name": null, "role": "assistant" }, { "content": "Sure, the title is \"Finish Project\", the due date is \"2022-12-30\", and the priority is \"High\".", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"title\": \"Finish Project\", \"due_date\": \"2022-12-30\", \"priority\": \"High\"}", "name": "create_todo" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"message\\\": \\\"Todo item 'Finish Project' has been created with due date '2022-12-30' and priority 'High'\\\"}\"", "function_call": null, "name": "create_todo", "role": "function" }, { "content": "Great news! Your todo item \"Finish Project\" has been successfully created with a due date of '2022-12-30' and a priority level of 'High'.", "function_call": null, "name": null, "role": "assistant" }, { "content": "That's great! Can you also book a flight for me to New York next week?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but as an AI, I don't currently have the capability to book flights. My primary function is to assist with creating todo items. I recommend using a trusted travel booking platform for your flight needs.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "shuffle_array", "description": "Shuffle the elements of an array", "parameters": {"type": "object", "properties": {"array": {"type": "array", "items": {"type": "string"}, "description": "The array to be shuffled"}}, "required": ["array"]}}]
[ { "content": "Hi, I have a list of names that I need to randomize. Can you help me with that?", "function_call": null, "name": null, "role": "user" }, { "content": "Of course, I can help you with that. Please provide me with the list of names.", "function_call": null, "name": null, "role": "assistant" }, { "content": "The names are John, Sarah, Mike, Emily, and Alex.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"array\": [\"John\", \"Sarah\", \"Mike\", \"Emily\", \"Alex\"]}", "name": "shuffle_array" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"array\\\": [\\\"Emily\\\", \\\"John\\\", \\\"Alex\\\", \\\"Sarah\\\", \\\"Mike\\\"]}\"", "function_call": null, "name": "shuffle_array", "role": "function" }, { "content": "I have randomized the names for you. The new order is: Emily, John, Alex, Sarah, Mike.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great, thank you! Could you also help me book a table at a restaurant for tonight?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but I can't assist with that. My current capabilities are limited to the functions provided to me, and booking a table at a restaurant is an external task that I don't have a function for.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_user_profile", "description": "Get the user profile information", "parameters": {"type": "object", "properties": {"user_id": {"type": "string", "description": "The unique identifier of the user"}}, "required": ["user_id"]}}]
[ { "content": "Hi, I need to access my profile information. My user id is 12345.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"user_id\": \"12345\"}", "name": "get_user_profile" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"data\\\": {\\\"user_id\\\": \\\"12345\\\", \\\"name\\\": \\\"John Doe\\\", \\\"email\\\": \\\"[email protected]\\\", \\\"date_of_birth\\\": \\\"1990-01-01\\\", \\\"location\\\": \\\"New York\\\"}}\"", "function_call": null, "name": "get_user_profile", "role": "function" }, { "content": "Hi John Doe, I have retrieved your profile information. Your email is [email protected], you were born on 1990-01-01 and you are currently located in New York. Is there anything else you need help with?", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "generate_barcode", "description": "Generate a barcode for a given text or number", "parameters": {"type": "object", "properties": {"data": {"type": "string", "description": "The text or number to encode"}, "type": {"type": "string", "description": "The type of barcode to generate"}}, "required": ["data", "type"]}}]
[ { "content": "Hi, I need to generate a barcode for my product. The product number is 123456789 and I want a QR code.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"data\": \"123456789\", \"type\": \"QR\"}", "name": "generate_barcode" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"barcode\\\": \\\"https://barcode.example.com/123456789_QR.png\\\"}\"", "function_call": null, "name": "generate_barcode", "role": "function" }, { "content": "I have generated the QR code for your product number 123456789. You can access it [here](https://barcode.example.com/123456789_QR.png).", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "translate_text", "description": "Translate text from one language to another", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to be translated"}, "sourceLanguage": {"type": "string", "description": "The source language of the text"}, "targetLanguage": {"type": "string", "description": "The target language to translate the text into"}}, "required": ["text", "targetLanguage"]}}]
[ { "content": "Hi, I have a sentence in French that I need translated into English. The sentence is \"Je suis très heureux de vous rencontrer\".", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"text\": \"Je suis très heureux de vous rencontrer\", \"sourceLanguage\": \"French\", \"targetLanguage\": \"English\"}", "name": "translate_text" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"translatedText\\\": \\\"I am very happy to meet you\\\"}\"", "function_call": null, "name": "translate_text", "role": "function" }, { "content": "The translation of your sentence in English is: \"I am very happy to meet you\".", "function_call": null, "name": null, "role": "assistant" }, { "content": "That's great! Now, can you translate \"I am very happy to meet you\" into Spanish?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"text\": \"I am very happy to meet you\", \"sourceLanguage\": \"English\", \"targetLanguage\": \"Spanish\"}", "name": "translate_text" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"translatedText\\\": \\\"Estoy muy feliz de conocerte\\\"}\"", "function_call": null, "name": "translate_text", "role": "function" }, { "content": "The translation of your sentence in Spanish is: \"Estoy muy feliz de conocerte\".", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "analyze_audio", "description": "Analyze the content of an audio file", "parameters": {"type": "object", "properties": {"audio_url": {"type": "string", "description": "The URL of the audio file"}}, "required": ["audio_url"]}}]
[ { "content": "Can you please order a pizza for me?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. My current function allows me to analyze the content of an audio file if you provide me with the URL.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_song_lyrics", "description": "Get the lyrics of a song", "parameters": {"type": "object", "properties": {"artist": {"type": "string", "description": "The name of the artist"}, "song_title": {"type": "string", "description": "The title of the song"}}, "required": ["artist", "song_title"]}}]
[ { "content": "Can you order a pizza for me?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but I don't have the capability to order a pizza as it's an external task. My current function allows me to get the lyrics of a song. If you need lyrics for a specific song, feel free to ask!", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_stock_price", "description": "Get the current stock price of a company", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "The stock symbol of the company"}}, "required": ["symbol"]}}, {"name": "calculate_interest", "description": "Calculate the interest amount", "parameters": {"type": "object", "properties": {"principal_amount": {"type": "number", "description": "Principal amount"}, "interest_rate": {"type": "number", "description": "Interest rate"}, "time_period": {"type": "number", "description": "Time period in years"}}, "required": ["principal_amount", "interest_rate", "time_period"]}}]
[ { "content": "Hi, can you tell me the current stock price of Apple?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"symbol\": \"AAPL\"}", "name": "get_stock_price" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"data\\\": {\\\"price\\\": 150.75}}\"", "function_call": null, "name": "get_stock_price", "role": "function" }, { "content": "The current stock price of Apple (AAPL) is $150.75.", "function_call": null, "name": null, "role": "assistant" }, { "content": "That's great. Can you also tell me the stock price for Microsoft?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"symbol\": \"MSFT\"}", "name": "get_stock_price" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"data\\\": {\\\"price\\\": 210.22}}\"", "function_call": null, "name": "get_stock_price", "role": "function" }, { "content": "The current stock price of Microsoft (MSFT) is $210.22.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Thank you for the information.", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "calculate_fuel_efficiency", "description": "Calculate the fuel efficiency of a vehicle", "parameters": {"type": "object", "properties": {"distance": {"type": "number", "description": "The total distance traveled"}, "fuel_consumed": {"type": "number", "description": "The total fuel consumed"}}, "required": ["distance", "fuel_consumed"]}}]
[ { "content": "Can you please book a flight for me from New York to London?", "function_call": null, "name": null, "role": "user" }, { "content": "I'm sorry, but I'm unable to assist with that. Booking a flight is an external task and I don't have a function provided for that task. I can help you calculate the fuel efficiency of a vehicle if you provide me with the total distance traveled and the total fuel consumed.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "search_song", "description": "Search for a song by title or artist", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The title or artist of the song"}}, "required": ["query"]}}]
[ { "content": "Hey, can you find a song for me?", "function_call": null, "name": null, "role": "user" }, { "content": "Of course! Could you please provide me with the title or the artist of the song?", "function_call": null, "name": null, "role": "assistant" }, { "content": "The song is \"Bohemian Rhapsody\" by Queen.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"query\": \"Bohemian Rhapsody by Queen\"}", "name": "search_song" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"status\\\": \\\"success\\\", \\\"data\\\": {\\\"title\\\": \\\"Bohemian Rhapsody\\\", \\\"artist\\\": \\\"Queen\\\", \\\"album\\\": \\\"A Night at the Opera\\\", \\\"release_year\\\": 1975, \\\"genre\\\": \\\"Rock\\\"}}\"", "function_call": null, "name": "search_song", "role": "function" }, { "content": "I found the song you were looking for. \"Bohemian Rhapsody\" by Queen is from the album \"A Night at the Opera\". It was released in the year 1975 and falls under the Rock genre.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "get_random_quote", "description": "Get a random quote", "parameters": {}}]
[ { "content": "I need some inspiration. Can you share a quote?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{}", "name": "get_random_quote" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"quote\\\": \\\"The only way to do great work is to love what you do. - Steve Jobs\\\"}\"", "function_call": null, "name": "get_random_quote", "role": "function" }, { "content": "Here is a quote for you: \"The only way to do great work is to love what you do.\" - Steve Jobs", "function_call": null, "name": null, "role": "assistant" }, { "content": "That's a great quote. Can you share another one?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{}", "name": "get_random_quote" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"quote\\\": \\\"Believe you can and you're halfway there. - Theodore Roosevelt\\\"}\"", "function_call": null, "name": "get_random_quote", "role": "function" }, { "content": "Here is another quote for you: \"Believe you can and you're halfway there.\" - Theodore Roosevelt", "function_call": null, "name": null, "role": "assistant" }, { "content": "Thank you, that was really inspiring.", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you need more inspiration, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "search_articles", "description": "Search for articles based on criteria", "parameters": {"type": "object", "properties": {"keywords": {"type": "array", "items": {"type": "string"}, "description": "Keywords to search for in article titles"}, "author": {"type": "string", "description": "Author of the articles"}, "publish_date": {"type": "string", "format": "date", "description": "Publish date of the articles"}}, "required": ["keywords"]}}, {"name": "search_jobs", "description": "Search for jobs based on location and job title", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The location to search for jobs"}, "job_title": {"type": "string", "description": "The job title to filter the search"}}, "required": ["location"]}}]
[ { "content": "I am looking for articles about climate change written by John Doe.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"keywords\": [\"climate change\"], \"author\": \"John Doe\"}", "name": "search_articles" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"articles\\\": [{\\\"title\\\": \\\"Climate Change: A Global Threat\\\", \\\"author\\\": \\\"John Doe\\\", \\\"publish_date\\\": \\\"2021-05-01\\\"}, {\\\"title\\\": \\\"The Impact of Climate Change on Biodiversity\\\", \\\"author\\\": \\\"John Doe\\\", \\\"publish_date\\\": \\\"2021-06-15\\\"}]}\"", "function_call": null, "name": "search_articles", "role": "function" }, { "content": "I found two articles written by John Doe about climate change. The first one is titled \"Climate Change: A Global Threat\" and was published on May 1, 2021. The second one is titled \"The Impact of Climate Change on Biodiversity\" and was published on June 15, 2021.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Can you find more articles by the same author but this time about global warming?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"keywords\": [\"global warming\"], \"author\": \"John Doe\"}", "name": "search_articles" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"articles\\\": [{\\\"title\\\": \\\"Global Warming: An Inconvenient Truth\\\", \\\"author\\\": \\\"John Doe\\\", \\\"publish_date\\\": \\\"2021-07-01\\\"}, {\\\"title\\\": \\\"The Effects of Global Warming on Polar Bears\\\", \\\"author\\\": \\\"John Doe\\\", \\\"publish_date\\\": \\\"2021-08-15\\\"}]}\"", "function_call": null, "name": "search_articles", "role": "function" }, { "content": "I found two more articles written by John Doe. The first one is titled \"Global Warming: An Inconvenient Truth\" and was published on July 1, 2021. The second one is titled \"The Effects of Global Warming on Polar Bears\" and was published on August 15, 2021.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "search_books", "description": "Search for books based on keywords", "parameters": {"type": "object", "properties": {"keywords": {"type": "array", "items": {"type": "string"}, "description": "The keywords to search for"}, "author": {"type": "string", "description": "The author's name (optional)"}}, "required": ["keywords"]}}]
[ { "content": "I am looking for books on the topic of artificial intelligence. Can you help me find some?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"keywords\": [\"artificial intelligence\"]}", "name": "search_books" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"results\\\": [{\\\"title\\\": \\\"Artificial Intelligence: A Modern Approach\\\", \\\"author\\\": \\\"Stuart Russell and Peter Norvig\\\"}, {\\\"title\\\": \\\"Life 3.0: Being Human in the Age of Artificial Intelligence\\\", \\\"author\\\": \\\"Max Tegmark\\\"}, {\\\"title\\\": \\\"Superintelligence: Paths, Dangers, Strategies\\\", \\\"author\\\": \\\"Nick Bostrom\\\"}]}\"", "function_call": null, "name": "search_books", "role": "function" }, { "content": "Here are some books on the topic of artificial intelligence:\n1. \"Artificial Intelligence: A Modern Approach\" by Stuart Russell and Peter Norvig\n2. \"Life 3.0: Being Human in the Age of Artificial Intelligence\" by Max Tegmark\n3. \"Superintelligence: Paths, Dangers, Strategies\" by Nick Bostrom", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great! Can you also find books by the author Isaac Asimov?", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"keywords\": [], \"author\": \"Isaac Asimov\"}", "name": "search_books" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"results\\\": [{\\\"title\\\": \\\"Foundation\\\", \\\"author\\\": \\\"Isaac Asimov\\\"}, {\\\"title\\\": \\\"I, Robot\\\", \\\"author\\\": \\\"Isaac Asimov\\\"}, {\\\"title\\\": \\\"The Gods Themselves\\\", \\\"author\\\": \\\"Isaac Asimov\\\"}]}\"", "function_call": null, "name": "search_books", "role": "function" }, { "content": "Here are some books by Isaac Asimov:\n1. \"Foundation\"\n2. \"I, Robot\"\n3. \"The Gods Themselves\"", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "calculate_mortgage", "description": "Calculate the monthly mortgage payment", "parameters": {"type": "object", "properties": {"loan_amount": {"type": "number", "description": "The loan amount in dollars"}, "interest_rate": {"type": "number", "description": "The annual interest rate"}, "loan_term": {"type": "integer", "description": "The loan term in years"}}, "required": ["loan_amount", "interest_rate", "loan_term"]}}]
[ { "content": "Hi, I need help with calculating my mortgage payment. I have a loan amount of $200,000, an annual interest rate of 3.5%, and a loan term of 30 years.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"loan_amount\": 200000, \"interest_rate\": 3.5, \"loan_term\": 30}", "name": "calculate_mortgage" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"monthly_payment\\\": 898.09}\"", "function_call": null, "name": "calculate_mortgage", "role": "function" }, { "content": "Based on the details you provided, your monthly mortgage payment would be approximately $898.09.", "function_call": null, "name": null, "role": "assistant" } ]
[{"name": "generate_random_number", "description": "Generate a random number within a given range", "parameters": {"type": "object", "properties": {"min": {"type": "integer", "description": "The minimum value of the range"}, "max": {"type": "integer", "description": "The maximum value of the range"}}, "required": ["min", "max"]}}]
[ { "content": "Hi, I need a random number between 1 and 100.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"min\": 1, \"max\": 100}", "name": "generate_random_number" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": 42}\"", "function_call": null, "name": "generate_random_number", "role": "function" }, { "content": "The random number generated between 1 and 100 is 42.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Great, now I need another random number but this time between 500 and 1000.", "function_call": null, "name": null, "role": "user" }, { "content": null, "function_call": { "arguments": "{\"min\": 500, \"max\": 1000}", "name": "generate_random_number" }, "name": null, "role": "assistant" }, { "content": "\"{\\\"result\\\": 789}\"", "function_call": null, "name": "generate_random_number", "role": "function" }, { "content": "The random number generated between 500 and 1000 is 789.", "function_call": null, "name": null, "role": "assistant" }, { "content": "Thank you, that's all I needed.", "function_call": null, "name": null, "role": "user" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "function_call": null, "name": null, "role": "assistant" } ]
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
40
Edit dataset card