Dataset Viewer
Auto-converted to Parquet
conversations
listlengths
2
14
tools
stringlengths
110
1.59k
text
stringlengths
835
4.31k
[ { "content": "I would like to listen to some music. Can you play \"Bohemian Rhapsody\" for me?", "role": "user" }, { "content": "{\"name\": \"play_music\", \"arguments\": {\"track_name\": \"Bohemian Rhapsody\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Now playing: Bohemian Rhapsody\"}", "role": "tool" }, { "content": "Now playing your requested track: \"Bohemian Rhapsody\". Enjoy the music!", "role": "assistant" }, { "content": "Thank you! Can you also play \"Imagine\" by John Lennon?", "role": "user" }, { "content": "{\"name\": \"play_music\", \"arguments\": {\"track_name\": \"Imagine\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Now playing: Imagine\"}", "role": "tool" }, { "content": "Now playing \"Imagine\" by John Lennon. Enjoy the music!", "role": "assistant" } ]
[{"name": "play_music", "description": "Play a music track", "parameters": {"type": "object", "properties": {"track_name": {"type": "string", "description": "The name of the music track"}}, "required": ["track_name"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "play_music", "description": "Play a music track", "parameters": {"type": "object", "properties": {"track_name": {"type": "string", "description": "The name of the music track"}}, "required": ["track_name"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I would like to listen to some music. Can you play "Bohemian Rhapsody" for me?<|im_end|> <|im_start|>assistant {"name": "play_music", "arguments": {"track_name": "Bohemian Rhapsody"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Now playing: Bohemian Rhapsody"} </tool_response><|im_end|> <|im_start|>assistant Now playing your requested track: "Bohemian Rhapsody". Enjoy the music!<|im_end|> <|im_start|>user Thank you! Can you also play "Imagine" by John Lennon?<|im_end|> <|im_start|>assistant {"name": "play_music", "arguments": {"track_name": "Imagine"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Now playing: Imagine"} </tool_response><|im_end|> <|im_start|>assistant Now playing "Imagine" by John Lennon. Enjoy the music!<|im_end|>
[ { "content": "Can you please order a pizza for me?", "role": "user" }, { "content": "I'm sorry, but I don't have the capability to order a pizza as it's an external task and I don't have a function provided for that task. I can assist with tasks such as sending emails.", "role": "assistant" } ]
[{"name": "send_email", "description": "Send an email", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "body": {"type": "string", "description": "The body of the email"}}, "required": ["recipient", "subject", "body"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "send_email", "description": "Send an email", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "body": {"type": "string", "description": "The body of the email"}}, "required": ["recipient", "subject", "body"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you please order a pizza for me?<|im_end|> <|im_start|>assistant I'm sorry, but I don't have the capability to order a pizza as it's an external task and I don't have a function provided for that task. I can assist with tasks such as sending emails.<|im_end|>
[ { "content": "I need a random number between 1 and 100.", "role": "user" }, { "content": "{\"name\": \"generate_random_number\", \"arguments\": {\"min\": 1, \"max\": 100}}", "role": "assistant" }, { "content": "{\"result\": 42}", "role": "tool" }, { "content": "The random number generated between 1 and 100 is 42.", "role": "assistant" }, { "content": "Can you generate another random number but this time between 200 and 300?", "role": "user" }, { "content": "{\"name\": \"generate_random_number\", \"arguments\": {\"min\": 200, \"max\": 300}}", "role": "assistant" }, { "content": "{\"result\": 278}", "role": "tool" }, { "content": "The random number generated between 200 and 300 is 278.", "role": "assistant" }, { "content": "Thank you, that's all I needed.", "role": "user" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "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"]}}, {"name": "create_todo", "description": "Create a new todo item", "parameters": {"type": "object", "properties": {"task": {"type": "string", "description": "The task description"}, "due_date": {"type": "string", "format": "date", "description": "The due date of the task"}, "priority": {"type": "string", "enum": ["low", "medium", "high"], "description": "The priority level of the task"}}, "required": ["task", "due_date"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"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"]}} {"name": "create_todo", "description": "Create a new todo item", "parameters": {"type": "object", "properties": {"task": {"type": "string", "description": "The task description"}, "due_date": {"type": "string", "format": "date", "description": "The due date of the task"}, "priority": {"type": "string", "enum": ["low", "medium", "high"], "description": "The priority level of the task"}}, "required": ["task", "due_date"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need a random number between 1 and 100.<|im_end|> <|im_start|>assistant {"name": "generate_random_number", "arguments": {"min": 1, "max": 100}}<|im_end|> <|im_start|>user <tool_response> {"result": 42} </tool_response><|im_end|> <|im_start|>assistant The random number generated between 1 and 100 is 42.<|im_end|> <|im_start|>user Can you generate another random number but this time between 200 and 300?<|im_end|> <|im_start|>assistant {"name": "generate_random_number", "arguments": {"min": 200, "max": 300}}<|im_end|> <|im_start|>user <tool_response> {"result": 278} </tool_response><|im_end|> <|im_start|>assistant The random number generated between 200 and 300 is 278.<|im_end|> <|im_start|>user Thank you, that's all I needed.<|im_end|> <|im_start|>assistant You're welcome! If you need anything else, feel free to ask.<|im_end|>
[ { "content": "I need to send an email to my boss. Can you help me with that?", "role": "user" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you wish to send?", "role": "assistant" }, { "content": "The recipient's email is boss@example.com. The subject is \"Project Update\" and the message is \"Dear Boss, The project is on track and will be completed by the end of this week. Regards, User.\"", "role": "user" }, { "content": "{\"name\": \"send_email\", \"arguments\": {\"recipient\": \"boss@example.com\", \"subject\": \"Project Update\", \"message\": \"Dear Boss, The project is on track and will be completed by the end of this week. Regards, User.\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Email has been sent successfully.\"}", "role": "tool" }, { "content": "The email has been sent successfully to your boss. Is there anything else you need help with?", "role": "assistant" } ]
[{"name": "send_email", "description": "Send an email to a recipient with a given subject and message", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email"}}, "required": ["recipient", "subject", "message"]}}, {"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight in kilograms"}, "height": {"type": "number", "description": "The height in meters"}}, "required": ["weight", "height"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "send_email", "description": "Send an email to a recipient with a given subject and message", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email"}}, "required": ["recipient", "subject", "message"]}} {"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight in kilograms"}, "height": {"type": "number", "description": "The height in meters"}}, "required": ["weight", "height"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to send an email to my boss. Can you help me with that?<|im_end|> <|im_start|>assistant Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you wish to send?<|im_end|> <|im_start|>user The recipient's email is boss@example.com. The subject is "Project Update" and the message is "Dear Boss, The project is on track and will be completed by the end of this week. Regards, User."<|im_end|> <|im_start|>assistant {"name": "send_email", "arguments": {"recipient": "boss@example.com", "subject": "Project Update", "message": "Dear Boss, The project is on track and will be completed by the end of this week. Regards, User."}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Email has been sent successfully."} </tool_response><|im_end|> <|im_start|>assistant The email has been sent successfully to your boss. Is there anything else you need help with?<|im_end|>
[ { "content": "What does the word 'serendipity' mean?", "role": "user" }, { "content": "{\"name\": \"get_definition\", \"arguments\": {\"word\": \"serendipity\"}}", "role": "assistant" }, { "content": "{\"definition\": \"Serendipity is the occurrence and development of events by chance in a happy or beneficial way.\"}", "role": "tool" }, { "content": "The word 'serendipity' means the occurrence and development of events by chance in a happy or beneficial way.", "role": "assistant" }, { "content": "What about 'ephemeral'?", "role": "user" }, { "content": "{\"name\": \"get_definition\", \"arguments\": {\"word\": \"ephemeral\"}}", "role": "assistant" }, { "content": "{\"definition\": \"Ephemeral means lasting for a very short time.\"}", "role": "tool" }, { "content": "The word 'ephemeral' means lasting for a very short time.", "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 for"}}, "required": ["word"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_definition", "description": "Get the definition of a word", "parameters": {"type": "object", "properties": {"word": {"type": "string", "description": "The word to get the definition for"}}, "required": ["word"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user What does the word 'serendipity' mean?<|im_end|> <|im_start|>assistant {"name": "get_definition", "arguments": {"word": "serendipity"}}<|im_end|> <|im_start|>user <tool_response> {"definition": "Serendipity is the occurrence and development of events by chance in a happy or beneficial way."} </tool_response><|im_end|> <|im_start|>assistant The word 'serendipity' means the occurrence and development of events by chance in a happy or beneficial way.<|im_end|> <|im_start|>user What about 'ephemeral'?<|im_end|> <|im_start|>assistant {"name": "get_definition", "arguments": {"word": "ephemeral"}}<|im_end|> <|im_start|>user <tool_response> {"definition": "Ephemeral means lasting for a very short time."} </tool_response><|im_end|> <|im_start|>assistant The word 'ephemeral' means lasting for a very short time.<|im_end|>
[ { "content": "I'm in New York and I'm craving for some Italian food. Can you find me a restaurant?", "role": "user" }, { "content": "{\"name\": \"find_nearby_restaurants\", \"arguments\": {\"location\": \"New York\", \"cuisine\": \"Italian\"}}", "role": "assistant" }, { "content": "{\"restaurants\": [{\"name\": \"Carbone\", \"address\": \"181 Thompson St, New York, NY 10012\", \"price_range\": \"$$$\"}, {\"name\": \"L'Artusi\", \"address\": \"228 W 10th St, New York, NY 10014\", \"price_range\": \"$$$\"}]}", "role": "tool" }, { "content": "I found a couple of Italian restaurants for you in New York. You might want to check out Carbone at 181 Thompson St, or L'Artusi at 228 W 10th St. Both are in the higher price range.", "role": "assistant" }, { "content": "Great, can you also find me a cheaper option?", "role": "user" }, { "content": "{\"name\": \"find_nearby_restaurants\", \"arguments\": {\"location\": \"New York\", \"cuisine\": \"Italian\", \"price_range\": \"$\"}}", "role": "assistant" }, { "content": "{\"restaurants\": [{\"name\": \"Lil' Frankie's\", \"address\": \"19 1st Avenue, New York, NY 10003\", \"price_range\": \"$\"}]}", "role": "tool" }, { "content": "For a more budget-friendly option, you might want to try Lil' Frankie's at 19 1st Avenue.", "role": "assistant" } ]
[{"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"}, "cuisine": {"type": "string", "description": "The cuisine type of restaurants to search"}, "price_range": {"type": "string", "description": "The price range of restaurants to search"}}, "required": ["location"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"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"}, "cuisine": {"type": "string", "description": "The cuisine type of restaurants to search"}, "price_range": {"type": "string", "description": "The price range of restaurants to search"}}, "required": ["location"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I'm in New York and I'm craving for some Italian food. Can you find me a restaurant?<|im_end|> <|im_start|>assistant {"name": "find_nearby_restaurants", "arguments": {"location": "New York", "cuisine": "Italian"}}<|im_end|> <|im_start|>user <tool_response> {"restaurants": [{"name": "Carbone", "address": "181 Thompson St, New York, NY 10012", "price_range": "$$$"}, {"name": "L'Artusi", "address": "228 W 10th St, New York, NY 10014", "price_range": "$$$"}]} </tool_response><|im_end|> <|im_start|>assistant I found a couple of Italian restaurants for you in New York. You might want to check out Carbone at 181 Thompson St, or L'Artusi at 228 W 10th St. Both are in the higher price range.<|im_end|> <|im_start|>user Great, can you also find me a cheaper option?<|im_end|> <|im_start|>assistant {"name": "find_nearby_restaurants", "arguments": {"location": "New York", "cuisine": "Italian", "price_range": "$"}}<|im_end|> <|im_start|>user <tool_response> {"restaurants": [{"name": "Lil' Frankie's", "address": "19 1st Avenue, New York, NY 10003", "price_range": "$"}]} </tool_response><|im_end|> <|im_start|>assistant For a more budget-friendly option, you might want to try Lil' Frankie's at 19 1st Avenue.<|im_end|>
[ { "content": "Hi, I am planning a road trip. Can you tell me the distance between New York and Los Angeles?", "role": "user" }, { "content": "{\"name\": \"calculate_distance\", \"arguments\": {\"origin\": \"New York\", \"destination\": \"Los Angeles\"}}", "role": "assistant" }, { "content": "{\"distance\": \"2789.6 miles\"}", "role": "tool" }, { "content": "The distance between New York and Los Angeles is approximately 2789.6 miles. Please note that the actual distance may vary depending on the route you choose.", "role": "assistant" }, { "content": "That's quite a distance. What about the distance between New York and Chicago?", "role": "user" }, { "content": "{\"name\": \"calculate_distance\", \"arguments\": {\"origin\": \"New York\", \"destination\": \"Chicago\"}}", "role": "assistant" }, { "content": "{\"distance\": \"789.6 miles\"}", "role": "tool" }, { "content": "The distance between New York and Chicago is approximately 789.6 miles. This might be a more manageable distance for your road trip.", "role": "assistant" }, { "content": "Thanks for the information. I'll consider it.", "role": "user" }, { "content": "You're welcome! If you have any other questions or need further assistance, feel free to ask. Safe travels!", "role": "assistant" } ]
[{"name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": {"type": "object", "properties": {"origin": {"type": "string", "description": "The origin location"}, "destination": {"type": "string", "description": "The destination location"}}, "required": ["origin", "destination"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": {"type": "object", "properties": {"origin": {"type": "string", "description": "The origin location"}, "destination": {"type": "string", "description": "The destination location"}}, "required": ["origin", "destination"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I am planning a road trip. Can you tell me the distance between New York and Los Angeles?<|im_end|> <|im_start|>assistant {"name": "calculate_distance", "arguments": {"origin": "New York", "destination": "Los Angeles"}}<|im_end|> <|im_start|>user <tool_response> {"distance": "2789.6 miles"} </tool_response><|im_end|> <|im_start|>assistant The distance between New York and Los Angeles is approximately 2789.6 miles. Please note that the actual distance may vary depending on the route you choose.<|im_end|> <|im_start|>user That's quite a distance. What about the distance between New York and Chicago?<|im_end|> <|im_start|>assistant {"name": "calculate_distance", "arguments": {"origin": "New York", "destination": "Chicago"}}<|im_end|> <|im_start|>user <tool_response> {"distance": "789.6 miles"} </tool_response><|im_end|> <|im_start|>assistant The distance between New York and Chicago is approximately 789.6 miles. This might be a more manageable distance for your road trip.<|im_end|> <|im_start|>user Thanks for the information. I'll consider it.<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions or need further assistance, feel free to ask. Safe travels!<|im_end|>
[ { "content": "Hi, can you tell me the current price of Apple's stock?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"ticker_symbol\": \"AAPL\"}}", "role": "assistant" }, { "content": "{\"stock_price\": 150.75}", "role": "tool" }, { "content": "The current price of Apple's stock (AAPL) is $150.75.", "role": "assistant" }, { "content": "That's great. Can you also tell me the price of Microsoft's stock?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"ticker_symbol\": \"MSFT\"}}", "role": "assistant" }, { "content": "{\"stock_price\": 212.46}", "role": "tool" }, { "content": "The current price of Microsoft's stock (MSFT) is $212.46.", "role": "assistant" }, { "content": "Thank you for the information.", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "get_stock_price", "description": "Get the current stock price", "parameters": {"type": "object", "properties": {"ticker_symbol": {"type": "string", "description": "The symbol of the stock to get price for"}}, "required": ["ticker_symbol"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_stock_price", "description": "Get the current stock price", "parameters": {"type": "object", "properties": {"ticker_symbol": {"type": "string", "description": "The symbol of the stock to get price for"}}, "required": ["ticker_symbol"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, can you tell me the current price of Apple's stock?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"ticker_symbol": "AAPL"}}<|im_end|> <|im_start|>user <tool_response> {"stock_price": 150.75} </tool_response><|im_end|> <|im_start|>assistant The current price of Apple's stock (AAPL) is $150.75.<|im_end|> <|im_start|>user That's great. Can you also tell me the price of Microsoft's stock?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"ticker_symbol": "MSFT"}}<|im_end|> <|im_start|>user <tool_response> {"stock_price": 212.46} </tool_response><|im_end|> <|im_start|>assistant The current price of Microsoft's stock (MSFT) is $212.46.<|im_end|> <|im_start|>user Thank you for the information.<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Can you book a ticket for me for the movie 'Inception'?", "role": "user" }, { "content": "I'm sorry, but I'm unable to assist with booking movie tickets as it's an external task. My current capabilities are limited to providing details about a specific movie based on its title and year of release.", "role": "assistant" } ]
[{"name": "get_movie_details", "description": "Get details about a specific movie", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}, "year": {"type": "integer", "description": "The year of release of the movie"}}, "required": ["title", "year"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_movie_details", "description": "Get details about a specific movie", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}, "year": {"type": "integer", "description": "The year of release of the movie"}}, "required": ["title", "year"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you book a ticket for me for the movie 'Inception'?<|im_end|> <|im_start|>assistant I'm sorry, but I'm unable to assist with booking movie tickets as it's an external task. My current capabilities are limited to providing details about a specific movie based on its title and year of release.<|im_end|>
[ { "content": "Hi, can you check if my email address is valid?", "role": "user" }, { "content": "Sure, I can help with that. Please provide me with the email address you want to check.", "role": "assistant" }, { "content": "The email address is john.doe@example.com.", "role": "user" }, { "content": "{\"name\": \"check_email\", \"arguments\": {\"email\": \"john.doe@example.com\"}}", "role": "assistant" }, { "content": "{\"valid\": true, \"message\": \"The email address is valid.\"}", "role": "tool" }, { "content": "The email address you provided is valid.", "role": "assistant" } ]
[{"name": "check_email", "description": "Check if an email address is valid", "parameters": {"type": "object", "properties": {"email": {"type": "string", "description": "The email address to check"}}, "required": ["email"]}}, {"name": "search_movies", "description": "Search for movies based on title or genre", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query"}}, "required": ["query"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "check_email", "description": "Check if an email address is valid", "parameters": {"type": "object", "properties": {"email": {"type": "string", "description": "The email address to check"}}, "required": ["email"]}} {"name": "search_movies", "description": "Search for movies based on title or genre", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query"}}, "required": ["query"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, can you check if my email address is valid?<|im_end|> <|im_start|>assistant Sure, I can help with that. Please provide me with the email address you want to check.<|im_end|> <|im_start|>user The email address is john.doe@example.com.<|im_end|> <|im_start|>assistant {"name": "check_email", "arguments": {"email": "john.doe@example.com"}}<|im_end|> <|im_start|>user <tool_response> {"valid": true, "message": "The email address is valid."} </tool_response><|im_end|> <|im_start|>assistant The email address you provided is valid.<|im_end|>
[ { "content": "I saw a dress that I liked. It was originally priced at $100 but it's on a 20% discount. How much will it cost now?", "role": "user" }, { "content": "{\"name\": \"calculate_discount\", \"arguments\": {\"original_price\": 100, \"discount_percentage\": 20}}", "role": "assistant" }, { "content": "{\"discounted_price\": 80}", "role": "tool" }, { "content": "With the 20% discount, the dress will now cost you $80.", "role": "assistant" } ]
[{"name": "calculate_discount", "description": "Calculate the discounted price based on the original price and discount percentage", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the item"}, "discount_percentage": {"type": "number", "description": "The percentage of the discount"}}, "required": ["original_price", "discount_percentage"]}}, {"name": "calculate_discount", "description": "Calculate the discounted price of a product", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the product"}, "discount_percentage": {"type": "number", "description": "The percentage of discount"}}, "required": ["original_price", "discount_percentage"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_discount", "description": "Calculate the discounted price based on the original price and discount percentage", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the item"}, "discount_percentage": {"type": "number", "description": "The percentage of the discount"}}, "required": ["original_price", "discount_percentage"]}} {"name": "calculate_discount", "description": "Calculate the discounted price of a product", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the product"}, "discount_percentage": {"type": "number", "description": "The percentage of discount"}}, "required": ["original_price", "discount_percentage"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I saw a dress that I liked. It was originally priced at $100 but it's on a 20% discount. How much will it cost now?<|im_end|> <|im_start|>assistant {"name": "calculate_discount", "arguments": {"original_price": 100, "discount_percentage": 20}}<|im_end|> <|im_start|>user <tool_response> {"discounted_price": 80} </tool_response><|im_end|> <|im_start|>assistant With the 20% discount, the dress will now cost you $80.<|im_end|>
[ { "content": "Hi, can you tell me the current stock price of Apple?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"symbol\": \"AAPL\"}}", "role": "assistant" }, { "content": "{\"stock_price\": 150.75}", "role": "tool" }, { "content": "The current stock price of Apple (AAPL) is $150.75.", "role": "assistant" }, { "content": "That's great! Can you also tell me the current stock price of Microsoft?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"symbol\": \"MSFT\"}}", "role": "assistant" }, { "content": "{\"stock_price\": 210.22}", "role": "tool" }, { "content": "The current stock price of Microsoft (MSFT) is $210.22.", "role": "assistant" }, { "content": "Thank you for the information!", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "get_stock_price", "description": "Get the current stock price", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "The stock symbol"}}, "required": ["symbol"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_stock_price", "description": "Get the current stock price", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "The stock symbol"}}, "required": ["symbol"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, can you tell me the current stock price of Apple?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"symbol": "AAPL"}}<|im_end|> <|im_start|>user <tool_response> {"stock_price": 150.75} </tool_response><|im_end|> <|im_start|>assistant The current stock price of Apple (AAPL) is $150.75.<|im_end|> <|im_start|>user That's great! Can you also tell me the current stock price of Microsoft?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"symbol": "MSFT"}}<|im_end|> <|im_start|>user <tool_response> {"stock_price": 210.22} </tool_response><|im_end|> <|im_start|>assistant The current stock price of Microsoft (MSFT) is $210.22.<|im_end|> <|im_start|>user Thank you for the information!<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Hi, I need to know the distance between New York and Los Angeles.", "role": "user" }, { "content": "{\"name\": \"calculate_distance\", \"arguments\": {\"start_location\": \"New York\", \"end_location\": \"Los Angeles\"}}", "role": "assistant" }, { "content": "{\"distance\": 2448.2, \"unit\": \"miles\"}", "role": "tool" }, { "content": "The distance between New York and Los Angeles is approximately 2448.2 miles.", "role": "assistant" }, { "content": "That's quite a distance. What about the distance from London to Paris?", "role": "user" }, { "content": "{\"name\": \"calculate_distance\", \"arguments\": {\"start_location\": \"London\", \"end_location\": \"Paris\"}}", "role": "assistant" }, { "content": "{\"distance\": 214.3, \"unit\": \"miles\"}", "role": "tool" }, { "content": "The distance between London and Paris is approximately 214.3 miles.", "role": "assistant" }, { "content": "Thank you for the information.", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": {"type": "object", "properties": {"start_location": {"type": "string", "description": "The starting location"}, "end_location": {"type": "string", "description": "The ending location"}}, "required": ["start_location", "end_location"]}}, {"name": "search_movie", "description": "Search 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"}}, "required": ["title"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": {"type": "object", "properties": {"start_location": {"type": "string", "description": "The starting location"}, "end_location": {"type": "string", "description": "The ending location"}}, "required": ["start_location", "end_location"]}} {"name": "search_movie", "description": "Search 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"}}, "required": ["title"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to know the distance between New York and Los Angeles.<|im_end|> <|im_start|>assistant {"name": "calculate_distance", "arguments": {"start_location": "New York", "end_location": "Los Angeles"}}<|im_end|> <|im_start|>user <tool_response> {"distance": 2448.2, "unit": "miles"} </tool_response><|im_end|> <|im_start|>assistant The distance between New York and Los Angeles is approximately 2448.2 miles.<|im_end|> <|im_start|>user That's quite a distance. What about the distance from London to Paris?<|im_end|> <|im_start|>assistant {"name": "calculate_distance", "arguments": {"start_location": "London", "end_location": "Paris"}}<|im_end|> <|im_start|>user <tool_response> {"distance": 214.3, "unit": "miles"} </tool_response><|im_end|> <|im_start|>assistant The distance between London and Paris is approximately 214.3 miles.<|im_end|> <|im_start|>user Thank you for the information.<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "I need to calculate the area of a rectangle. The base is 5 and the height is 10.", "role": "user" }, { "content": "{\"name\": \"calculate_area\", \"arguments\": {\"shape\": \"rectangle\", \"dimensions\": {\"base\": 5, \"height\": 10}}}", "role": "assistant" }, { "content": "{\"area\": 50}", "role": "tool" }, { "content": "The area of the rectangle is 50 square units.", "role": "assistant" }, { "content": "Now, I want to calculate the area of a circle with a radius of 7.", "role": "user" }, { "content": "{\"name\": \"calculate_area\", \"arguments\": {\"shape\": \"circle\", \"dimensions\": {\"radius\": 7}}}", "role": "assistant" }, { "content": "{\"area\": 153.94}", "role": "tool" }, { "content": "The area of the circle is approximately 153.94 square units.", "role": "assistant" }, { "content": "Lastly, I need to calculate the area of a triangle with a base of 6 and a height of 8.", "role": "user" }, { "content": "{\"name\": \"calculate_area\", \"arguments\": {\"shape\": \"triangle\", \"dimensions\": {\"base\": 6, \"height\": 8}}}", "role": "assistant" }, { "content": "{\"area\": 24}", "role": "tool" }, { "content": "The area of the triangle is 24 square units.", "role": "assistant" } ]
[{"name": "calculate_area", "description": "Calculate the area of a shape", "parameters": {"type": "object", "properties": {"shape": {"type": "string", "description": "The type of shape (e.g. circle, triangle, rectangle)"}, "dimensions": {"type": "object", "properties": {"base": {"type": "number", "description": "The base dimension (for triangle or rectangle)"}, "height": {"type": "number", "description": "The height dimension (for triangle or rectangle)"}, "radius": {"type": "number", "description": "The radius dimension (for circle)"}}}}, "required": ["shape", "dimensions"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_area", "description": "Calculate the area of a shape", "parameters": {"type": "object", "properties": {"shape": {"type": "string", "description": "The type of shape (e.g. circle, triangle, rectangle)"}, "dimensions": {"type": "object", "properties": {"base": {"type": "number", "description": "The base dimension (for triangle or rectangle)"}, "height": {"type": "number", "description": "The height dimension (for triangle or rectangle)"}, "radius": {"type": "number", "description": "The radius dimension (for circle)"}}}}, "required": ["shape", "dimensions"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to calculate the area of a rectangle. The base is 5 and the height is 10.<|im_end|> <|im_start|>assistant {"name": "calculate_area", "arguments": {"shape": "rectangle", "dimensions": {"base": 5, "height": 10}}}<|im_end|> <|im_start|>user <tool_response> {"area": 50} </tool_response><|im_end|> <|im_start|>assistant The area of the rectangle is 50 square units.<|im_end|> <|im_start|>user Now, I want to calculate the area of a circle with a radius of 7.<|im_end|> <|im_start|>assistant {"name": "calculate_area", "arguments": {"shape": "circle", "dimensions": {"radius": 7}}}<|im_end|> <|im_start|>user <tool_response> {"area": 153.94} </tool_response><|im_end|> <|im_start|>assistant The area of the circle is approximately 153.94 square units.<|im_end|> <|im_start|>user Lastly, I need to calculate the area of a triangle with a base of 6 and a height of 8.<|im_end|> <|im_start|>assistant {"name": "calculate_area", "arguments": {"shape": "triangle", "dimensions": {"base": 6, "height": 8}}}<|im_end|> <|im_start|>user <tool_response> {"area": 24} </tool_response><|im_end|> <|im_start|>assistant The area of the triangle is 24 square units.<|im_end|>
[ { "content": "Can you find me some news articles about the recent Mars Rover landing?", "role": "user" }, { "content": "{\"name\": \"search_news_articles\", \"arguments\": {\"keywords\": [\"Mars Rover landing\"], \"language\": \"English\"}}", "role": "assistant" }, { "content": "{\"articles\": [{\"title\": \"Perseverance Rover Lands on Mars\", \"source\": \"NASA\", \"date\": \"2021-02-18\", \"url\": \"https://www.nasa.gov/perseverance-rover-lands\"}, {\"title\": \"Mars Rover Landing: Perseverance's New Home\", \"source\": \"BBC\", \"date\": \"2021-02-19\", \"url\": \"https://www.bbc.com/mars-rover-landing\"}]}", "role": "tool" }, { "content": "I found some articles for you. The first one is \"Perseverance Rover Lands on Mars\" from NASA, published on 2021-02-18. You can read it [here](https://www.nasa.gov/perseverance-rover-lands). The second one is \"Mars Rover Landing: Perseverance's New Home\" from BBC, published on 2021-02-19. You can read it [here](https://www.bbc.com/mars-rover-landing).", "role": "assistant" }, { "content": "That's great! Can you also find articles about the Mars Rover in French?", "role": "user" }, { "content": "{\"name\": \"search_news_articles\", \"arguments\": {\"keywords\": [\"Mars Rover landing\"], \"language\": \"French\"}}", "role": "assistant" }, { "content": "{\"articles\": [{\"title\": \"Atterrissage du Rover Perseverance sur Mars\", \"source\": \"Le Monde\", \"date\": \"2021-02-18\", \"url\": \"https://www.lemonde.fr/atterrissage-rover-perseverance\"}, {\"title\": \"Le Rover Perseverance a atterri sur Mars\", \"source\": \"France 24\", \"date\": \"2021-02-19\", \"url\": \"https://www.france24.com/rover-perseverance-atterri-mars\"}]}", "role": "tool" }, { "content": "I found some articles in French for you. The first one is \"Atterrissage du Rover Perseverance sur Mars\" from Le Monde, published on 2021-02-18. You can read it [here](https://www.lemonde.fr/atterrissage-rover-perseverance). The second one is \"Le Rover Perseverance a atterri sur Mars\" from France 24, published on 2021-02-19. You can read it [here](https://www.france24.com/rover-perseverance-atterri-mars).", "role": "assistant" } ]
[{"name": "search_news_articles", "description": "Search for news articles based on keywords", "parameters": {"type": "object", "properties": {"keywords": {"type": "array", "items": {"type": "string"}, "description": "The keywords to search for"}, "language": {"type": "string", "description": "The language of the news articles"}, "date": {"type": "string", "format": "date", "description": "The date range for the news articles"}}, "required": ["keywords"]}}, {"name": "create_invoice", "description": "Create an invoice for a customer", "parameters": {"type": "object", "properties": {"customer_name": {"type": "string", "description": "The name of the customer"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "description": "The item name"}, "quantity": {"type": "integer", "description": "The quantity of the item"}, "price": {"type": "number", "description": "The price of the item"}}, "required": ["name", "quantity", "price"]}}}, "required": ["customer_name", "items"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "search_news_articles", "description": "Search for news articles based on keywords", "parameters": {"type": "object", "properties": {"keywords": {"type": "array", "items": {"type": "string"}, "description": "The keywords to search for"}, "language": {"type": "string", "description": "The language of the news articles"}, "date": {"type": "string", "format": "date", "description": "The date range for the news articles"}}, "required": ["keywords"]}} {"name": "create_invoice", "description": "Create an invoice for a customer", "parameters": {"type": "object", "properties": {"customer_name": {"type": "string", "description": "The name of the customer"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "description": "The item name"}, "quantity": {"type": "integer", "description": "The quantity of the item"}, "price": {"type": "number", "description": "The price of the item"}}, "required": ["name", "quantity", "price"]}}}, "required": ["customer_name", "items"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you find me some news articles about the recent Mars Rover landing?<|im_end|> <|im_start|>assistant {"name": "search_news_articles", "arguments": {"keywords": ["Mars Rover landing"], "language": "English"}}<|im_end|> <|im_start|>user <tool_response> {"articles": [{"title": "Perseverance Rover Lands on Mars", "source": "NASA", "date": "2021-02-18", "url": "https://www.nasa.gov/perseverance-rover-lands"}, {"title": "Mars Rover Landing: Perseverance's New Home", "source": "BBC", "date": "2021-02-19", "url": "https://www.bbc.com/mars-rover-landing"}]} </tool_response><|im_end|> <|im_start|>assistant I found some articles for you. The first one is "Perseverance Rover Lands on Mars" from NASA, published on 2021-02-18. You can read it [here](https://www.nasa.gov/perseverance-rover-lands). The second one is "Mars Rover Landing: Perseverance's New Home" from BBC, published on 2021-02-19. You can read it [here](https://www.bbc.com/mars-rover-landing).<|im_end|> <|im_start|>user That's great! Can you also find articles about the Mars Rover in French?<|im_end|> <|im_start|>assistant {"name": "search_news_articles", "arguments": {"keywords": ["Mars Rover landing"], "language": "French"}}<|im_end|> <|im_start|>user <tool_response> {"articles": [{"title": "Atterrissage du Rover Perseverance sur Mars", "source": "Le Monde", "date": "2021-02-18", "url": "https://www.lemonde.fr/atterrissage-rover-perseverance"}, {"title": "Le Rover Perseverance a atterri sur Mars", "source": "France 24", "date": "2021-02-19", "url": "https://www.france24.com/rover-perseverance-atterri-mars"}]} </tool_response><|im_end|> <|im_start|>assistant I found some articles in French for you. The first one is "Atterrissage du Rover Perseverance sur Mars" from Le Monde, published on 2021-02-18. You can read it [here](https://www.lemonde.fr/atterrissage-rover-perseverance). The second one is "Le Rover Perseverance a atterri sur Mars" from France 24, published on 2021-02-19. You can read it [here](https://www.france24.com/rover-perseverance-atterri-mars).<|im_end|>
[ { "content": "Can you please book a flight for me from New York to London?", "role": "user" }, { "content": "I'm sorry, but I'm unable to assist with booking flights as it's an external task. I don't have a function provided for that task. However, I can help you calculate the tip on a bill.", "role": "assistant" } ]
[{"name": "calculate_tip", "description": "Calculate the tip amount based on bill total and a specified percentage", "parameters": {"type": "object", "properties": {"bill_total": {"type": "number", "description": "The total amount of the bill"}, "tip_percentage": {"type": "number", "description": "The percentage of the bill to be tipped"}}, "required": ["bill_total", "tip_percentage"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_tip", "description": "Calculate the tip amount based on bill total and a specified percentage", "parameters": {"type": "object", "properties": {"bill_total": {"type": "number", "description": "The total amount of the bill"}, "tip_percentage": {"type": "number", "description": "The percentage of the bill to be tipped"}}, "required": ["bill_total", "tip_percentage"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you please book a flight for me from New York to London?<|im_end|> <|im_start|>assistant I'm sorry, but I'm unable to assist with booking flights as it's an external task. I don't have a function provided for that task. However, I can help you calculate the tip on a bill.<|im_end|>
[ { "content": "I need to create a note for my meeting tomorrow.", "role": "user" }, { "content": "Sure, I can help with that. What would you like the title and content of the note to be?", "role": "assistant" }, { "content": "The title should be \"Team Meeting\" and the content should be \"Discuss project updates, budget allocation and next steps.\"", "role": "user" }, { "content": "{\"name\": \"create_note\", \"arguments\": {\"title\": \"Team Meeting\", \"content\": \"Discuss project updates, budget allocation and next steps.\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Note created successfully\", \"note\": {\"title\": \"Team Meeting\", \"content\": \"Discuss project updates, budget allocation and next steps.\"}}", "role": "tool" }, { "content": "Your note titled \"Team Meeting\" has been created successfully. The content of the note is \"Discuss project updates, budget allocation and next steps.\"", "role": "assistant" } ]
[{"name": "create_note", "description": "Create a new note", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the note"}, "content": {"type": "string", "description": "The content of the note"}}, "required": ["title", "content"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "create_note", "description": "Create a new note", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the note"}, "content": {"type": "string", "description": "The content of the note"}}, "required": ["title", "content"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to create a note for my meeting tomorrow.<|im_end|> <|im_start|>assistant Sure, I can help with that. What would you like the title and content of the note to be?<|im_end|> <|im_start|>user The title should be "Team Meeting" and the content should be "Discuss project updates, budget allocation and next steps."<|im_end|> <|im_start|>assistant {"name": "create_note", "arguments": {"title": "Team Meeting", "content": "Discuss project updates, budget allocation and next steps."}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Note created successfully", "note": {"title": "Team Meeting", "content": "Discuss project updates, budget allocation and next steps."}} </tool_response><|im_end|> <|im_start|>assistant Your note titled "Team Meeting" has been created successfully. The content of the note is "Discuss project updates, budget allocation and next steps."<|im_end|>
[ { "content": "Hi, I need a new password. Can you generate a random one for me?", "role": "user" }, { "content": "Of course, I can help with that. How long would you like your password to be?", "role": "assistant" }, { "content": "I would like it to be 12 characters long.", "role": "user" }, { "content": "{\"name\": \"generate_random_password\", \"arguments\": {\"length\": 12}}", "role": "assistant" }, { "content": "{\"password\": \"aBc123XyZ789\"}", "role": "tool" }, { "content": "Here is your new password: aBc123XyZ789. Please make sure to save it in a secure place.", "role": "assistant" } ]
[{"name": "generate_random_password", "description": "Generate a random password", "parameters": {"type": "object", "properties": {"length": {"type": "integer", "description": "The length of the password"}}, "required": ["length"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "generate_random_password", "description": "Generate a random password", "parameters": {"type": "object", "properties": {"length": {"type": "integer", "description": "The length of the password"}}, "required": ["length"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need a new password. Can you generate a random one for me?<|im_end|> <|im_start|>assistant Of course, I can help with that. How long would you like your password to be?<|im_end|> <|im_start|>user I would like it to be 12 characters long.<|im_end|> <|im_start|>assistant {"name": "generate_random_password", "arguments": {"length": 12}}<|im_end|> <|im_start|>user <tool_response> {"password": "aBc123XyZ789"} </tool_response><|im_end|> <|im_start|>assistant Here is your new password: aBc123XyZ789. Please make sure to save it in a secure place.<|im_end|>
[ { "content": "I need to create a new event in my calendar.", "role": "user" }, { "content": "Sure, I can help with that. Could you please provide me with the title, start time, and end time of the event?", "role": "assistant" }, { "content": "The title is \"Project Meeting\", the start time is \"2022-04-15T10:00:00\", and the end time is \"2022-04-15T11:00:00\".", "role": "user" }, { "content": "{\"name\": \"create_calendar_event\", \"arguments\": {\"title\": \"Project Meeting\", \"start_time\": \"2022-04-15T10:00:00\", \"end_time\": \"2022-04-15T11:00:00\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Event 'Project Meeting' has been successfully created for the time slot 2022-04-15T10:00:00 to 2022-04-15T11:00:00\"}", "role": "tool" }, { "content": "The event \"Project Meeting\" has been successfully created in your calendar for the time slot from 10:00 to 11:00 on April 15, 2022.", "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", "description": "The start time of the event"}, "end_time": {"type": "string", "description": "The end time of the event"}}, "required": ["title", "start_time", "end_time"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"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", "description": "The start time of the event"}, "end_time": {"type": "string", "description": "The end time of the event"}}, "required": ["title", "start_time", "end_time"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to create a new event in my calendar.<|im_end|> <|im_start|>assistant Sure, I can help with that. Could you please provide me with the title, start time, and end time of the event?<|im_end|> <|im_start|>user The title is "Project Meeting", the start time is "2022-04-15T10:00:00", and the end time is "2022-04-15T11:00:00".<|im_end|> <|im_start|>assistant {"name": "create_calendar_event", "arguments": {"title": "Project Meeting", "start_time": "2022-04-15T10:00:00", "end_time": "2022-04-15T11:00:00"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Event 'Project Meeting' has been successfully created for the time slot 2022-04-15T10:00:00 to 2022-04-15T11:00:00"} </tool_response><|im_end|> <|im_start|>assistant The event "Project Meeting" has been successfully created in your calendar for the time slot from 10:00 to 11:00 on April 15, 2022.<|im_end|>
[ { "content": "Hi, I need to check if a number is prime. Can you help?", "role": "user" }, { "content": "Of course! Please provide me with the number you want to check.", "role": "assistant" }, { "content": "The number is 17.", "role": "user" }, { "content": "{\"name\": \"check_prime_number\", \"arguments\": {\"number\": 17}}", "role": "assistant" }, { "content": "{\"result\": true, \"message\": \"The number 17 is a prime number.\"}", "role": "tool" }, { "content": "The number 17 is a prime number.", "role": "assistant" }, { "content": "Great! Can we check another number?", "role": "user" }, { "content": "Absolutely! Please provide the number.", "role": "assistant" }, { "content": "Let's check 20.", "role": "user" }, { "content": "{\"name\": \"check_prime_number\", \"arguments\": {\"number\": 20}}", "role": "assistant" }, { "content": "{\"result\": false, \"message\": \"The number 20 is not a prime number.\"}", "role": "tool" }, { "content": "The number 20 is not a prime number.", "role": "assistant" }, { "content": "Thanks for the help!", "role": "user" }, { "content": "You're welcome! If you have any other numbers to check or need help with something else, feel free to ask.", "role": "assistant" } ]
[{"name": "check_prime_number", "description": "Check if a number is prime", "parameters": {"type": "object", "properties": {"number": {"type": "integer", "description": "The number to check"}}, "required": ["number"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "check_prime_number", "description": "Check if a number is prime", "parameters": {"type": "object", "properties": {"number": {"type": "integer", "description": "The number to check"}}, "required": ["number"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to check if a number is prime. Can you help?<|im_end|> <|im_start|>assistant Of course! Please provide me with the number you want to check.<|im_end|> <|im_start|>user The number is 17.<|im_end|> <|im_start|>assistant {"name": "check_prime_number", "arguments": {"number": 17}}<|im_end|> <|im_start|>user <tool_response> {"result": true, "message": "The number 17 is a prime number."} </tool_response><|im_end|> <|im_start|>assistant The number 17 is a prime number.<|im_end|> <|im_start|>user Great! Can we check another number?<|im_end|> <|im_start|>assistant Absolutely! Please provide the number.<|im_end|> <|im_start|>user Let's check 20.<|im_end|> <|im_start|>assistant {"name": "check_prime_number", "arguments": {"number": 20}}<|im_end|> <|im_start|>user <tool_response> {"result": false, "message": "The number 20 is not a prime number."} </tool_response><|im_end|> <|im_start|>assistant The number 20 is not a prime number.<|im_end|> <|im_start|>user Thanks for the help!<|im_end|> <|im_start|>assistant You're welcome! If you have any other numbers to check or need help with something else, feel free to ask.<|im_end|>
[ { "content": "Hi, I need to calculate my BMI. I weigh 70 kilograms and my height is 1.75 meters.", "role": "user" }, { "content": "{\"name\": \"calculate_bmi\", \"arguments\": {\"weight\": 70, \"height\": 1.75}}", "role": "assistant" }, { "content": "{\"bmi\": 22.86}", "role": "tool" }, { "content": "Your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height.", "role": "assistant" } ]
[{"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight in kilograms"}, "height": {"type": "number", "description": "The height in meters"}}, "required": ["weight", "height"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight in kilograms"}, "height": {"type": "number", "description": "The height in meters"}}, "required": ["weight", "height"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to calculate my BMI. I weigh 70 kilograms and my height is 1.75 meters.<|im_end|> <|im_start|>assistant {"name": "calculate_bmi", "arguments": {"weight": 70, "height": 1.75}}<|im_end|> <|im_start|>user <tool_response> {"bmi": 22.86} </tool_response><|im_end|> <|im_start|>assistant Your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height.<|im_end|>
[ { "content": "Hi, I was born on 1990-05-15. Can you tell me how old I am today?", "role": "user" }, { "content": "{\"name\": \"calculate_age\", \"arguments\": {\"date_of_birth\": \"1990-05-15\"}}", "role": "assistant" }, { "content": "{\"age\": 31}", "role": "tool" }, { "content": "Based on the date of birth you provided, you are 31 years old today.", "role": "assistant" } ]
[{"name": "calculate_age", "description": "Calculate the age based on date of birth", "parameters": {"type": "object", "properties": {"date_of_birth": {"type": "string", "format": "date", "description": "The date of birth in YYYY-MM-DD format"}}, "required": ["date_of_birth"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_age", "description": "Calculate the age based on date of birth", "parameters": {"type": "object", "properties": {"date_of_birth": {"type": "string", "format": "date", "description": "The date of birth in YYYY-MM-DD format"}}, "required": ["date_of_birth"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I was born on 1990-05-15. Can you tell me how old I am today?<|im_end|> <|im_start|>assistant {"name": "calculate_age", "arguments": {"date_of_birth": "1990-05-15"}}<|im_end|> <|im_start|>user <tool_response> {"age": 31} </tool_response><|im_end|> <|im_start|>assistant Based on the date of birth you provided, you are 31 years old today.<|im_end|>
[ { "content": "What's the current stock price of Apple?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"company\": \"Apple\"}}", "role": "assistant" }, { "content": "{\"stock_price\": \"$150.75\"}", "role": "tool" }, { "content": "The current stock price of Apple is $150.75.", "role": "assistant" }, { "content": "And what about Microsoft?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"company\": \"Microsoft\"}}", "role": "assistant" }, { "content": "{\"stock_price\": \"$210.22\"}", "role": "tool" }, { "content": "The current stock price of Microsoft is $210.22.", "role": "assistant" }, { "content": "Great, thanks for the information.", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "get_stock_price", "description": "Get the current stock price of a specified company", "parameters": {"type": "object", "properties": {"company": {"type": "string", "description": "The name of the company", "enum": ["Apple", "Google", "Microsoft"]}}, "required": ["company"]}}, {"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"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_stock_price", "description": "Get the current stock price of a specified company", "parameters": {"type": "object", "properties": {"company": {"type": "string", "description": "The name of the company", "enum": ["Apple", "Google", "Microsoft"]}}, "required": ["company"]}} {"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"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user What's the current stock price of Apple?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"company": "Apple"}}<|im_end|> <|im_start|>user <tool_response> {"stock_price": "$150.75"} </tool_response><|im_end|> <|im_start|>assistant The current stock price of Apple is $150.75.<|im_end|> <|im_start|>user And what about Microsoft?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"company": "Microsoft"}}<|im_end|> <|im_start|>user <tool_response> {"stock_price": "$210.22"} </tool_response><|im_end|> <|im_start|>assistant The current stock price of Microsoft is $210.22.<|im_end|> <|im_start|>user Great, thanks for the information.<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Hi, I need to encrypt a text using the AES algorithm. The text is \"Hello World\".", "role": "user" }, { "content": "{\"name\": \"encrypt_text\", \"arguments\": {\"text\": \"Hello World\", \"algorithm\": \"AES\"}}", "role": "assistant" }, { "content": "{\"encrypted_text\": \"U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y=\"}", "role": "tool" }, { "content": "Your encrypted text using the AES algorithm is \"U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y=\".", "role": "assistant" } ]
[{"name": "encrypt_text", "description": "Encrypt text using a specific encryption algorithm", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to be encrypted"}, "algorithm": {"type": "string", "description": "The encryption algorithm to be used"}}, "required": ["text", "algorithm"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "encrypt_text", "description": "Encrypt text using a specific encryption algorithm", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to be encrypted"}, "algorithm": {"type": "string", "description": "The encryption algorithm to be used"}}, "required": ["text", "algorithm"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to encrypt a text using the AES algorithm. The text is "Hello World".<|im_end|> <|im_start|>assistant {"name": "encrypt_text", "arguments": {"text": "Hello World", "algorithm": "AES"}}<|im_end|> <|im_start|>user <tool_response> {"encrypted_text": "U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y="} </tool_response><|im_end|> <|im_start|>assistant Your encrypted text using the AES algorithm is "U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y=".<|im_end|>
[ { "content": "Can you book a flight for me from New York to London?", "role": "user" }, { "content": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to the functions provided to me, such as converting currency. If you need help with currency conversion, feel free to ask!", "role": "assistant" } ]
[{"name": "convert_currency", "description": "Convert currency from one type to another", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "The amount to convert"}, "from_currency": {"type": "string", "description": "The currency to convert from"}, "to_currency": {"type": "string", "description": "The currency to convert to"}}, "required": ["amount", "from_currency", "to_currency"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "convert_currency", "description": "Convert currency from one type to another", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "The amount to convert"}, "from_currency": {"type": "string", "description": "The currency to convert from"}, "to_currency": {"type": "string", "description": "The currency to convert to"}}, "required": ["amount", "from_currency", "to_currency"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you book a flight for me from New York to London?<|im_end|> <|im_start|>assistant I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to the functions provided to me, such as converting currency. If you need help with currency conversion, feel free to ask!<|im_end|>
[ { "content": "Hi, can you tell me how old I am? My birthdate is 1990-05-15.", "role": "user" }, { "content": "{\"name\": \"calculate_age\", \"arguments\": {\"birthdate\": \"1990-05-15\"}}", "role": "assistant" }, { "content": "{\"age\": 31}", "role": "tool" }, { "content": "According to my calculations, you are 31 years old.", "role": "assistant" }, { "content": "Oh, time flies! Thank you for the information.", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "calculate_age", "description": "Calculate a person's age based on birthdate", "parameters": {"type": "object", "properties": {"birthdate": {"type": "string", "description": "The birthdate of the person"}}, "required": ["birthdate"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_age", "description": "Calculate a person's age based on birthdate", "parameters": {"type": "object", "properties": {"birthdate": {"type": "string", "description": "The birthdate of the person"}}, "required": ["birthdate"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, can you tell me how old I am? My birthdate is 1990-05-15.<|im_end|> <|im_start|>assistant {"name": "calculate_age", "arguments": {"birthdate": "1990-05-15"}}<|im_end|> <|im_start|>user <tool_response> {"age": 31} </tool_response><|im_end|> <|im_start|>assistant According to my calculations, you are 31 years old.<|im_end|> <|im_start|>user Oh, time flies! Thank you for the information.<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Hi, I was born on 1990-05-15. Can you tell me how old I am today?", "role": "user" }, { "content": "{\"name\": \"calculate_age\", \"arguments\": {\"date_of_birth\": \"1990-05-15\"}}", "role": "assistant" }, { "content": "{\"age\": 31}", "role": "tool" }, { "content": "Based on the date of birth you provided, you are 31 years old today.", "role": "assistant" } ]
[{"name": "calculate_age", "description": "Calculate the age based on date of birth", "parameters": {"type": "object", "properties": {"date_of_birth": {"type": "string", "description": "The date of birth (yyyy-mm-dd)"}}, "required": ["date_of_birth"]}}, {"name": "generate_password", "description": "Generate a random password", "parameters": {"type": "object", "properties": {"length": {"type": "integer", "description": "The length of the password"}, "include_numbers": {"type": "boolean", "description": "Include numbers in the password"}, "include_symbols": {"type": "boolean", "description": "Include symbols in the password"}}, "required": ["length"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_age", "description": "Calculate the age based on date of birth", "parameters": {"type": "object", "properties": {"date_of_birth": {"type": "string", "description": "The date of birth (yyyy-mm-dd)"}}, "required": ["date_of_birth"]}} {"name": "generate_password", "description": "Generate a random password", "parameters": {"type": "object", "properties": {"length": {"type": "integer", "description": "The length of the password"}, "include_numbers": {"type": "boolean", "description": "Include numbers in the password"}, "include_symbols": {"type": "boolean", "description": "Include symbols in the password"}}, "required": ["length"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I was born on 1990-05-15. Can you tell me how old I am today?<|im_end|> <|im_start|>assistant {"name": "calculate_age", "arguments": {"date_of_birth": "1990-05-15"}}<|im_end|> <|im_start|>user <tool_response> {"age": 31} </tool_response><|im_end|> <|im_start|>assistant Based on the date of birth you provided, you are 31 years old today.<|im_end|>
[ { "content": "I need to send an email to my boss. Can you help me with that?", "role": "user" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the body text?", "role": "assistant" }, { "content": "Sure, the recipient's email is boss@company.com. The subject is \"Monthly Report\" and the body text is \"Dear Boss, Please find attached the monthly report for your review. Regards, [User's Name]\".", "role": "user" }, { "content": "{\"name\": \"send_email\", \"arguments\": {\"recipient\": \"boss@company.com\", \"subject\": \"Monthly Report\", \"body\": \"Dear Boss, Please find attached the monthly report for your review. Regards, [User's Name]\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Email has been sent successfully\"}", "role": "tool" }, { "content": "The email has been sent successfully to your boss. Is there anything else you need help with?", "role": "assistant" } ]
[{"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "body": {"type": "string", "description": "The body text of the email"}}, "required": ["recipient", "subject", "body"]}}, {"name": "search_movie", "description": "Search for a movie by its title", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}}, "required": ["title"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "body": {"type": "string", "description": "The body text of the email"}}, "required": ["recipient", "subject", "body"]}} {"name": "search_movie", "description": "Search for a movie by its title", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}}, "required": ["title"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to send an email to my boss. Can you help me with that?<|im_end|> <|im_start|>assistant Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the body text?<|im_end|> <|im_start|>user Sure, the recipient's email is boss@company.com. The subject is "Monthly Report" and the body text is "Dear Boss, Please find attached the monthly report for your review. Regards, [User's Name]".<|im_end|> <|im_start|>assistant {"name": "send_email", "arguments": {"recipient": "boss@company.com", "subject": "Monthly Report", "body": "Dear Boss, Please find attached the monthly report for your review. Regards, [User's Name]"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Email has been sent successfully"} </tool_response><|im_end|> <|im_start|>assistant The email has been sent successfully to your boss. Is there anything else you need help with?<|im_end|>
[ { "content": "I need to send an email to my boss. Can you help me with that?", "role": "user" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you wish to send?", "role": "assistant" }, { "content": "Sure, the email address is boss@company.com. The subject is \"Project Update\" and the message is \"Dear Boss, I have completed the project as per the given deadline. Kindly review it. Regards, [User's Name]\".", "role": "user" }, { "content": "{\"name\": \"send_email\", \"arguments\": {\"to\": \"boss@company.com\", \"subject\": \"Project Update\", \"message\": \"Dear Boss, I have completed the project as per the given deadline. Kindly review it. Regards, [User's Name]\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Email has been sent successfully\"}", "role": "tool" }, { "content": "The email has been sent successfully to your boss. Is there anything else you need help with?", "role": "assistant" } ]
[{"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"to": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email"}}, "required": ["to", "subject", "message"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"to": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email"}}, "required": ["to", "subject", "message"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to send an email to my boss. Can you help me with that?<|im_end|> <|im_start|>assistant Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you wish to send?<|im_end|> <|im_start|>user Sure, the email address is boss@company.com. The subject is "Project Update" and the message is "Dear Boss, I have completed the project as per the given deadline. Kindly review it. Regards, [User's Name]".<|im_end|> <|im_start|>assistant {"name": "send_email", "arguments": {"to": "boss@company.com", "subject": "Project Update", "message": "Dear Boss, I have completed the project as per the given deadline. Kindly review it. Regards, [User's Name]"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Email has been sent successfully"} </tool_response><|im_end|> <|im_start|>assistant The email has been sent successfully to your boss. Is there anything else you need help with?<|im_end|>
[ { "content": "I am looking for a book but I can't remember the title. The author's name is George Orwell.", "role": "user" }, { "content": "{\"name\": \"search_book\", \"arguments\": {\"query\": \"George Orwell\"}}", "role": "assistant" }, { "content": "{\"results\": [{\"title\": \"1984\", \"author\": \"George Orwell\", \"genre\": \"Dystopian, Political Fiction\"}, {\"title\": \"Animal Farm\", \"author\": \"George Orwell\", \"genre\": \"Allegorical novella\"}]}", "role": "tool" }, { "content": "I found two books by George Orwell. The first one is \"1984\", which is a Dystopian, Political Fiction. The second one is \"Animal Farm\", an Allegorical novella.", "role": "assistant" }, { "content": "Oh yes, I was looking for Animal Farm. Thank you!", "role": "user" }, { "content": "You're welcome! If you need help with anything else, feel free to ask.", "role": "assistant" } ]
[{"name": "search_book", "description": "Search for a book based on title, author, or genre", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query - book title, author, or genre"}}, "required": ["query"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "search_book", "description": "Search for a book based on title, author, or genre", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query - book title, author, or genre"}}, "required": ["query"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I am looking for a book but I can't remember the title. The author's name is George Orwell.<|im_end|> <|im_start|>assistant {"name": "search_book", "arguments": {"query": "George Orwell"}}<|im_end|> <|im_start|>user <tool_response> {"results": [{"title": "1984", "author": "George Orwell", "genre": "Dystopian, Political Fiction"}, {"title": "Animal Farm", "author": "George Orwell", "genre": "Allegorical novella"}]} </tool_response><|im_end|> <|im_start|>assistant I found two books by George Orwell. The first one is "1984", which is a Dystopian, Political Fiction. The second one is "Animal Farm", an Allegorical novella.<|im_end|> <|im_start|>user Oh yes, I was looking for Animal Farm. Thank you!<|im_end|> <|im_start|>assistant You're welcome! If you need help with anything else, feel free to ask.<|im_end|>
[ { "content": "Can you order a pizza for me?", "role": "user" }, { "content": "I'm sorry, but I don't have the capability to perform external tasks like ordering a pizza. My current function is to assist with creating notes. If you need help with that, feel free to ask!", "role": "assistant" } ]
[{"name": "create_note", "description": "Create a new note", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the note"}, "content": {"type": "string", "description": "The content of the note"}}, "required": ["title", "content"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "create_note", "description": "Create a new note", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the note"}, "content": {"type": "string", "description": "The content of the note"}}, "required": ["title", "content"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you order a pizza for me?<|im_end|> <|im_start|>assistant I'm sorry, but I don't have the capability to perform external tasks like ordering a pizza. My current function is to assist with creating notes. If you need help with that, feel free to ask!<|im_end|>
[ { "content": "Hi, I need to convert 500 USD to Euros. Can you help me with that?", "role": "user" }, { "content": "{\"name\": \"convert_currency\", \"arguments\": {\"amount\": 500, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}}", "role": "assistant" }, { "content": "{\"converted_amount\": 425.50, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}", "role": "tool" }, { "content": "Sure, 500 USD is approximately 425.50 Euros.", "role": "assistant" }, { "content": "That's great! Now, I also need to convert 1000 Euros to Japanese Yen.", "role": "user" }, { "content": "{\"name\": \"convert_currency\", \"arguments\": {\"amount\": 1000, \"from_currency\": \"EUR\", \"to_currency\": \"JPY\"}}", "role": "assistant" }, { "content": "{\"converted_amount\": 130000, \"from_currency\": \"EUR\", \"to_currency\": \"JPY\"}", "role": "tool" }, { "content": "1000 Euros is approximately 130,000 Japanese Yen.", "role": "assistant" } ]
[{"name": "convert_currency", "description": "Convert a certain amount from one currency to another", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "The amount to be converted"}, "from_currency": {"type": "string", "description": "The currency to convert from"}, "to_currency": {"type": "string", "description": "The currency to convert to"}}, "required": ["amount", "from_currency", "to_currency"]}}, {"name": "calculate_tip", "description": "Calculate the tip amount for a restaurant bill", "parameters": {"type": "object", "properties": {"bill_amount": {"type": "number", "description": "The total bill amount"}, "tip_percentage": {"type": "number", "description": "The percentage of tip to be given"}}, "required": ["bill_amount", "tip_percentage"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "convert_currency", "description": "Convert a certain amount from one currency to another", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "The amount to be converted"}, "from_currency": {"type": "string", "description": "The currency to convert from"}, "to_currency": {"type": "string", "description": "The currency to convert to"}}, "required": ["amount", "from_currency", "to_currency"]}} {"name": "calculate_tip", "description": "Calculate the tip amount for a restaurant bill", "parameters": {"type": "object", "properties": {"bill_amount": {"type": "number", "description": "The total bill amount"}, "tip_percentage": {"type": "number", "description": "The percentage of tip to be given"}}, "required": ["bill_amount", "tip_percentage"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to convert 500 USD to Euros. Can you help me with that?<|im_end|> <|im_start|>assistant {"name": "convert_currency", "arguments": {"amount": 500, "from_currency": "USD", "to_currency": "EUR"}}<|im_end|> <|im_start|>user <tool_response> {"converted_amount": 425.50, "from_currency": "USD", "to_currency": "EUR"} </tool_response><|im_end|> <|im_start|>assistant Sure, 500 USD is approximately 425.50 Euros.<|im_end|> <|im_start|>user That's great! Now, I also need to convert 1000 Euros to Japanese Yen.<|im_end|> <|im_start|>assistant {"name": "convert_currency", "arguments": {"amount": 1000, "from_currency": "EUR", "to_currency": "JPY"}}<|im_end|> <|im_start|>user <tool_response> {"converted_amount": 130000, "from_currency": "EUR", "to_currency": "JPY"} </tool_response><|im_end|> <|im_start|>assistant 1000 Euros is approximately 130,000 Japanese Yen.<|im_end|>
[ { "content": "I need to create a new event in my calendar.", "role": "user" }, { "content": "Sure, I can help with that. Could you please provide me with the title, start time, and end time of the event?", "role": "assistant" }, { "content": "The title is \"Project Meeting\", start time is \"2022-04-15T10:00:00\", and end time is \"2022-04-15T12:00:00\".", "role": "user" }, { "content": "{\"name\": \"create_calendar_event\", \"arguments\": {\"title\": \"Project Meeting\", \"start_time\": \"2022-04-15T10:00:00\", \"end_time\": \"2022-04-15T12:00:00\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Event 'Project Meeting' has been successfully created for the time slot 2022-04-15T10:00:00 to 2022-04-15T12:00:00\"}", "role": "tool" }, { "content": "The event \"Project Meeting\" has been successfully created in your calendar for the time slot from 10:00 AM to 12:00 PM on 15th April 2022.", "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", "description": "The start time of the event"}, "end_time": {"type": "string", "description": "The end time of the event"}}, "required": ["title", "start_time", "end_time"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"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", "description": "The start time of the event"}, "end_time": {"type": "string", "description": "The end time of the event"}}, "required": ["title", "start_time", "end_time"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to create a new event in my calendar.<|im_end|> <|im_start|>assistant Sure, I can help with that. Could you please provide me with the title, start time, and end time of the event?<|im_end|> <|im_start|>user The title is "Project Meeting", start time is "2022-04-15T10:00:00", and end time is "2022-04-15T12:00:00".<|im_end|> <|im_start|>assistant {"name": "create_calendar_event", "arguments": {"title": "Project Meeting", "start_time": "2022-04-15T10:00:00", "end_time": "2022-04-15T12:00:00"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Event 'Project Meeting' has been successfully created for the time slot 2022-04-15T10:00:00 to 2022-04-15T12:00:00"} </tool_response><|im_end|> <|im_start|>assistant The event "Project Meeting" has been successfully created in your calendar for the time slot from 10:00 AM to 12:00 PM on 15th April 2022.<|im_end|>
[ { "content": "Hey, can you tell me the current price of Apple's stock?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"symbol\": \"AAPL\"}}", "role": "assistant" }, { "content": "{\"price\": 150.75}", "role": "tool" }, { "content": "The current price of Apple's stock (AAPL) is $150.75.", "role": "assistant" }, { "content": "That's great! What about Microsoft?", "role": "user" }, { "content": "{\"name\": \"get_stock_price\", \"arguments\": {\"symbol\": \"MSFT\"}}", "role": "assistant" }, { "content": "{\"price\": 216.25}", "role": "tool" }, { "content": "The current price of Microsoft's stock (MSFT) is $216.25.", "role": "assistant" }, { "content": "Thanks for the information!", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "get_stock_price", "description": "Get the current stock price", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "The stock symbol"}}, "required": ["symbol"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_stock_price", "description": "Get the current stock price", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "The stock symbol"}}, "required": ["symbol"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hey, can you tell me the current price of Apple's stock?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"symbol": "AAPL"}}<|im_end|> <|im_start|>user <tool_response> {"price": 150.75} </tool_response><|im_end|> <|im_start|>assistant The current price of Apple's stock (AAPL) is $150.75.<|im_end|> <|im_start|>user That's great! What about Microsoft?<|im_end|> <|im_start|>assistant {"name": "get_stock_price", "arguments": {"symbol": "MSFT"}}<|im_end|> <|im_start|>user <tool_response> {"price": 216.25} </tool_response><|im_end|> <|im_start|>assistant The current price of Microsoft's stock (MSFT) is $216.25.<|im_end|> <|im_start|>user Thanks for the information!<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Hi, I need to calculate the area of a rectangle. The length is 10 units and the width is 5 units.", "role": "user" }, { "content": "{\"name\": \"calculate_rectangle_area\", \"arguments\": {\"length\": 10, \"width\": 5}}", "role": "assistant" }, { "content": "{\"area\": 50}", "role": "tool" }, { "content": "The area of the rectangle with length 10 units and width 5 units is 50 square units.", "role": "assistant" } ]
[{"name": "calculate_rectangle_area", "description": "Calculate the area of a rectangle", "parameters": {"type": "object", "properties": {"length": {"type": "number", "description": "The length of the rectangle"}, "width": {"type": "number", "description": "The width of the rectangle"}}, "required": ["length", "width"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_rectangle_area", "description": "Calculate the area of a rectangle", "parameters": {"type": "object", "properties": {"length": {"type": "number", "description": "The length of the rectangle"}, "width": {"type": "number", "description": "The width of the rectangle"}}, "required": ["length", "width"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to calculate the area of a rectangle. The length is 10 units and the width is 5 units.<|im_end|> <|im_start|>assistant {"name": "calculate_rectangle_area", "arguments": {"length": 10, "width": 5}}<|im_end|> <|im_start|>user <tool_response> {"area": 50} </tool_response><|im_end|> <|im_start|>assistant The area of the rectangle with length 10 units and width 5 units is 50 square units.<|im_end|>
[ { "content": "Can you order a pizza for me?", "role": "user" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to creating todo items.", "role": "assistant" } ]
[{"name": "create_todo", "description": "Create a new todo item", "parameters": {"type": "object", "properties": {"task": {"type": "string", "description": "The task description"}, "due_date": {"type": "string", "description": "The due date of the task"}}, "required": ["task", "due_date"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "create_todo", "description": "Create a new todo item", "parameters": {"type": "object", "properties": {"task": {"type": "string", "description": "The task description"}, "due_date": {"type": "string", "description": "The due date of the task"}}, "required": ["task", "due_date"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you order a pizza for me?<|im_end|> <|im_start|>assistant I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to creating todo items.<|im_end|>
[ { "content": "Hi, I need to send an email to my professor about the assignment due next week. Can you help me with that?", "role": "user" }, { "content": "Of course, I can help you with that. Please provide me with the recipient's email address, the subject of the email, and the message you want to send.", "role": "assistant" }, { "content": "The recipient's email is prof.john@university.com. The subject is \"Assignment Due Next Week\". And the message is \"Dear Professor John, I am writing to inquire about the assignment due next week. Could you please provide more details about it? Best, [User's Name]\".", "role": "user" }, { "content": "{\"name\": \"send_email\", \"arguments\": {\"recipient\": \"prof.john@university.com\", \"subject\": \"Assignment Due Next Week\", \"message\": \"Dear Professor John, I am writing to inquire about the assignment due next week. Could you please provide more details about it? Best, [User's Name]\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Email has been sent successfully.\"}", "role": "tool" }, { "content": "The email has been sent successfully to your professor.", "role": "assistant" }, { "content": "That's great! Can you also help me book a flight ticket for my upcoming trip?", "role": "user" }, { "content": "I'm sorry, but I currently don't have the capability to book flight tickets as it is an external task and no function has been provided for that task. I recommend using a trusted travel booking website or app for this purpose.", "role": "assistant" } ]
[{"name": "send_email", "description": "Send an email", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email message"}}, "required": ["recipient", "subject", "message"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "send_email", "description": "Send an email", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email message"}}, "required": ["recipient", "subject", "message"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to send an email to my professor about the assignment due next week. Can you help me with that?<|im_end|> <|im_start|>assistant Of course, I can help you with that. Please provide me with the recipient's email address, the subject of the email, and the message you want to send.<|im_end|> <|im_start|>user The recipient's email is prof.john@university.com. The subject is "Assignment Due Next Week". And the message is "Dear Professor John, I am writing to inquire about the assignment due next week. Could you please provide more details about it? Best, [User's Name]".<|im_end|> <|im_start|>assistant {"name": "send_email", "arguments": {"recipient": "prof.john@university.com", "subject": "Assignment Due Next Week", "message": "Dear Professor John, I am writing to inquire about the assignment due next week. Could you please provide more details about it? Best, [User's Name]"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Email has been sent successfully."} </tool_response><|im_end|> <|im_start|>assistant The email has been sent successfully to your professor.<|im_end|> <|im_start|>user That's great! Can you also help me book a flight ticket for my upcoming trip?<|im_end|> <|im_start|>assistant I'm sorry, but I currently don't have the capability to book flight tickets as it is an external task and no function has been provided for that task. I recommend using a trusted travel booking website or app for this purpose.<|im_end|>
[ { "content": "I am looking for a book but I can't remember the full title. It's something like \"Pride and...\"", "role": "user" }, { "content": "{\"name\": \"search_book\", \"arguments\": {\"title\": \"Pride and\"}}", "role": "assistant" }, { "content": "{\"results\": [{\"title\": \"Pride and Prejudice\", \"author\": \"Jane Austen\"}, {\"title\": \"Pride and Politics\", \"author\": \"Bertrice Small\"}, {\"title\": \"Pride and Passion\", \"author\": \"Charlotte Featherstone\"}]}", "role": "tool" }, { "content": "I found a few books that might match what you're looking for. Here they are:\n1. \"Pride and Prejudice\" by Jane Austen\n2. \"Pride and Politics\" by Bertrice Small\n3. \"Pride and Passion\" by Charlotte Featherstone", "role": "assistant" }, { "content": "Yes, it's the one by Jane Austen. Thank you!", "role": "user" }, { "content": "You're welcome! If you need help with anything else, feel free to ask.", "role": "assistant" } ]
[{"name": "search_book", "description": "Search for a book based on title or author", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the book"}, "author": {"type": "string", "description": "The author of the book"}}, "required": ["title"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "search_book", "description": "Search for a book based on title or author", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the book"}, "author": {"type": "string", "description": "The author of the book"}}, "required": ["title"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I am looking for a book but I can't remember the full title. It's something like "Pride and..."<|im_end|> <|im_start|>assistant {"name": "search_book", "arguments": {"title": "Pride and"}}<|im_end|> <|im_start|>user <tool_response> {"results": [{"title": "Pride and Prejudice", "author": "Jane Austen"}, {"title": "Pride and Politics", "author": "Bertrice Small"}, {"title": "Pride and Passion", "author": "Charlotte Featherstone"}]} </tool_response><|im_end|> <|im_start|>assistant I found a few books that might match what you're looking for. Here they are: 1. "Pride and Prejudice" by Jane Austen 2. "Pride and Politics" by Bertrice Small 3. "Pride and Passion" by Charlotte Featherstone<|im_end|> <|im_start|>user Yes, it's the one by Jane Austen. Thank you!<|im_end|> <|im_start|>assistant You're welcome! If you need help with anything else, feel free to ask.<|im_end|>
[ { "content": "Can you tell me about the movie \"Inception\"?", "role": "user" }, { "content": "{\"name\": \"get_movie_details\", \"arguments\": {\"title\": \"Inception\"}}", "role": "assistant" }, { "content": "{\"title\": \"Inception\", \"director\": \"Christopher Nolan\", \"release_year\": 2010, \"genre\": \"Science Fiction\", \"rating\": 8.8}", "role": "tool" }, { "content": "The movie \"Inception\" is a Science Fiction film directed by Christopher Nolan. It was released in the year 2010 and has a rating of 8.8.", "role": "assistant" }, { "content": "That's interesting. Can you tell me about the movie \"The Godfather\"?", "role": "user" }, { "content": "{\"name\": \"get_movie_details\", \"arguments\": {\"title\": \"The Godfather\"}}", "role": "assistant" }, { "content": "{\"title\": \"The Godfather\", \"director\": \"Francis Ford Coppola\", \"release_year\": 1972, \"genre\": \"Crime, Drama\", \"rating\": 9.2}", "role": "tool" }, { "content": "The movie \"The Godfather\" is a Crime, Drama film directed by Francis Ford Coppola. It was released in the year 1972 and has a rating of 9.2.", "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"}}, "required": ["title"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_movie_details", "description": "Get details about a movie", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}}, "required": ["title"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you tell me about the movie "Inception"?<|im_end|> <|im_start|>assistant {"name": "get_movie_details", "arguments": {"title": "Inception"}}<|im_end|> <|im_start|>user <tool_response> {"title": "Inception", "director": "Christopher Nolan", "release_year": 2010, "genre": "Science Fiction", "rating": 8.8} </tool_response><|im_end|> <|im_start|>assistant The movie "Inception" is a Science Fiction film directed by Christopher Nolan. It was released in the year 2010 and has a rating of 8.8.<|im_end|> <|im_start|>user That's interesting. Can you tell me about the movie "The Godfather"?<|im_end|> <|im_start|>assistant {"name": "get_movie_details", "arguments": {"title": "The Godfather"}}<|im_end|> <|im_start|>user <tool_response> {"title": "The Godfather", "director": "Francis Ford Coppola", "release_year": 1972, "genre": "Crime, Drama", "rating": 9.2} </tool_response><|im_end|> <|im_start|>assistant The movie "The Godfather" is a Crime, Drama film directed by Francis Ford Coppola. It was released in the year 1972 and has a rating of 9.2.<|im_end|>
[ { "content": "I need a random number between 1 and 100.", "role": "user" }, { "content": "{\"name\": \"generate_random_number\", \"arguments\": {\"min\": 1, \"max\": 100}}", "role": "assistant" }, { "content": "{\"result\": 42}", "role": "tool" }, { "content": "The random number generated between 1 and 100 is 42.", "role": "assistant" }, { "content": "Can you generate another random number but this time between 200 and 300?", "role": "user" }, { "content": "{\"name\": \"generate_random_number\", \"arguments\": {\"min\": 200, \"max\": 300}}", "role": "assistant" }, { "content": "{\"result\": 278}", "role": "tool" }, { "content": "The random number generated between 200 and 300 is 278.", "role": "assistant" }, { "content": "Great, thanks for the help!", "role": "user" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "assistant" } ]
[{"name": "generate_random_number", "description": "Generate a random number within a specified 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"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "generate_random_number", "description": "Generate a random number within a specified 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"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need a random number between 1 and 100.<|im_end|> <|im_start|>assistant {"name": "generate_random_number", "arguments": {"min": 1, "max": 100}}<|im_end|> <|im_start|>user <tool_response> {"result": 42} </tool_response><|im_end|> <|im_start|>assistant The random number generated between 1 and 100 is 42.<|im_end|> <|im_start|>user Can you generate another random number but this time between 200 and 300?<|im_end|> <|im_start|>assistant {"name": "generate_random_number", "arguments": {"min": 200, "max": 300}}<|im_end|> <|im_start|>user <tool_response> {"result": 278} </tool_response><|im_end|> <|im_start|>assistant The random number generated between 200 and 300 is 278.<|im_end|> <|im_start|>user Great, thanks for the help!<|im_end|> <|im_start|>assistant You're welcome! If you need anything else, feel free to ask.<|im_end|>
[ { "content": "Hi, I need to calculate my BMI. I am 1.75 meters tall and weigh 70 kilograms.", "role": "user" }, { "content": "{\"name\": \"calculate_bmi\", \"arguments\": {\"height\": 1.75, \"weight\": 70}}", "role": "assistant" }, { "content": "{\"bmi\": 22.86}", "role": "tool" }, { "content": "Based on the information you provided, your Body Mass Index (BMI) is 22.86. This is considered a healthy weight.", "role": "assistant" } ]
[{"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI) based on height and weight", "parameters": {"type": "object", "properties": {"height": {"type": "number", "description": "The height in meters"}, "weight": {"type": "number", "description": "The weight in kilograms"}}, "required": ["height", "weight"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI) based on height and weight", "parameters": {"type": "object", "properties": {"height": {"type": "number", "description": "The height in meters"}, "weight": {"type": "number", "description": "The weight in kilograms"}}, "required": ["height", "weight"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to calculate my BMI. I am 1.75 meters tall and weigh 70 kilograms.<|im_end|> <|im_start|>assistant {"name": "calculate_bmi", "arguments": {"height": 1.75, "weight": 70}}<|im_end|> <|im_start|>user <tool_response> {"bmi": 22.86} </tool_response><|im_end|> <|im_start|>assistant Based on the information you provided, your Body Mass Index (BMI) is 22.86. This is considered a healthy weight.<|im_end|>
[ { "content": "Can you order a pizza for me?", "role": "user" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My capabilities are currently limited to searching for movies based on title, genre, or release year. Is there anything else I can assist you with within these parameters?", "role": "assistant" } ]
[{"name": "search_movies", "description": "Search for movies based on title or genre", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}, "genre": {"type": "string", "description": "The genre of the movie"}, "year": {"type": "integer", "description": "The release year of the movie"}}, "required": ["title", "year"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "search_movies", "description": "Search for movies based on title or genre", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "The title of the movie"}, "genre": {"type": "string", "description": "The genre of the movie"}, "year": {"type": "integer", "description": "The release year of the movie"}}, "required": ["title", "year"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you order a pizza for me?<|im_end|> <|im_start|>assistant I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My capabilities are currently limited to searching for movies based on title, genre, or release year. Is there anything else I can assist you with within these parameters?<|im_end|>
[ { "content": "Hi, I was born on 1990-05-15. Can you tell me how old I am today?", "role": "user" }, { "content": "{\"name\": \"calculate_age\", \"arguments\": {\"birth_date\": \"1990-05-15\"}}", "role": "assistant" }, { "content": "{\"age\": 31}", "role": "tool" }, { "content": "According to my calculations, you are 31 years old today.", "role": "assistant" }, { "content": "Wow, time flies! Thank you for the information.", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "calculate_age", "description": "Calculate the age based on the birth date", "parameters": {"type": "object", "properties": {"birth_date": {"type": "string", "description": "The birth date in the format YYYY-MM-DD"}}, "required": ["birth_date"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_age", "description": "Calculate the age based on the birth date", "parameters": {"type": "object", "properties": {"birth_date": {"type": "string", "description": "The birth date in the format YYYY-MM-DD"}}, "required": ["birth_date"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I was born on 1990-05-15. Can you tell me how old I am today?<|im_end|> <|im_start|>assistant {"name": "calculate_age", "arguments": {"birth_date": "1990-05-15"}}<|im_end|> <|im_start|>user <tool_response> {"age": 31} </tool_response><|im_end|> <|im_start|>assistant According to my calculations, you are 31 years old today.<|im_end|> <|im_start|>user Wow, time flies! Thank you for the information.<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Can you please book a flight for me from New York to London?", "role": "user" }, { "content": "I'm sorry, but I'm unable to assist with booking flights as it's an external task. I don't have a function provided for that specific task. However, I can help calculate your BMI if you provide your weight and height.", "role": "assistant" } ]
[{"name": "calculate_bmi", "description": "Calculate the BMI (Body Mass Index)", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight in kilograms"}, "height": {"type": "number", "description": "The height in meters"}}, "required": ["weight", "height"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_bmi", "description": "Calculate the BMI (Body Mass Index)", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight in kilograms"}, "height": {"type": "number", "description": "The height in meters"}}, "required": ["weight", "height"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you please book a flight for me from New York to London?<|im_end|> <|im_start|>assistant I'm sorry, but I'm unable to assist with booking flights as it's an external task. I don't have a function provided for that specific task. However, I can help calculate your BMI if you provide your weight and height.<|im_end|>
[ { "content": "Hi, I need to know the distance between New York and Los Angeles. Can you help?", "role": "user" }, { "content": "Sure, I can help with that. However, I need the coordinates of both locations to calculate the distance. Do you have them?", "role": "assistant" }, { "content": "Yes, I do. The coordinates for New York are 40.7128° N, 74.0060° W and for Los Angeles, they are 34.0522° N, 118.2437° W.", "role": "user" }, { "content": "{\"name\": \"calculate_distance\", \"arguments\": {\"source\": {\"latitude\": 40.7128, \"longitude\": -74.006}, \"destination\": {\"latitude\": 34.0522, \"longitude\": -118.2437}}}", "role": "assistant" }, { "content": "{\"distance\": 3940.34}", "role": "tool" }, { "content": "The distance between New York and Los Angeles is approximately 3940.34 kilometers.", "role": "assistant" } ]
[{"name": "calculate_distance", "description": "Calculate the distance between two locations using their coordinates", "parameters": {"type": "object", "properties": {"source": {"type": "object", "properties": {"latitude": {"type": "number", "description": "The latitude of the source location"}, "longitude": {"type": "number", "description": "The longitude of the source location"}}, "required": ["latitude", "longitude"]}, "destination": {"type": "object", "properties": {"latitude": {"type": "number", "description": "The latitude of the destination location"}, "longitude": {"type": "number", "description": "The longitude of the destination location"}}, "required": ["latitude", "longitude"]}}, "required": ["source", "destination"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_distance", "description": "Calculate the distance between two locations using their coordinates", "parameters": {"type": "object", "properties": {"source": {"type": "object", "properties": {"latitude": {"type": "number", "description": "The latitude of the source location"}, "longitude": {"type": "number", "description": "The longitude of the source location"}}, "required": ["latitude", "longitude"]}, "destination": {"type": "object", "properties": {"latitude": {"type": "number", "description": "The latitude of the destination location"}, "longitude": {"type": "number", "description": "The longitude of the destination location"}}, "required": ["latitude", "longitude"]}}, "required": ["source", "destination"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to know the distance between New York and Los Angeles. Can you help?<|im_end|> <|im_start|>assistant Sure, I can help with that. However, I need the coordinates of both locations to calculate the distance. Do you have them?<|im_end|> <|im_start|>user Yes, I do. The coordinates for New York are 40.7128° N, 74.0060° W and for Los Angeles, they are 34.0522° N, 118.2437° W.<|im_end|> <|im_start|>assistant {"name": "calculate_distance", "arguments": {"source": {"latitude": 40.7128, "longitude": -74.006}, "destination": {"latitude": 34.0522, "longitude": -118.2437}}}<|im_end|> <|im_start|>user <tool_response> {"distance": 3940.34} </tool_response><|im_end|> <|im_start|>assistant The distance between New York and Los Angeles is approximately 3940.34 kilometers.<|im_end|>
[ { "content": "Can you book a flight for me?", "role": "user" }, { "content": "I'm sorry, but I don't have the capability to book flights. My current function allows me to check the status of a flight given a flight number and date. If you need help with that, feel free to ask!", "role": "assistant" } ]
[{"name": "check_flight_status", "description": "Check the status of a flight", "parameters": {"type": "object", "properties": {"flight_number": {"type": "string", "description": "The flight number"}, "date": {"type": "string", "format": "date", "description": "The date of the flight"}}, "required": ["flight_number", "date"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "check_flight_status", "description": "Check the status of a flight", "parameters": {"type": "object", "properties": {"flight_number": {"type": "string", "description": "The flight number"}, "date": {"type": "string", "format": "date", "description": "The date of the flight"}}, "required": ["flight_number", "date"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you book a flight for me?<|im_end|> <|im_start|>assistant I'm sorry, but I don't have the capability to book flights. My current function allows me to check the status of a flight given a flight number and date. If you need help with that, feel free to ask!<|im_end|>
[ { "content": "Hi, I have a temperature in Celsius and I want to convert it to Fahrenheit. The temperature is 25 degrees Celsius.", "role": "user" }, { "content": "{\"name\": \"convert_temperature\", \"arguments\": {\"temperature\": 25, \"unit\": \"C\"}}", "role": "assistant" }, { "content": "{\"converted_temperature\": 77, \"unit\": \"F\"}", "role": "tool" }, { "content": "The converted temperature from 25 degrees Celsius to Fahrenheit is 77 degrees Fahrenheit.", "role": "assistant" }, { "content": "That's great! Now, I have another temperature in Fahrenheit and I want to convert it to Celsius. The temperature is 68 degrees Fahrenheit.", "role": "user" }, { "content": "{\"name\": \"convert_temperature\", \"arguments\": {\"temperature\": 68, \"unit\": \"F\"}}", "role": "assistant" }, { "content": "{\"converted_temperature\": 20, \"unit\": \"C\"}", "role": "tool" }, { "content": "The converted temperature from 68 degrees Fahrenheit to Celsius is 20 degrees Celsius.", "role": "assistant" }, { "content": "Thank you for your help!", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "convert_temperature", "description": "Convert temperature between Celsius and Fahrenheit", "parameters": {"type": "object", "properties": {"temperature": {"type": "number", "description": "The temperature to convert"}, "unit": {"type": "string", "description": "The unit of the temperature (C or F)"}}, "required": ["temperature", "unit"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "convert_temperature", "description": "Convert temperature between Celsius and Fahrenheit", "parameters": {"type": "object", "properties": {"temperature": {"type": "number", "description": "The temperature to convert"}, "unit": {"type": "string", "description": "The unit of the temperature (C or F)"}}, "required": ["temperature", "unit"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I have a temperature in Celsius and I want to convert it to Fahrenheit. The temperature is 25 degrees Celsius.<|im_end|> <|im_start|>assistant {"name": "convert_temperature", "arguments": {"temperature": 25, "unit": "C"}}<|im_end|> <|im_start|>user <tool_response> {"converted_temperature": 77, "unit": "F"} </tool_response><|im_end|> <|im_start|>assistant The converted temperature from 25 degrees Celsius to Fahrenheit is 77 degrees Fahrenheit.<|im_end|> <|im_start|>user That's great! Now, I have another temperature in Fahrenheit and I want to convert it to Celsius. The temperature is 68 degrees Fahrenheit.<|im_end|> <|im_start|>assistant {"name": "convert_temperature", "arguments": {"temperature": 68, "unit": "F"}}<|im_end|> <|im_start|>user <tool_response> {"converted_temperature": 20, "unit": "C"} </tool_response><|im_end|> <|im_start|>assistant The converted temperature from 68 degrees Fahrenheit to Celsius is 20 degrees Celsius.<|im_end|> <|im_start|>user Thank you for your help!<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Can you tell me about the movie \"Inception\" released in 2010?", "role": "user" }, { "content": "{\"name\": \"get_movie_details\", \"arguments\": {\"title\": \"Inception\", \"year\": 2010}}", "role": "assistant" }, { "content": "{\"title\": \"Inception\", \"year\": 2010, \"director\": \"Christopher Nolan\", \"genre\": \"Science Fiction\", \"rating\": 8.8, \"description\": \"A thief who steals corporate secrets through the use of dream-sharing technology is given the inverse task of planting an idea into the mind of a CEO.\"}", "role": "tool" }, { "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. The movie is about a thief who steals corporate secrets through the use of dream-sharing technology and is given the inverse task of planting an idea into the mind of a CEO.", "role": "assistant" }, { "content": "That sounds interesting. Can you tell me about another movie \"The Dark Knight\" from 2008?", "role": "user" }, { "content": "{\"name\": \"get_movie_details\", \"arguments\": {\"title\": \"The Dark Knight\", \"year\": 2008}}", "role": "assistant" }, { "content": "{\"title\": \"The Dark Knight\", \"year\": 2008, \"director\": \"Christopher Nolan\", \"genre\": \"Action, Crime, Drama\", \"rating\": 9.0, \"description\": \"When the menace known as the Joker wreaks havoc and chaos on the people of Gotham, Batman must accept one of the greatest psychological and physical tests of his ability to fight injustice.\"}", "role": "tool" }, { "content": "The movie \"The Dark Knight\" was released in 2008. It was directed by Christopher Nolan and falls under the genre of Action, Crime, and Drama. It has a rating of 9.0. The movie is about Batman who must accept one of the greatest psychological and physical tests of his ability to fight injustice when the menace known as the Joker wreaks havoc and chaos on the people of Gotham.", "role": "assistant" } ]
[{"name": "get_movie_details", "description": "Get details of 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"}}, "required": ["title", "year"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "get_movie_details", "description": "Get details of 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"}}, "required": ["title", "year"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you tell me about the movie "Inception" released in 2010?<|im_end|> <|im_start|>assistant {"name": "get_movie_details", "arguments": {"title": "Inception", "year": 2010}}<|im_end|> <|im_start|>user <tool_response> {"title": "Inception", "year": 2010, "director": "Christopher Nolan", "genre": "Science Fiction", "rating": 8.8, "description": "A thief who steals corporate secrets through the use of dream-sharing technology is given the inverse task of planting an idea into the mind of a CEO."} </tool_response><|im_end|> <|im_start|>assistant 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. The movie is about a thief who steals corporate secrets through the use of dream-sharing technology and is given the inverse task of planting an idea into the mind of a CEO.<|im_end|> <|im_start|>user That sounds interesting. Can you tell me about another movie "The Dark Knight" from 2008?<|im_end|> <|im_start|>assistant {"name": "get_movie_details", "arguments": {"title": "The Dark Knight", "year": 2008}}<|im_end|> <|im_start|>user <tool_response> {"title": "The Dark Knight", "year": 2008, "director": "Christopher Nolan", "genre": "Action, Crime, Drama", "rating": 9.0, "description": "When the menace known as the Joker wreaks havoc and chaos on the people of Gotham, Batman must accept one of the greatest psychological and physical tests of his ability to fight injustice."} </tool_response><|im_end|> <|im_start|>assistant The movie "The Dark Knight" was released in 2008. It was directed by Christopher Nolan and falls under the genre of Action, Crime, and Drama. It has a rating of 9.0. The movie is about Batman who must accept one of the greatest psychological and physical tests of his ability to fight injustice when the menace known as the Joker wreaks havoc and chaos on the people of Gotham.<|im_end|>
[ { "content": "I'm in New York and I'm craving for some Italian food. Can you suggest some restaurants?", "role": "user" }, { "content": "{\"name\": \"search_restaurants\", \"arguments\": {\"location\": \"New York\", \"cuisine\": \"Italian\"}}", "role": "assistant" }, { "content": "{\"restaurants\": [{\"name\": \"Carbone\", \"address\": \"181 Thompson St, New York, NY 10012\", \"price_range\": \"$$$\"}, {\"name\": \"L'Artusi\", \"address\": \"228 W 10th St, New York, NY 10014\", \"price_range\": \"$$$\"}, {\"name\": \"Il Buco\", \"address\": \"47 Bond St, New York, NY 10012\", \"price_range\": \"$$\"}]}", "role": "tool" }, { "content": "Here are some Italian restaurants in New York that you might like: \n1. Carbone at 181 Thompson St, New York, NY 10012. The price range is $$$.\n2. L'Artusi at 228 W 10th St, New York, NY 10014. The price range is $$$.\n3. Il Buco at 47 Bond St, New York, NY 10012. The price range is $$.", "role": "assistant" }, { "content": "What about some affordable Chinese restaurants in the same area?", "role": "user" }, { "content": "{\"name\": \"search_restaurants\", \"arguments\": {\"location\": \"New York\", \"cuisine\": \"Chinese\", \"price_range\": \"$\"}}", "role": "assistant" }, { "content": "{\"restaurants\": [{\"name\": \"Wo Hop\", \"address\": \"17 Mott St, New York, NY 10013\", \"price_range\": \"$\"}, {\"name\": \"Joe's Shanghai\", \"address\": \"9 Pell St, New York, NY 10013\", \"price_range\": \"$\"}, {\"name\": \"Vanessa's Dumpling House\", \"address\": \"118 Eldridge St, New York, NY 10002\", \"price_range\": \"$\"}]}", "role": "tool" }, { "content": "Here are some affordable Chinese restaurants in New York: \n1. Wo Hop at 17 Mott St, New York, NY 10013. The price range is $.\n2. Joe's Shanghai at 9 Pell St, New York, NY 10013. The price range is $.\n3. Vanessa's Dumpling House at 118 Eldridge St, New York, NY 10002. The price range is $.", "role": "assistant" } ]
[{"name": "search_restaurants", "description": "Search for restaurants based on given criteria", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The location to search for restaurants"}, "cuisine": {"type": "string", "description": "The cuisine type of the restaurants"}, "price_range": {"type": "string", "description": "The price range of the restaurants"}}, "required": ["location"]}}, {"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"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "search_restaurants", "description": "Search for restaurants based on given criteria", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The location to search for restaurants"}, "cuisine": {"type": "string", "description": "The cuisine type of the restaurants"}, "price_range": {"type": "string", "description": "The price range of the restaurants"}}, "required": ["location"]}} {"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"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I'm in New York and I'm craving for some Italian food. Can you suggest some restaurants?<|im_end|> <|im_start|>assistant {"name": "search_restaurants", "arguments": {"location": "New York", "cuisine": "Italian"}}<|im_end|> <|im_start|>user <tool_response> {"restaurants": [{"name": "Carbone", "address": "181 Thompson St, New York, NY 10012", "price_range": "$$$"}, {"name": "L'Artusi", "address": "228 W 10th St, New York, NY 10014", "price_range": "$$$"}, {"name": "Il Buco", "address": "47 Bond St, New York, NY 10012", "price_range": "$$"}]} </tool_response><|im_end|> <|im_start|>assistant Here are some Italian restaurants in New York that you might like: 1. Carbone at 181 Thompson St, New York, NY 10012. The price range is $$$. 2. L'Artusi at 228 W 10th St, New York, NY 10014. The price range is $$$. 3. Il Buco at 47 Bond St, New York, NY 10012. The price range is $$.<|im_end|> <|im_start|>user What about some affordable Chinese restaurants in the same area?<|im_end|> <|im_start|>assistant {"name": "search_restaurants", "arguments": {"location": "New York", "cuisine": "Chinese", "price_range": "$"}}<|im_end|> <|im_start|>user <tool_response> {"restaurants": [{"name": "Wo Hop", "address": "17 Mott St, New York, NY 10013", "price_range": "$"}, {"name": "Joe's Shanghai", "address": "9 Pell St, New York, NY 10013", "price_range": "$"}, {"name": "Vanessa's Dumpling House", "address": "118 Eldridge St, New York, NY 10002", "price_range": "$"}]} </tool_response><|im_end|> <|im_start|>assistant Here are some affordable Chinese restaurants in New York: 1. Wo Hop at 17 Mott St, New York, NY 10013. The price range is $. 2. Joe's Shanghai at 9 Pell St, New York, NY 10013. The price range is $. 3. Vanessa's Dumpling House at 118 Eldridge St, New York, NY 10002. The price range is $.<|im_end|>
[ { "content": "Hey, can you help me send an email to my professor?", "role": "user" }, { "content": "Of course! I can help with that. Please provide me with the recipient's email address, the subject of the email, and the content you want to send.", "role": "assistant" }, { "content": "The recipient is professor_john@university.com, the subject is \"Regarding the Assignment\", and the message is \"Dear Professor John, I am having trouble with question 3 of the assignment. Could you please provide some guidance? Regards, Student\".", "role": "user" }, { "content": "{\"name\": \"send_email\", \"arguments\": {\"recipient\": \"professor_john@university.com\", \"subject\": \"Regarding the Assignment\", \"message\": \"Dear Professor John, I am having trouble with question 3 of the assignment. Could you please provide some guidance? Regards, Student\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Email has been sent successfully.\"}", "role": "tool" }, { "content": "The email has been sent successfully to Professor John.", "role": "assistant" }, { "content": "Great! Can you also help me order a pizza?", "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. I can assist with tasks related to the functions provided to me, such as sending emails.", "role": "assistant" } ]
[{"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email"}}, "required": ["recipient", "subject", "message"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "message": {"type": "string", "description": "The content of the email"}}, "required": ["recipient", "subject", "message"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hey, can you help me send an email to my professor?<|im_end|> <|im_start|>assistant Of course! I can help with that. Please provide me with the recipient's email address, the subject of the email, and the content you want to send.<|im_end|> <|im_start|>user The recipient is professor_john@university.com, the subject is "Regarding the Assignment", and the message is "Dear Professor John, I am having trouble with question 3 of the assignment. Could you please provide some guidance? Regards, Student".<|im_end|> <|im_start|>assistant {"name": "send_email", "arguments": {"recipient": "professor_john@university.com", "subject": "Regarding the Assignment", "message": "Dear Professor John, I am having trouble with question 3 of the assignment. Could you please provide some guidance? Regards, Student"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Email has been sent successfully."} </tool_response><|im_end|> <|im_start|>assistant The email has been sent successfully to Professor John.<|im_end|> <|im_start|>user Great! Can you also help me order a pizza?<|im_end|> <|im_start|>assistant I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. I can assist with tasks related to the functions provided to me, such as sending emails.<|im_end|>
[ { "content": "Hi, I need help with calculating a tip. My bill total is $50 and I want to leave a 20% tip.", "role": "user" }, { "content": "{\"name\": \"calculate_tip\", \"arguments\": {\"bill_total\": 50, \"tip_percentage\": 20}}", "role": "assistant" }, { "content": "{\"tip_amount\": 10}", "role": "tool" }, { "content": "Based on the bill total and the tip percentage you provided, the tip amount you should leave is $10.", "role": "assistant" } ]
[{"name": "calculate_tip", "description": "Calculate the tip amount", "parameters": {"type": "object", "properties": {"bill_total": {"type": "number", "description": "The total amount of the bill"}, "tip_percentage": {"type": "number", "description": "The percentage of tip to give"}}, "required": ["bill_total", "tip_percentage"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_tip", "description": "Calculate the tip amount", "parameters": {"type": "object", "properties": {"bill_total": {"type": "number", "description": "The total amount of the bill"}, "tip_percentage": {"type": "number", "description": "The percentage of tip to give"}}, "required": ["bill_total", "tip_percentage"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need help with calculating a tip. My bill total is $50 and I want to leave a 20% tip.<|im_end|> <|im_start|>assistant {"name": "calculate_tip", "arguments": {"bill_total": 50, "tip_percentage": 20}}<|im_end|> <|im_start|>user <tool_response> {"tip_amount": 10} </tool_response><|im_end|> <|im_start|>assistant Based on the bill total and the tip percentage you provided, the tip amount you should leave is $10.<|im_end|>
[ { "content": "Can you order a pizza for me?", "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. I can assist you with tasks related to the functions I have been provided with, such as calculating a discount on a price.", "role": "assistant" } ]
[{"name": "calculate_discount", "description": "Calculate the discounted price", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the item"}, "discount_percentage": {"type": "number", "description": "The percentage of discount to apply"}}, "required": ["original_price", "discount_percentage"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_discount", "description": "Calculate the discounted price", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the item"}, "discount_percentage": {"type": "number", "description": "The percentage of discount to apply"}}, "required": ["original_price", "discount_percentage"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you order a pizza for me?<|im_end|> <|im_start|>assistant I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. I can assist you with tasks related to the functions I have been provided with, such as calculating a discount on a price.<|im_end|>
[ { "content": "I need to send an email to my boss. Can you help me with that?", "role": "user" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and what you would like to say in the body of the email?", "role": "assistant" }, { "content": "The recipient's email is boss@company.com. The subject is \"Project Update\". And in the body, write \"Dear Boss, The project is on track and will be completed by the end of this week. Regards, [User's Name]\".", "role": "user" }, { "content": "{\"name\": \"send_email\", \"arguments\": {\"recipient\": \"boss@company.com\", \"subject\": \"Project Update\", \"body\": \"Dear Boss, The project is on track and will be completed by the end of this week. Regards, [User's Name]\"}}", "role": "assistant" }, { "content": "{\"status\": \"success\", \"message\": \"Email has been sent successfully.\"}", "role": "tool" }, { "content": "The email has been sent successfully to your boss. Is there anything else you need help with?", "role": "assistant" } ]
[{"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "body": {"type": "string", "description": "The body of the email"}}, "required": ["recipient", "subject", "body"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "send_email", "description": "Send an email to a recipient", "parameters": {"type": "object", "properties": {"recipient": {"type": "string", "description": "The email address of the recipient"}, "subject": {"type": "string", "description": "The subject of the email"}, "body": {"type": "string", "description": "The body of the email"}}, "required": ["recipient", "subject", "body"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I need to send an email to my boss. Can you help me with that?<|im_end|> <|im_start|>assistant Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and what you would like to say in the body of the email?<|im_end|> <|im_start|>user The recipient's email is boss@company.com. The subject is "Project Update". And in the body, write "Dear Boss, The project is on track and will be completed by the end of this week. Regards, [User's Name]".<|im_end|> <|im_start|>assistant {"name": "send_email", "arguments": {"recipient": "boss@company.com", "subject": "Project Update", "body": "Dear Boss, The project is on track and will be completed by the end of this week. Regards, [User's Name]"}}<|im_end|> <|im_start|>user <tool_response> {"status": "success", "message": "Email has been sent successfully."} </tool_response><|im_end|> <|im_start|>assistant The email has been sent successfully to your boss. Is there anything else you need help with?<|im_end|>
[ { "content": "Hi, I was born on 1990-05-15. Can you tell me how old I am today?", "role": "user" }, { "content": "{\"name\": \"calculate_age\", \"arguments\": {\"birthdate\": \"1990-05-15\"}}", "role": "assistant" }, { "content": "{\"age\": 31}", "role": "tool" }, { "content": "Based on the birthdate you provided, you are 31 years old today.", "role": "assistant" } ]
[{"name": "calculate_age", "description": "Calculate age based on birthdate", "parameters": {"type": "object", "properties": {"birthdate": {"type": "string", "format": "date", "description": "The birthdate in YYYY-MM-DD format"}}, "required": ["birthdate"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_age", "description": "Calculate age based on birthdate", "parameters": {"type": "object", "properties": {"birthdate": {"type": "string", "format": "date", "description": "The birthdate in YYYY-MM-DD format"}}, "required": ["birthdate"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I was born on 1990-05-15. Can you tell me how old I am today?<|im_end|> <|im_start|>assistant {"name": "calculate_age", "arguments": {"birthdate": "1990-05-15"}}<|im_end|> <|im_start|>user <tool_response> {"age": 31} </tool_response><|im_end|> <|im_start|>assistant Based on the birthdate you provided, you are 31 years old today.<|im_end|>
[ { "content": "Can you find me some images of the Eiffel Tower at night?", "role": "user" }, { "content": "{\"name\": \"search_images\", \"arguments\": {\"keywords\": [\"Eiffel Tower\", \"night\"]}}", "role": "assistant" }, { "content": "{\"images\": [{\"url\": \"https://example.com/image1.jpg\", \"description\": \"Eiffel Tower at night\"}, {\"url\": \"https://example.com/image2.jpg\", \"description\": \"Eiffel Tower illuminated at night\"}, {\"url\": \"https://example.com/image3.jpg\", \"description\": \"Eiffel Tower with city lights at night\"}]}", "role": "tool" }, { "content": "Here are some images of the Eiffel Tower at night:\n1. [Eiffel Tower at night](https://example.com/image1.jpg)\n2. [Eiffel Tower illuminated at night](https://example.com/image2.jpg)\n3. [Eiffel Tower with city lights at night](https://example.com/image3.jpg)", "role": "assistant" }, { "content": "Great, can you now find images of the Eiffel Tower during the day?", "role": "user" }, { "content": "{\"name\": \"search_images\", \"arguments\": {\"keywords\": [\"Eiffel Tower\", \"day\"]}}", "role": "assistant" }, { "content": "{\"images\": [{\"url\": \"https://example.com/image4.jpg\", \"description\": \"Eiffel Tower during the day\"}, {\"url\": \"https://example.com/image5.jpg\", \"description\": \"Eiffel Tower with blue sky\"}, {\"url\": \"https://example.com/image6.jpg\", \"description\": \"Eiffel Tower with a sunny backdrop\"}]}", "role": "tool" }, { "content": "Here are some images of the Eiffel Tower during the day:\n1. [Eiffel Tower during the day](https://example.com/image4.jpg)\n2. [Eiffel Tower with blue sky](https://example.com/image5.jpg)\n3. [Eiffel Tower with a sunny backdrop](https://example.com/image6.jpg)", "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"}}, "required": ["keywords"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"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"}}, "required": ["keywords"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you find me some images of the Eiffel Tower at night?<|im_end|> <|im_start|>assistant {"name": "search_images", "arguments": {"keywords": ["Eiffel Tower", "night"]}}<|im_end|> <|im_start|>user <tool_response> {"images": [{"url": "https://example.com/image1.jpg", "description": "Eiffel Tower at night"}, {"url": "https://example.com/image2.jpg", "description": "Eiffel Tower illuminated at night"}, {"url": "https://example.com/image3.jpg", "description": "Eiffel Tower with city lights at night"}]} </tool_response><|im_end|> <|im_start|>assistant Here are some images of the Eiffel Tower at night: 1. [Eiffel Tower at night](https://example.com/image1.jpg) 2. [Eiffel Tower illuminated at night](https://example.com/image2.jpg) 3. [Eiffel Tower with city lights at night](https://example.com/image3.jpg)<|im_end|> <|im_start|>user Great, can you now find images of the Eiffel Tower during the day?<|im_end|> <|im_start|>assistant {"name": "search_images", "arguments": {"keywords": ["Eiffel Tower", "day"]}}<|im_end|> <|im_start|>user <tool_response> {"images": [{"url": "https://example.com/image4.jpg", "description": "Eiffel Tower during the day"}, {"url": "https://example.com/image5.jpg", "description": "Eiffel Tower with blue sky"}, {"url": "https://example.com/image6.jpg", "description": "Eiffel Tower with a sunny backdrop"}]} </tool_response><|im_end|> <|im_start|>assistant Here are some images of the Eiffel Tower during the day: 1. [Eiffel Tower during the day](https://example.com/image4.jpg) 2. [Eiffel Tower with blue sky](https://example.com/image5.jpg) 3. [Eiffel Tower with a sunny backdrop](https://example.com/image6.jpg)<|im_end|>
[ { "content": "Hi, I just bought a new laptop for $1500. Can you help me calculate how much sales tax I would have to pay if the tax rate is 7%?", "role": "user" }, { "content": "{\"name\": \"calculate_sales_tax\", \"arguments\": {\"purchase_price\": 1500, \"tax_rate\": 7}}", "role": "assistant" }, { "content": "{\"sales_tax\": 105}", "role": "tool" }, { "content": "Based on the purchase price of $1500 and a tax rate of 7%, the sales tax you would have to pay is $105.", "role": "assistant" }, { "content": "That's quite a bit. What if the tax rate was 5% instead?", "role": "user" }, { "content": "{\"name\": \"calculate_sales_tax\", \"arguments\": {\"purchase_price\": 1500, \"tax_rate\": 5}}", "role": "assistant" }, { "content": "{\"sales_tax\": 75}", "role": "tool" }, { "content": "If the tax rate was 5%, the sales tax you would have to pay on a $1500 purchase would be $75.", "role": "assistant" }, { "content": "That's better. Thanks for the help!", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "calculate_sales_tax", "description": "Calculate the sales tax amount based on the purchase price and tax rate", "parameters": {"type": "object", "properties": {"purchase_price": {"type": "number", "description": "The purchase price"}, "tax_rate": {"type": "number", "description": "The tax rate as a percentage"}}, "required": ["purchase_price", "tax_rate"]}}, {"name": "create_invoice", "description": "Create a new invoice with item details and prices", "parameters": {"type": "object", "properties": {"customer_name": {"type": "string", "description": "The name of the customer"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "description": "The name of the item"}, "quantity": {"type": "integer", "description": "The quantity of the item"}, "price": {"type": "number", "description": "The price of the item"}}, "required": ["name", "quantity", "price"]}}}, "required": ["customer_name", "items"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_sales_tax", "description": "Calculate the sales tax amount based on the purchase price and tax rate", "parameters": {"type": "object", "properties": {"purchase_price": {"type": "number", "description": "The purchase price"}, "tax_rate": {"type": "number", "description": "The tax rate as a percentage"}}, "required": ["purchase_price", "tax_rate"]}} {"name": "create_invoice", "description": "Create a new invoice with item details and prices", "parameters": {"type": "object", "properties": {"customer_name": {"type": "string", "description": "The name of the customer"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "description": "The name of the item"}, "quantity": {"type": "integer", "description": "The quantity of the item"}, "price": {"type": "number", "description": "The price of the item"}}, "required": ["name", "quantity", "price"]}}}, "required": ["customer_name", "items"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I just bought a new laptop for $1500. Can you help me calculate how much sales tax I would have to pay if the tax rate is 7%?<|im_end|> <|im_start|>assistant {"name": "calculate_sales_tax", "arguments": {"purchase_price": 1500, "tax_rate": 7}}<|im_end|> <|im_start|>user <tool_response> {"sales_tax": 105} </tool_response><|im_end|> <|im_start|>assistant Based on the purchase price of $1500 and a tax rate of 7%, the sales tax you would have to pay is $105.<|im_end|> <|im_start|>user That's quite a bit. What if the tax rate was 5% instead?<|im_end|> <|im_start|>assistant {"name": "calculate_sales_tax", "arguments": {"purchase_price": 1500, "tax_rate": 5}}<|im_end|> <|im_start|>user <tool_response> {"sales_tax": 75} </tool_response><|im_end|> <|im_start|>assistant If the tax rate was 5%, the sales tax you would have to pay on a $1500 purchase would be $75.<|im_end|> <|im_start|>user That's better. Thanks for the help!<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Hi, I would like to know my BMI. I weigh 70 kilograms and my height is 1.75 meters.", "role": "user" }, { "content": "{\"name\": \"calculate_bmi\", \"arguments\": {\"weight\": 70, \"height\": 1.75}}", "role": "assistant" }, { "content": "{\"bmi\": 22.86}", "role": "tool" }, { "content": "Based on the information you provided, your Body Mass Index (BMI) is 22.86. This is considered to be within the healthy weight range.", "role": "assistant" } ]
[{"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI) of a person", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight of the person in kilograms"}, "height": {"type": "number", "description": "The height of the person in meters"}}, "required": ["weight", "height"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI) of a person", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight of the person in kilograms"}, "height": {"type": "number", "description": "The height of the person in meters"}}, "required": ["weight", "height"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I would like to know my BMI. I weigh 70 kilograms and my height is 1.75 meters.<|im_end|> <|im_start|>assistant {"name": "calculate_bmi", "arguments": {"weight": 70, "height": 1.75}}<|im_end|> <|im_start|>user <tool_response> {"bmi": 22.86} </tool_response><|im_end|> <|im_start|>assistant Based on the information you provided, your Body Mass Index (BMI) is 22.86. This is considered to be within the healthy weight range.<|im_end|>
[ { "content": "Hi, I saw a dress that I liked in a store. It was originally priced at $100 but it's on a 20% discount. Can you tell me how much I will have to pay after the discount?", "role": "user" }, { "content": "{\"name\": \"calculate_discount\", \"arguments\": {\"original_price\": 100, \"discount_percentage\": 20}}", "role": "assistant" }, { "content": "{\"discounted_price\": 80}", "role": "tool" }, { "content": "After applying the 20% discount, the dress will cost you $80.", "role": "assistant" } ]
[{"name": "calculate_discount", "description": "Calculate the discount on a product", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the product"}, "discount_percentage": {"type": "number", "description": "The discount percentage"}}, "required": ["original_price", "discount_percentage"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_discount", "description": "Calculate the discount on a product", "parameters": {"type": "object", "properties": {"original_price": {"type": "number", "description": "The original price of the product"}, "discount_percentage": {"type": "number", "description": "The discount percentage"}}, "required": ["original_price", "discount_percentage"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I saw a dress that I liked in a store. It was originally priced at $100 but it's on a 20% discount. Can you tell me how much I will have to pay after the discount?<|im_end|> <|im_start|>assistant {"name": "calculate_discount", "arguments": {"original_price": 100, "discount_percentage": 20}}<|im_end|> <|im_start|>user <tool_response> {"discounted_price": 80} </tool_response><|im_end|> <|im_start|>assistant After applying the 20% discount, the dress will cost you $80.<|im_end|>
[ { "content": "Hi, I need to convert 1000 USD to EUR. Can you help me with that?", "role": "user" }, { "content": "{\"name\": \"convert_currency\", \"arguments\": {\"amount\": 1000, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}}", "role": "assistant" }, { "content": "{\"converted_amount\": 850.00, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}", "role": "tool" }, { "content": "Sure, 1000 USD is approximately 850 EUR.", "role": "assistant" }, { "content": "Great, now I need to convert 500 GBP to USD.", "role": "user" }, { "content": "{\"name\": \"convert_currency\", \"arguments\": {\"amount\": 500, \"from_currency\": \"GBP\", \"to_currency\": \"USD\"}}", "role": "assistant" }, { "content": "{\"converted_amount\": 650.00, \"from_currency\": \"GBP\", \"to_currency\": \"USD\"}", "role": "tool" }, { "content": "500 GBP is approximately 650 USD.", "role": "assistant" }, { "content": "Thank you for your help!", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "The amount to be converted"}, "from_currency": {"type": "string", "description": "The currency to be converted from"}, "to_currency": {"type": "string", "description": "The currency to be converted to"}}, "required": ["amount", "from_currency", "to_currency"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "The amount to be converted"}, "from_currency": {"type": "string", "description": "The currency to be converted from"}, "to_currency": {"type": "string", "description": "The currency to be converted to"}}, "required": ["amount", "from_currency", "to_currency"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need to convert 1000 USD to EUR. Can you help me with that?<|im_end|> <|im_start|>assistant {"name": "convert_currency", "arguments": {"amount": 1000, "from_currency": "USD", "to_currency": "EUR"}}<|im_end|> <|im_start|>user <tool_response> {"converted_amount": 850.00, "from_currency": "USD", "to_currency": "EUR"} </tool_response><|im_end|> <|im_start|>assistant Sure, 1000 USD is approximately 850 EUR.<|im_end|> <|im_start|>user Great, now I need to convert 500 GBP to USD.<|im_end|> <|im_start|>assistant {"name": "convert_currency", "arguments": {"amount": 500, "from_currency": "GBP", "to_currency": "USD"}}<|im_end|> <|im_start|>user <tool_response> {"converted_amount": 650.00, "from_currency": "GBP", "to_currency": "USD"} </tool_response><|im_end|> <|im_start|>assistant 500 GBP is approximately 650 USD.<|im_end|> <|im_start|>user Thank you for your help!<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "Hi, I saw a dress that I liked. It's priced at $100 and there's a 20% discount. Can you tell me how much I'll have to pay after the discount?", "role": "user" }, { "content": "{\"name\": \"calculate_discount\", \"arguments\": {\"price\": 100, \"discount\": 20}}", "role": "assistant" }, { "content": "{\"discounted_price\": 80}", "role": "tool" }, { "content": "After applying the 20% discount, the price of the dress will be $80.", "role": "assistant" } ]
[{"name": "calculate_discount", "description": "Calculate the discounted price", "parameters": {"type": "object", "properties": {"price": {"type": "number", "description": "Original price"}, "discount": {"type": "number", "description": "Discount percentage"}}, "required": ["price", "discount"]}}, {"name": "find_shortest_path", "description": "Find the shortest path between two locations", "parameters": {"type": "object", "properties": {"start_location": {"type": "string", "description": "The starting location"}, "end_location": {"type": "string", "description": "The ending location"}}, "required": ["start_location", "end_location"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_discount", "description": "Calculate the discounted price", "parameters": {"type": "object", "properties": {"price": {"type": "number", "description": "Original price"}, "discount": {"type": "number", "description": "Discount percentage"}}, "required": ["price", "discount"]}} {"name": "find_shortest_path", "description": "Find the shortest path between two locations", "parameters": {"type": "object", "properties": {"start_location": {"type": "string", "description": "The starting location"}, "end_location": {"type": "string", "description": "The ending location"}}, "required": ["start_location", "end_location"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I saw a dress that I liked. It's priced at $100 and there's a 20% discount. Can you tell me how much I'll have to pay after the discount?<|im_end|> <|im_start|>assistant {"name": "calculate_discount", "arguments": {"price": 100, "discount": 20}}<|im_end|> <|im_start|>user <tool_response> {"discounted_price": 80} </tool_response><|im_end|> <|im_start|>assistant After applying the 20% discount, the price of the dress will be $80.<|im_end|>
[ { "content": "Hi, I need help with calculating my tax. My income is $50000 and the tax rate is 20%.", "role": "user" }, { "content": "{\"name\": \"calculate_tax\", \"arguments\": {\"income\": 50000, \"tax_rate\": 20}}", "role": "assistant" }, { "content": "{\"tax_amount\": 10000}", "role": "tool" }, { "content": "Based on your income and the tax rate, your tax amount would be $10000.", "role": "assistant" }, { "content": "Thank you for the help!", "role": "user" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "assistant" } ]
[{"name": "calculate_tax", "description": "Calculate the tax amount", "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"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "calculate_tax", "description": "Calculate the tax amount", "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"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Hi, I need help with calculating my tax. My income is $50000 and the tax rate is 20%.<|im_end|> <|im_start|>assistant {"name": "calculate_tax", "arguments": {"income": 50000, "tax_rate": 20}}<|im_end|> <|im_start|>user <tool_response> {"tax_amount": 10000} </tool_response><|im_end|> <|im_start|>assistant Based on your income and the tax rate, your tax amount would be $10000.<|im_end|> <|im_start|>user Thank you for the help!<|im_end|> <|im_start|>assistant You're welcome! If you have any other questions, feel free to ask.<|im_end|>
[ { "content": "I have some chicken, bell peppers and tomatoes. Can you find me a recipe?", "role": "user" }, { "content": "{\"name\": \"search_recipes\", \"arguments\": {\"ingredients\": [\"chicken\", \"bell peppers\", \"tomatoes\"]}}", "role": "assistant" }, { "content": "{\"recipes\": [{\"name\": \"Chicken Fajitas\", \"ingredients\": [\"chicken\", \"bell peppers\", \"tomatoes\"], \"instructions\": \"Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with tortillas and your favorite toppings.\"}]}", "role": "tool" }, { "content": "I found a recipe for you. It's called Chicken Fajitas. Here are the instructions: Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with tortillas and your favorite toppings.", "role": "assistant" }, { "content": "That sounds delicious! But I'm on a low-carb diet. Can you find a recipe without the tortillas?", "role": "user" }, { "content": "{\"name\": \"search_recipes\", \"arguments\": {\"ingredients\": [\"chicken\", \"bell peppers\", \"tomatoes\"], \"dietary_restrictions\": [\"low-carb\"]}}", "role": "assistant" }, { "content": "{\"recipes\": [{\"name\": \"Low-Carb Chicken Stir Fry\", \"ingredients\": [\"chicken\", \"bell peppers\", \"tomatoes\"], \"instructions\": \"Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with a side of cauliflower rice.\"}]}", "role": "tool" }, { "content": "I found a low-carb recipe for you. It's called Low-Carb Chicken Stir Fry. Here are the instructions: Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with a side of cauliflower rice.", "role": "assistant" } ]
[{"name": "search_recipes", "description": "Search for recipes based on ingredients", "parameters": {"type": "object", "properties": {"ingredients": {"type": "array", "items": {"type": "string"}, "description": "The ingredients to search for"}, "dietary_restrictions": {"type": "array", "items": {"type": "string"}, "description": "Any dietary restrictions to consider"}}, "required": ["ingredients"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "search_recipes", "description": "Search for recipes based on ingredients", "parameters": {"type": "object", "properties": {"ingredients": {"type": "array", "items": {"type": "string"}, "description": "The ingredients to search for"}, "dietary_restrictions": {"type": "array", "items": {"type": "string"}, "description": "Any dietary restrictions to consider"}}, "required": ["ingredients"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user I have some chicken, bell peppers and tomatoes. Can you find me a recipe?<|im_end|> <|im_start|>assistant {"name": "search_recipes", "arguments": {"ingredients": ["chicken", "bell peppers", "tomatoes"]}}<|im_end|> <|im_start|>user <tool_response> {"recipes": [{"name": "Chicken Fajitas", "ingredients": ["chicken", "bell peppers", "tomatoes"], "instructions": "Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with tortillas and your favorite toppings."}]} </tool_response><|im_end|> <|im_start|>assistant I found a recipe for you. It's called Chicken Fajitas. Here are the instructions: Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with tortillas and your favorite toppings.<|im_end|> <|im_start|>user That sounds delicious! But I'm on a low-carb diet. Can you find a recipe without the tortillas?<|im_end|> <|im_start|>assistant {"name": "search_recipes", "arguments": {"ingredients": ["chicken", "bell peppers", "tomatoes"], "dietary_restrictions": ["low-carb"]}}<|im_end|> <|im_start|>user <tool_response> {"recipes": [{"name": "Low-Carb Chicken Stir Fry", "ingredients": ["chicken", "bell peppers", "tomatoes"], "instructions": "Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with a side of cauliflower rice."}]} </tool_response><|im_end|> <|im_start|>assistant I found a low-carb recipe for you. It's called Low-Carb Chicken Stir Fry. Here are the instructions: Cut the chicken and vegetables into strips. Cook the chicken in a pan until it's no longer pink. Add the vegetables and cook until they're tender. Serve with a side of cauliflower rice.<|im_end|>
[ { "content": "Can you order a pizza for me?", "role": "user" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current function allows me to analyze the sentiment of a given text.", "role": "assistant" } ]
[{"name": "analyze_sentiment", "description": "Analyze the sentiment of a given text", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to analyze"}}, "required": ["text"]}}]
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant. # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within <tools></tools> XML tags: <tools> {"name": "analyze_sentiment", "description": "Analyze the sentiment of a given text", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to analyze"}}, "required": ["text"]}} </tools> For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags: <tool_call> {"name": <function-name>, "arguments": <args-json-object>} </tool_call><|im_end|> <|im_start|>user Can you order a pizza for me?<|im_end|> <|im_start|>assistant I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current function allows me to analyze the sentiment of a given text.<|im_end|>
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
58