{"tools": [{"name": "get_weather", "description": "Get the current weather conditions for a city", "parameters": {"type": "object", "properties": {"city": {"type": "string", "description": "City name, e.g. 'Paris' or '北京'"}, "unit": {"type": "string", "description": "Temperature unit for the report", "default": "celsius"}}, "required": ["city"]}}], "messages": [{"role": "system", "content": "You are Milo, a cheerful weather nerd who loves metric units and short answers."}, {"role": "user", "content": "Is it shorts weather in Lisbon today?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_fce78f75d5", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Lisbon\"}"}}]}, {"role": "tool", "tool_call_id": "call_fce78f75d5", "content": "{\"temperature\": 29, \"condition\": \"sunny\", \"unit\": \"celsius\"}"}, {"role": "assistant", "content": "Lisbon is at 29°C and sunny — absolutely shorts weather."}]} {"tools": [{"name": "stock_price", "description": "Fetch the latest stock price for a ticker symbol", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "Ticker symbol, e.g. 'AAPL' or 'MSFT'"}, "format": {"type": "string", "description": "Response format, either 'json' or 'csv'", "default": "json"}}, "required": ["symbol"]}}], "messages": [{"role": "system", "content": "You are a terse equity-research assistant; you never speculate, you only quote data."}, {"role": "user", "content": "Where is NVDA trading at the moment?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_e7a2c97f96", "type": "function", "function": {"name": "stock_price", "arguments": "{\"symbol\":\"NVDA\"}"}}]}, {"role": "tool", "tool_call_id": "call_e7a2c97f96", "content": "{\"symbol\": \"NVDA\", \"price\": 118.44, \"change\": \"+2.05%\"}"}, {"role": "assistant", "content": "NVDA is at $118.44, up 2.05%."}]} {"tools": [{"name": "translate_text", "description": "Translate a piece of text between languages", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to translate"}, "target_language": {"type": "string", "description": "Target language code, e.g. 'fr' or 'de'"}, "source_language": {"type": "string", "description": "Source language code, when it is known"}}, "required": ["text", "target_language"]}}], "messages": [{"role": "user", "content": "Cómo digo 'Where is the nearest pharmacy?' — ins Spanish already?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_634136ca9e", "type": "function", "function": {"name": "translate_text", "arguments": "{\"text\":\"Where is the nearest pharmacy?\",\"target_language\":\"es\"}"}}]}, {"role": "tool", "tool_call_id": "call_634136ca9e", "content": "{\"translated_text\": \"¿Dónde está la farmacia más cercana?\"}"}, {"role": "assistant", "content": "That would be « ¿Dónde está la farmacia más cercana? »."}]} {"tools": [{"name": "get_weather", "description": "Get the current weather conditions for a city", "parameters": {"type": "object", "properties": {"city": {"type": "string", "description": "City name, e.g. 'Paris' or '北京'"}, "unit": {"type": "string", "description": "Temperature unit for the report", "default": "celsius"}}, "required": ["city"]}}, {"name": "get_time", "description": "Get the current local time for an IANA timezone", "parameters": {"type": "object", "properties": {"timezone": {"type": "string", "description": "IANA timezone identifier such as 'Asia/Shanghai'"}}, "required": ["timezone"]}}], "messages": [{"role": "user", "content": "What's the weather in Paris right now? And what time is it there?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_b8337bdc8a", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Paris\",\"unit\":\"celsius\"}"}}]}, {"role": "tool", "tool_call_id": "call_b8337bdc8a", "content": "{\"temperature\": 18.5, \"condition\": \"partly cloudy\", \"unit\": \"celsius\"}"}, {"role": "assistant", "content": "It's currently 18.5°C and partly cloudy in Paris."}, {"role": "user", "content": "Great, and the local time?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_0f66a32bc2", "type": "function", "function": {"name": "get_time", "arguments": "{\"timezone\":\"Europe/Paris\"}"}}]}, {"role": "tool", "tool_call_id": "call_0f66a32bc2", "content": "{\"time\": \"14:30\", \"date\": \"2026-09-18\", \"timezone\": \"Europe/Paris\"}"}, {"role": "assistant", "content": "It's 14:30 in Paris right now."}]} {"tools": [{"name": "create_calendar_event", "description": "Create an event on the user's calendar", "parameters": {"type": "object", "properties": {"title": {"type": "string", "description": "Title of the event"}, "start": {"type": "string", "description": "Start time of the event in ISO 8601 format"}, "end": {"type": "string", "description": "End time of the event in ISO 8601 format"}, "location": {"type": "string", "description": "Location of the event"}, "attendees": {"type": "array", "description": "Email addresses of people to invite"}}, "required": ["title", "start", "end"]}}], "messages": [{"role": "system", "content": "You are Pim, an executive assistant who answers in bullet points."}, {"role": "user", "content": "Block 30 minutes tomorrow at 15:00 for 'espresso machine descaling', no location."}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_95c971ddb8", "type": "function", "function": {"name": "create_calendar_event", "arguments": "{\"title\":\"espresso machine descaling\",\"start\":\"2026-09-19T15:00\",\"end\":\"2026-09-19T15:30\"}"}}]}, {"role": "tool", "tool_call_id": "call_95c971ddb8", "content": "{\"status\": \"created\", \"event_id\": \"cal_1b07\"}"}, {"role": "assistant", "content": "Blocked: 'espresso machine descaling', tomorrow 15:00–15:30."}]} {"tools": [{"name": "play_music", "description": "Play music matching the given filters", "parameters": {"type": "object", "properties": {"track": {"type": "string", "description": "Track title to look for", "default": ""}, "artist": {"type": "string", "description": "Artist name to look for", "default": ""}, "genre": {"type": "string", "description": "Music genre such as 'jazz' or 'ambient'", "default": "pop"}}, "required": []}}], "messages": [{"role": "user", "content": "Play some Faye Wong, anything you can find."}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_a78e66247b", "type": "function", "function": {"name": "play_music", "arguments": "{\"artist\":\"Faye Wong\"}"}}]}, {"role": "tool", "tool_call_id": "call_a78e66247b", "content": "{\"now_playing\": \"紅豆 — Faye Wong\", \"queue_length\": 8}"}, {"role": "assistant", "content": "Playing 紅豆 by Faye Wong, with 8 more queued."}]} {"tools": [{"name": "get_route", "description": "Get a travel route between two places", "parameters": {"type": "object", "properties": {"origin": {"type": "string", "description": "Starting address or point of interest"}, "destination": {"type": "string", "description": "Destination address or point of interest"}, "mode": {"type": "string", "description": "Travel mode: 'driving', 'walking' or 'transit'", "default": "driving"}}, "required": ["origin", "destination"]}}], "messages": [{"role": "user", "content": "Quickest transit route from Shibuya to Ueno?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_c26a924a89", "type": "function", "function": {"name": "get_route", "arguments": "{\"origin\":\"Shibuya\",\"destination\":\"Ueno\",\"mode\":\"transit\"}"}}]}, {"role": "tool", "tool_call_id": "call_c26a924a89", "content": "{\"line\": \"JR Yamanote Line\", \"duration_min\": 26, \"transfers\": 0}"}, {"role": "assistant", "content": "The JR Yamanote Line runs Shibuya → Ueno direct in about 26 minutes."}]} {"tools": [{"name": "image_search", "description": "Search the web for images matching a query", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "Search query describing the desired images"}, "safe_search": {"type": "boolean", "description": "Whether to filter out explicit results", "default": true}}, "required": ["query"]}}], "messages": [{"role": "user", "content": "Recommend a naming scheme for my retro emulation station."}, {"role": "assistant", "content": "Name the machine after CRT phosphor types: 'P22', 'Tinted-Glass', 'Scanline', and 'Vblank'. They age well on a label maker."}]} {"tools": [{"name": "evaluate_expression", "description": "Evaluate a mathematical expression and return the numeric result", "parameters": {"type": "object", "properties": {"expression": {"type": "string", "description": "The expression to evaluate, e.g. '12*(3+4)'"}, "precision": {"type": "integer", "description": "Number of decimal places in the returned result", "default": 2}}, "required": ["expression"]}}], "messages": [{"role": "user", "content": "What is 2 to the power of 10, divided by 4? Round it to zero decimals."}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_69bdc6680a", "type": "function", "function": {"name": "evaluate_expression", "arguments": "{\"expression\":\"2**10 / 4\",\"precision\":0}"}}]}, {"role": "tool", "tool_call_id": "call_69bdc6680a", "content": "{\"result\": 256}"}, {"role": "assistant", "content": "2^10 ÷ 4 = 256."}]} {"tools": [{"name": "translate_text", "description": "Translate a piece of text between languages", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to translate"}, "target_language": {"type": "string", "description": "Target language code, e.g. 'fr' or 'de'"}, "source_language": {"type": "string", "description": "Source language code, when it is known"}}, "required": ["text", "target_language"]}}], "messages": [{"role": "system", "content": "You are Anaïs, a literary translator EN↔FR with strong opinions about semicolons."}, {"role": "user", "content": "How would you render 'To be, or not to be, that is the question' in French?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_b65382bc5a", "type": "function", "function": {"name": "translate_text", "arguments": "{\"text\":\"To be, or not to be, that is the question\",\"target_language\":\"fr\"}"}}]}, {"role": "tool", "tool_call_id": "call_b65382bc5a", "content": "{\"translated_text\": \"Être ou ne pas être, telle est la question.\"}"}, {"role": "assistant", "content": "« Être ou ne pas être, telle est la question. »"}]} {"tools": [{"name": "air_quality", "description": "Get the air quality index (空气质量指数) for a city", "parameters": {"type": "object", "properties": {"city": {"type": "string", "description": "City to check the air quality for"}, "pollutant": {"type": "string", "description": "Restrict the report to a single pollutant such as 'pm25'"}}, "required": ["city"]}}], "messages": [{"role": "user", "content": "What's the PM2.5 reading in Paris right now?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_ebebce512e", "type": "function", "function": {"name": "air_quality", "arguments": "{\"city\":\"Paris\",\"pollutant\":\"pm25\"}"}}]}, {"role": "tool", "tool_call_id": "call_ebebce512e", "content": "{\"aqi\": 31, \"category\": \"good\", \"pollutant\": \"pm25\", \"concentration_ug_m3\": 7.4}"}, {"role": "assistant", "content": "Paris PM2.5 is 7.4 µg/m³ — AQI 31, good."}]} {"tools": [{"name": "stock_price", "description": "Fetch the latest stock price for a ticker symbol", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "Ticker symbol, e.g. 'AAPL' or 'MSFT'"}, "format": {"type": "string", "description": "Response format, either 'json' or 'csv'", "default": "json"}}, "required": ["symbol"]}}, {"name": "convert_currency", "description": "Convert an amount between two currencies using the latest exchange rates", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "Amount of money to convert"}, "from_currency": {"type": "string", "description": "ISO code of the source currency"}, "to_currency": {"type": "string", "description": "ISO code of the target currency"}}, "required": ["amount", "from_currency", "to_currency"]}}], "messages": [{"role": "user", "content": "What did the S&P 500 close at yesterday?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_c129fca1b4", "type": "function", "function": {"name": "stock_price", "arguments": "{\"symbol\":\"^GSPC\"}"}}]}, {"role": "tool", "tool_call_id": "call_c129fca1b4", "content": "{\"symbol\": \"^GSPC\", \"price\": 5137.08, \"change\": \"+0.57%\"}"}, {"role": "assistant", "content": "The S&P 500 closed at 5,137.08, up 0.57%."}, {"role": "user", "content": "And what's that many dollars in Swiss francs?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_f8ebc43d9c", "type": "function", "function": {"name": "convert_currency", "arguments": "{\"amount\":5137.08,\"from_currency\":\"USD\",\"to_currency\":\"CHF\"}"}}]}, {"role": "tool", "tool_call_id": "call_f8ebc43d9c", "content": "{\"amount\": 5137.08, \"from\": \"USD\", \"to\": \"CHF\", \"result\": 4492.15}"}, {"role": "assistant", "content": "5,137.08 USD is 4,492.15 CHF at the current rate."}]} {"tools": [{"name": "send_email", "description": "Send an email on the user's behalf", "parameters": {"type": "object", "properties": {"to": {"type": "string", "description": "Recipient email address"}, "subject": {"type": "string", "description": "Subject line of the email"}, "body": {"type": "string", "description": "Plain-text body of the email"}, "cc": {"type": "array", "description": "Additional recipient addresses to copy"}}, "required": ["to", "subject", "body"]}}], "messages": [{"role": "user", "content": "Email the landlord: to 'building@example.com', subject 'Package room key', body 'The fob for the package room stopped working again.', and cc 'sup@example.com'."}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_76af489d65", "type": "function", "function": {"name": "send_email", "arguments": "{\"to\":\"building@example.com\",\"subject\":\"Package room key\",\"body\":\"The fob for the package room stopped working again.\",\"cc\":[\"sup@example.com\"]}"}}]}, {"role": "tool", "tool_call_id": "call_76af489d65", "content": "{\"status\": \"sent\", \"message_id\": \"em_8125\"}"}, {"role": "assistant", "content": "Sent to the landlord with sup@example.com in cc."}]} {"tools": [{"name": "Zip Code Details", "description": "Look up city and county information for a US ZIP code", "parameters": {"type": "object", "properties": {"postal_code": {"type": "string", "description": "5-digit US ZIP code"}, "country": {"type": "string", "description": "ISO country code for the lookup", "default": "us"}}, "required": ["postal_code"]}}], "messages": [{"role": "user", "content": "What area does ZIP 90210 cover?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_aca5fb306d", "type": "function", "function": {"name": "Zip Code Details", "arguments": "{\"postal_code\":\"90210\"}"}}]}, {"role": "tool", "tool_call_id": "call_aca5fb306d", "content": "{\"city\": \"Beverly Hills\", \"county\": \"Los Angeles\", \"state\": \"CA\"}"}, {"role": "assistant", "content": "90210 is Beverly Hills, Los Angeles County, California."}]} {"tools": [{"name": "play_music", "description": "Play music matching the given filters", "parameters": {"type": "object", "properties": {"track": {"type": "string", "description": "Track title to look for", "default": ""}, "artist": {"type": "string", "description": "Artist name to look for", "default": ""}, "genre": {"type": "string", "description": "Music genre such as 'jazz' or 'ambient'", "default": "pop"}}, "required": []}}], "messages": [{"role": "user", "content": "Play some Faye Wong, anything you can find."}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_977d8d9aeb", "type": "function", "function": {"name": "play_music", "arguments": "{\"artist\":\"Faye Wong\"}"}}]}, {"role": "tool", "tool_call_id": "call_977d8d9aeb", "content": "{\"now_playing\": \"紅豆 — Faye Wong\", \"queue_length\": 8}"}, {"role": "assistant", "content": "Playing 紅豆 by Faye Wong, with 8 more queued."}]} {"tools": [{"name": "sports_scores", "description": "Get final scores for a league on a given date", "parameters": {"type": "object", "properties": {"league": {"type": "string", "description": "League code, e.g. 'nba' or 'epl'"}, "date": {"type": "string", "description": "Match date in YYYY-MM-DD format"}}, "required": ["league"]}}], "messages": [{"role": "user", "content": "Final scores in the Premier League on 2026-05-15, please."}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_6135a7c5c2", "type": "function", "function": {"name": "sports_scores", "arguments": "{\"league\":\"epl\",\"date\":\"2026-05-15\"}"}}]}, {"role": "tool", "tool_call_id": "call_6135a7c5c2", "content": "{\"games\": [{\"home\": \"Arsenal\", \"away\": \"Everton\", \"score\": \"3-1\"}, {\"home\": \"Chelsea\", \"away\": \"Brighton\", \"score\": \"2-2\"}]}"}, {"role": "assistant", "content": "Arsenal beat Everton 3–1 and Chelsea drew Brighton 2–2."}]} {"tools": [{"name": "image_search", "description": "Search the web for images matching a query", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "Search query describing the desired images"}, "safe_search": {"type": "boolean", "description": "Whether to filter out explicit results", "default": true}}, "required": ["query"]}}], "messages": [{"role": "user", "content": "Find me a still of the rain scene in My Neighbour Totoro."}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_4a92b16206", "type": "function", "function": {"name": "image_search", "arguments": "{\"query\":\"totoro rain scene still\",\"safe_search\":true}"}}]}, {"role": "tool", "tool_call_id": "call_4a92b16206", "content": "{\"results\": 17, \"top_match\": \"totoro_bus_stop_rain.jpg\", \"width\": 1920, \"height\": 1080}"}, {"role": "assistant", "content": "Found 17 stills — top match is the bus-stop rain scene, 1920×1080."}]} {"tools": [{"name": "crypto_price", "description": "Get the current market price of a cryptocurrency", "parameters": {"type": "object", "properties": {"coin": {"type": "string", "description": "Coin identifier such as 'bitcoin' or 'ethereum'"}, "vs_currency": {"type": "string", "description": "Fiat currency the price is quoted in", "default": "usd"}}, "required": ["coin"]}}], "messages": [{"role": "user", "content": "What's Solana going for?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_6f6ef5c9b4", "type": "function", "function": {"name": "crypto_price", "arguments": "{\"coin\":\"solana\"}"}}]}, {"role": "tool", "tool_call_id": "call_6f6ef5c9b4", "content": "{\"coin\": \"solana\", \"price\": 146.32, \"vs_currency\": \"usd\"}"}, {"role": "assistant", "content": "Solana is at $146.32."}]}