1 2 3 4
| [HumanMessage(content='whats the weather in Beijing?', additional_kwargs={}, response_metadata={}, id='2c31c734-c1c6-4014-a569-c3a3cebc06da'), AIMessage(content='', additional_kwargs={'tool_calls': [{'function': {'name': 'tavily_search_results_json', 'arguments': '{"query": "weather in Beijing"}'}, 'index': 0, 'id': 'call_ea3d6f7e7b2b4c468e08db', 'type': 'function'}]}, response_metadata={'model_name': 'qwen-max', 'finish_reason': 'tool_calls', 'request_id': '4cb2e32c-cbb0-9dab-8b96-6e8c8557101a', 'token_usage': {'input_tokens': 212, 'output_tokens': 22, 'prompt_tokens_details': {'cached_tokens': 0}, 'total_tokens': 234}}, id='run-ff14cb98-e3af-4d58-b414-b24db3e131d9-0', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'weather in Beijing'}, 'id': 'call_ea3d6f7e7b2b4c468e08db', 'type': 'tool_call'}]), ToolMessage(content='[{"title": "Beijing weather in March 2025 ⋆ Beijing temperature in March ...", "url": "https://www.meteoprog.com/weather/Beijing/month/march/", "content": "Beijing (China) weather in March 2025 ☀️ Accurate weather forecast for Beijing in ... 30 Mar. +18°+7°. 31 Mar. +18°+6°. 1 Apr. +17°+5°. 2 Apr. +18°+5°. 3 Apr. +19°", "score": 0.92588276}, {"title": "Weather in Beijing", "url": "https://www.weatherapi.com/", "content": "{\'location\': {\'name\': \'Beijing\', \'region\': \'Beijing\', \'country\': \'China\', \'lat\': 39.9289, \'lon\': 116.3883, \'tz_id\': \'Asia/Shanghai\', \'localtime_epoch\': 1743323294, \'localtime\': \'2025-03-30 16:28\'}, \'current\': {\'last_updated_epoch\': 1743322500, \'last_updated\': \'2025-03-30 16:15\', \'temp_c\': 15.0, \'temp_f\': 59.0, \'is_day\': 1, \'condition\': {\'text\': \'Sunny\', \'icon\': \'//cdn.weatherapi.com/weather/64x64/day/113.png\', \'code\': 1000}, \'wind_mph\': 8.7, \'wind_kph\': 14.0, \'wind_degree\': 188, \'wind_dir\': \'S\', \'pressure_mb\': 1022.0, \'pressure_in\': 30.18, \'precip_mm\': 0.0, \'precip_in\': 0.0, \'humidity\': 12, \'cloud\': 0, \'feelslike_c\': 14.2, \'feelslike_f\': 57.5, \'windchill_c\': 13.1, \'windchill_f\': 55.5, \'heatindex_c\': 14.1, \'heatindex_f\': 57.4, \'dewpoint_c\': -14.4, \'dewpoint_f\': 6.1, \'vis_km\': 10.0, \'vis_miles\': 6.0, \'uv\': 1.2, \'gust_mph\': 10.0, \'gust_kph\': 16.2}}", "score": 0.9137338}]', name='tavily_search_results_json', id='3ae1be75-a463-4e07-8d2d-d77353953703', tool_call_id='call_ea3d6f7e7b2b4c468e08db', artifact={'query': 'weather in Beijing', 'follow_up_questions': None, 'answer': None, 'images': [], 'results': [{'url': 'https://www.meteoprog.com/weather/Beijing/month/march/', 'title': 'Beijing weather in March 2025 ⋆ Beijing temperature in March ...', 'content': 'Beijing (China) weather in March 2025 ☀️ Accurate weather forecast for Beijing in ... 30 Mar. +18°+7°. 31 Mar. +18°+6°. 1 Apr. +17°+5°. 2 Apr. +18°+5°. 3 Apr. +19°', 'score': 0.92588276, 'raw_content': None}, {'title': 'Weather in Beijing', 'url': 'https://www.weatherapi.com/', 'content': "{'location': {'name': 'Beijing', 'region': 'Beijing', 'country': 'China', 'lat': 39.9289, 'lon': 116.3883, 'tz_id': 'Asia/Shanghai', 'localtime_epoch': 1743323294, 'localtime': '2025-03-30 16:28'}, 'current': {'last_updated_epoch': 1743322500, 'last_updated': '2025-03-30 16:15', 'temp_c': 15.0, 'temp_f': 59.0, 'is_day': 1, 'condition': {'text': 'Sunny', 'icon': '//cdn.weatherapi.com/weather/64x64/day/113.png', 'code': 1000}, 'wind_mph': 8.7, 'wind_kph': 14.0, 'wind_degree': 188, 'wind_dir': 'S', 'pressure_mb': 1022.0, 'pressure_in': 30.18, 'precip_mm': 0.0, 'precip_in': 0.0, 'humidity': 12, 'cloud': 0, 'feelslike_c': 14.2, 'feelslike_f': 57.5, 'windchill_c': 13.1, 'windchill_f': 55.5, 'heatindex_c': 14.1, 'heatindex_f': 57.4, 'dewpoint_c': -14.4, 'dewpoint_f': 6.1, 'vis_km': 10.0, 'vis_miles': 6.0, 'uv': 1.2, 'gust_mph': 10.0, 'gust_kph': 16.2}}", 'score': 0.9137338, 'raw_content': None}], 'response_time': 2.25}), AIMessage(content='The current weather in Beijing, China is as follows:\n\n- Temperature: 15.0°C (59.0°F)\n- Condition: Sunny\n- Wind: 14.0 kph (8.7 mph) from the South\n- Pressure: 1022.0 mb (30.18 in)\n- Humidity: 12%\n- Feels like: 14.2°C (57.5°F)\n\n\n\nThis information was last updated on March 30, 2025, at 16:15 local time.', additional_kwargs={}, response_metadata={'model_name': 'qwen-max', 'finish_reason': 'stop', 'request_id': '3bb7c52a-37a1-9027-8c4b-f84e53ff7c42', 'token_usage': {'input_tokens': 868, 'output_tokens': 146, 'prompt_tokens_details': {'cached_tokens': 0}, 'total_tokens': 1014}}, id='run-f8728282-0494-4ee8-96c2-c338b16504fe-0')]
|