diff --git a/.gitignore b/.gitignore index 3ae125bc..b30631b0 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ dataset bin .DS_Store *.sql -*.png \ No newline at end of file +*.png +*.log \ No newline at end of file diff --git a/examples/agent_of_flo_ai.ipynb b/examples/agent_of_flo_ai.ipynb index 3a0828bd..ede50487 100644 --- a/examples/agent_of_flo_ai.ipynb +++ b/examples/agent_of_flo_ai.ipynb @@ -22,6 +22,15 @@ "execution_count": 1, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Log level -> INFO\n", + "Log level -> INFO\n", + "Log level -> INFO\n" + ] + }, { "data": { "text/plain": [ @@ -36,6 +45,8 @@ "source": [ "from flo_ai import Flo\n", "from flo_ai import FloSession\n", + "from flo_ai.common.flo_logger import get_logger\n", + "from flo_ai.common.flo_langchain_logger import FloLangchainLogger\n", "from langchain_openai import ChatOpenAI, OpenAIEmbeddings\n", "\n", "from dotenv import load_dotenv\n", @@ -52,25 +63,49 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 6, "metadata": {}, "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-21 12:58:25,784 - SESSION - INFO - New FloSession created with ID: 9b56b8e0-bc8f-4c4c-b8a7-4a9695a7c97a\n", + "2024-09-21 12:58:25,785 - SESSION - INFO - Tool 'InternetSearchTool' registered for session 9b56b8e0-bc8f-4c4c-b8a7-4a9695a7c97a\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Log level -> ERROR\n" + ] + }, { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 2, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from langchain_community.tools.tavily_search.tool import TavilySearchResults\n", + "from flo_ai.common.flo_langchain_logger import FloLangchainLogger\n", "\n", "llm = ChatOpenAI(temperature=0, model_name='gpt-4o-mini')\n", - "session = FloSession(llm)\n", + "\n", + "# Create custom FloLangchainLogger\n", + "# custom_langchainlog_handler = FloLangchainLogger(\"CustomFloCallback\", \"DEBUG\")\n", + "\n", + "session = FloSession(\n", + " llm, \n", + " # custom_langchainlog_handler=custom_langchainlog_handler,\n", + " log_level=\"ERROR\"\n", + ")\n", "\n", "session.register_tool(\n", " name=\"InternetSearchTool\", \n", @@ -91,7 +126,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -111,9 +146,18 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 8, "metadata": {}, "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-21 12:58:31,259 - BUILDER - INFO - Building Flo instance from YAML\n", + "2024-09-21 12:58:31,265 - COMMON - INFO - Flo instance created for session 9b56b8e0-bc8f-4c4c-b8a7-4a9695a7c97a\n", + "2024-09-21 12:58:31,266 - COMMON - INFO - Invoking query for session 9b56b8e0-bc8f-4c4c-b8a7-4a9695a7c97a: Whats the whether in california\n" + ] + }, { "name": "stdout", "output_type": "stream", @@ -125,26 +169,423 @@ "Invoking: `tavily_search_results_json` with `{'query': 'California weather October 2023'}`\n", "\n", "\n", - "\u001b[0m\u001b[36;1m\u001b[1;3m[{'url': 'https://www.weatherapi.com/', 'content': \"{'location': {'name': 'California City', 'region': 'California', 'country': 'United States of America', 'lat': 35.13, 'lon': -117.99, 'tz_id': 'America/Los_Angeles', 'localtime_epoch': 1725364509, 'localtime': '2024-09-03 04:55'}, 'current': {'last_updated_epoch': 1725363900, 'last_updated': '2024-09-03 04:45', 'temp_c': 23.1, 'temp_f': 73.6, 'is_day': 0, 'condition': {'text': 'Clear', 'icon': '//cdn.weatherapi.com/weather/64x64/night/113.png', 'code': 1000}, 'wind_mph': 2.2, 'wind_kph': 3.6, 'wind_degree': 10, 'wind_dir': 'N', 'pressure_mb': 1016.0, 'pressure_in': 30.0, 'precip_mm': 0.0, 'precip_in': 0.0, 'humidity': 31, 'cloud': 0, 'feelslike_c': 23.8, 'feelslike_f': 74.9, 'windchill_c': 22.7, 'windchill_f': 72.9, 'heatindex_c': 23.7, 'heatindex_f': 74.7, 'dewpoint_c': 5.0, 'dewpoint_f': 41.0, 'vis_km': 16.0, 'vis_miles': 9.0, 'uv': 1.0, 'gust_mph': 8.5, 'gust_kph': 13.6}}\"}, {'url': 'https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023', 'content': 'Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 \"Hg (Oct 7, 9 ...'}, {'url': 'https://world-weather.info/forecast/usa/california/october-2023/', 'content': 'Detailed ⚡ California Weather Forecast for October 2023 - day/night 🌡️ temperatures, precipitations - World-Weather.info'}, {'url': 'https://www.meteoprog.com/weather/California-california/month/october/', 'content': 'California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \"near me\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG'}, {'url': 'https://www.latimes.com/environment/story/2023-10-18/california-heat-wave-2023-when-will-it-end', 'content': 'October heat wave could break records in California, but chance of rain awaits next week. Oct. 19, 2023. The unseasonably hot weather brings increased concern for heat-related illness, especially ...'}]\u001b[0m\u001b[32;1m\u001b[1;3mThe weather in California during October 2023 has been characterized by some unseasonably hot days. For instance, on October 5, temperatures reached a high of 92°F (approximately 33°C). The humidity levels have also varied, with reports indicating a peak of 100% on October 7.\n", + "\u001b[0m\u001b[36;1m\u001b[1;3m[{'url': 'https://www.weatherapi.com/', 'content': \"{'location': {'name': 'California City', 'region': 'California', 'country': 'United States of America', 'lat': 35.13, 'lon': -117.99, 'tz_id': 'America/Los_Angeles', 'localtime_epoch': 1726903691, 'localtime': '2024-09-21 00:28'}, 'current': {'last_updated_epoch': 1726902900, 'last_updated': '2024-09-21 00:15', 'temp_c': 16.8, 'temp_f': 62.2, 'is_day': 0, 'condition': {'text': 'Clear', 'icon': '//cdn.weatherapi.com/weather/64x64/night/113.png', 'code': 1000}, 'wind_mph': 4.5, 'wind_kph': 7.2, 'wind_degree': 264, 'wind_dir': 'W', 'pressure_mb': 1011.0, 'pressure_in': 29.86, 'precip_mm': 0.0, 'precip_in': 0.0, 'humidity': 64, 'cloud': 0, 'feelslike_c': 16.8, 'feelslike_f': 62.2, 'windchill_c': 15.6, 'windchill_f': 60.0, 'heatindex_c': 15.8, 'heatindex_f': 60.5, 'dewpoint_c': 10.1, 'dewpoint_f': 50.2, 'vis_km': 16.0, 'vis_miles': 9.0, 'uv': 1.0, 'gust_mph': 7.8, 'gust_kph': 12.5}}\"}, {'url': 'https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023', 'content': 'Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...'}, {'url': 'https://www.meteoprog.com/weather/California-california/month/october/', 'content': 'California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \"near me\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG'}, {'url': 'https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States', 'content': 'October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim'}, {'url': 'https://world-weather.info/forecast/usa/los_angeles/october-2023/', 'content': 'Extended weather forecast in Los Angeles. Hourly Week 10 days 14 days 30 days Year. Detailed ⚡ Los Angeles Weather Forecast for October 2023 - day/night 🌡️ temperatures, precipitations - World-Weather.info.'}]\u001b[0m\u001b[32;1m\u001b[1;3mThe current weather in California is as follows:\n", + "\n", + "- **Location**: California City\n", + "- **Temperature**: 16.8°C (62.2°F)\n", + "- **Condition**: Clear\n", + "- **Wind**: 4.5 mph (7.2 kph) from the west\n", + "- **Humidity**: 64%\n", + "- **Visibility**: 16 km (9 miles)\n", + "\n", + "For more detailed weather information, you can check the following resources:\n", + "- [Weather API](https://www.weatherapi.com/)\n", + "- [Time and Date - Los Angeles Weather](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\n", + "- [Meteoprog - California Weather](https://www.meteoprog.com/weather/California-california/month/october/)\n", + "- [Weather Spark - Anaheim Weather History](https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States)\n", + "\n", + "If you need specific information about a particular city in California, let me know!\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" + ] + }, + { + "data": { + "text/plain": [ + "{'messages': [HumanMessage(content='Whats the whether in california')],\n", + " 'output': 'The current weather in California is as follows:\\n\\n- **Location**: California City\\n- **Temperature**: 16.8°C (62.2°F)\\n- **Condition**: Clear\\n- **Wind**: 4.5 mph (7.2 kph) from the west\\n- **Humidity**: 64%\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following resources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date - Los Angeles Weather](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog - California Weather](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [Weather Spark - Anaheim Weather History](https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States)\\n\\nIf you need specific information about a particular city in California, let me know!'}" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "flo = Flo.build(session, simple_weather_checking_agent,log_level=\"DEBUG\")\n", + "\n", + "flo.invoke(\"Whats the whether in california\")" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-20 00:38:07,862 - BUILDER - INFO - Building Flo instance from YAML\n", + "2024-09-20 00:38:07,870 - COMMON - INFO - Flo instance created for session dd5c4a4c-4390-46bc-945d-eb9474e63702\n", + "2024-09-20 00:38:07,872 - COMMON - INFO - Invoking query for session dd5c4a4c-4390-46bc-945d-eb9474e63702: Whats the whether in california\n", + "2024-09-20 00:38:07,876 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'messages': [HumanMessage(content='Whats the whether in california')]}\n", + "2024-09-20 00:38:07,901 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:08,012 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:08,035 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:08,038 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:08,041 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: []\n", + "2024-09-20 00:38:08,042 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: {'agent_scratchpad': []}\n", + "2024-09-20 00:38:08,043 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: {'messages': [HumanMessage(content='Whats the whether in california')], 'intermediate_steps': [], 'agent_scratchpad': []}\n", + "2024-09-20 00:38:08,045 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'messages': [HumanMessage(content='Whats the whether in california')], 'intermediate_steps': [], 'agent_scratchpad': []}\n", + "2024-09-20 00:38:08,047 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: messages=[SystemMessage(content='Given the city name you are capable of answering the latest whether this time of the year by searching the internet\\n'), HumanMessage(content='Whats the whether in california')]\n", + "2024-09-20 00:38:08,048 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onLLMStart: ['System: Given the city name you are capable of answering the latest whether this time of the year by searching the internet\\n\\nHuman: Whats the whether in california']\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-20 00:38:09,158 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,160 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,171 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,173 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,196 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,199 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,215 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,218 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,359 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,364 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,367 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,370 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:09,373 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onLLMEnd: [[ChatGenerationChunk(generation_info={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, message=AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}]))]]\n", + "2024-09-20 00:38:09,375 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: content='' additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]} response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'} id='run-456fe998-ec19-48fa-ad0b-c22361d37f68' tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}] tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}]\n", + "2024-09-20 00:38:09,381 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: [ToolAgentAction(tool='tavily_search_results_json', tool_input={'query': 'California weather October 2023'}, log=\"\\nInvoking: `tavily_search_results_json` with `{'query': 'California weather October 2023'}`\\n\\n\\n\", message_log=[AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}])], tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk')]\n", + "2024-09-20 00:38:09,383 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: [ToolAgentAction(tool='tavily_search_results_json', tool_input={'query': 'California weather October 2023'}, log=\"\\nInvoking: `tavily_search_results_json` with `{'query': 'California weather October 2023'}`\\n\\n\\n\", message_log=[AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}])], tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk')]\n", + "2024-09-20 00:38:09,384 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onAgentAction: tavily_search_results_json - {'query': 'California weather October 2023'}\n", + "2024-09-20 00:38:09,388 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onToolStart: {'query': 'California weather October 2023'}\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\u001b[32;1m\u001b[1;3m\n", + "Invoking: `tavily_search_results_json` with `{'query': 'California weather October 2023'}`\n", + "\n", + "\n", + "\u001b[0m" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-20 00:38:13,560 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onToolEnd: [{'url': 'https://www.weatherapi.com/', 'content': \"{'location': {'name': 'California City', 'region': 'California', 'country': 'United States of America', 'lat': 35.13, 'lon': -117.99, 'tz_id': 'America/Los_Angeles', 'localtime_epoch': 1726772854, 'localtime': '2024-09-19 12:07'}, 'current': {'last_updated_epoch': 1726772400, 'last_updated': '2024-09-19 12:00', 'temp_c': 22.3, 'temp_f': 72.1, 'is_day': 1, 'condition': {'text': 'Sunny', 'icon': '//cdn.weatherapi.com/weather/64x64/day/113.png', 'code': 1000}, 'wind_mph': 3.4, 'wind_kph': 5.4, 'wind_degree': 153, 'wind_dir': 'SSE', 'pressure_mb': 1013.0, 'pressure_in': 29.91, 'precip_mm': 0.0, 'precip_in': 0.0, 'humidity': 35, 'cloud': 0, 'feelslike_c': 23.9, 'feelslike_f': 75.1, 'windchill_c': 24.3, 'windchill_f': 75.7, 'heatindex_c': 24.5, 'heatindex_f': 76.0, 'dewpoint_c': 7.6, 'dewpoint_f': 45.6, 'vis_km': 16.0, 'vis_miles': 9.0, 'uv': 6.0, 'gust_mph': 3.9, 'gust_kph': 6.2}}\"}, {'url': 'https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023', 'content': 'Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...'}, {'url': 'https://www.meteoprog.com/weather/California-california/month/october/', 'content': 'California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \"near me\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG'}, {'url': 'https://world-weather.info/forecast/usa/california/october-2023/', 'content': \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world's temperature today Temperature units\"}, {'url': 'https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States', 'content': 'October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim'}]\n", + "2024-09-20 00:38:13,574 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:13,585 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:13,591 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:13,595 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'input': ''}\n", + "2024-09-20 00:38:13,597 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: [AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}]), ToolMessage(content='[{\"url\": \"https://www.weatherapi.com/\", \"content\": \"{\\'location\\': {\\'name\\': \\'California City\\', \\'region\\': \\'California\\', \\'country\\': \\'United States of America\\', \\'lat\\': 35.13, \\'lon\\': -117.99, \\'tz_id\\': \\'America/Los_Angeles\\', \\'localtime_epoch\\': 1726772854, \\'localtime\\': \\'2024-09-19 12:07\\'}, \\'current\\': {\\'last_updated_epoch\\': 1726772400, \\'last_updated\\': \\'2024-09-19 12:00\\', \\'temp_c\\': 22.3, \\'temp_f\\': 72.1, \\'is_day\\': 1, \\'condition\\': {\\'text\\': \\'Sunny\\', \\'icon\\': \\'//cdn.weatherapi.com/weather/64x64/day/113.png\\', \\'code\\': 1000}, \\'wind_mph\\': 3.4, \\'wind_kph\\': 5.4, \\'wind_degree\\': 153, \\'wind_dir\\': \\'SSE\\', \\'pressure_mb\\': 1013.0, \\'pressure_in\\': 29.91, \\'precip_mm\\': 0.0, \\'precip_in\\': 0.0, \\'humidity\\': 35, \\'cloud\\': 0, \\'feelslike_c\\': 23.9, \\'feelslike_f\\': 75.1, \\'windchill_c\\': 24.3, \\'windchill_f\\': 75.7, \\'heatindex_c\\': 24.5, \\'heatindex_f\\': 76.0, \\'dewpoint_c\\': 7.6, \\'dewpoint_f\\': 45.6, \\'vis_km\\': 16.0, \\'vis_miles\\': 9.0, \\'uv\\': 6.0, \\'gust_mph\\': 3.9, \\'gust_kph\\': 6.2}}\"}, {\"url\": \"https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023\", \"content\": \"Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...\"}, {\"url\": \"https://www.meteoprog.com/weather/California-california/month/october/\", \"content\": \"California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \\\\\"near me\\\\\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG\"}, {\"url\": \"https://world-weather.info/forecast/usa/california/october-2023/\", \"content\": \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world\\'s temperature today Temperature units\"}, {\"url\": \"https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States\", \"content\": \"October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim\"}]', additional_kwargs={'name': 'tavily_search_results_json'}, tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk')]\n", + "2024-09-20 00:38:13,598 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: {'agent_scratchpad': [AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}]), ToolMessage(content='[{\"url\": \"https://www.weatherapi.com/\", \"content\": \"{\\'location\\': {\\'name\\': \\'California City\\', \\'region\\': \\'California\\', \\'country\\': \\'United States of America\\', \\'lat\\': 35.13, \\'lon\\': -117.99, \\'tz_id\\': \\'America/Los_Angeles\\', \\'localtime_epoch\\': 1726772854, \\'localtime\\': \\'2024-09-19 12:07\\'}, \\'current\\': {\\'last_updated_epoch\\': 1726772400, \\'last_updated\\': \\'2024-09-19 12:00\\', \\'temp_c\\': 22.3, \\'temp_f\\': 72.1, \\'is_day\\': 1, \\'condition\\': {\\'text\\': \\'Sunny\\', \\'icon\\': \\'//cdn.weatherapi.com/weather/64x64/day/113.png\\', \\'code\\': 1000}, \\'wind_mph\\': 3.4, \\'wind_kph\\': 5.4, \\'wind_degree\\': 153, \\'wind_dir\\': \\'SSE\\', \\'pressure_mb\\': 1013.0, \\'pressure_in\\': 29.91, \\'precip_mm\\': 0.0, \\'precip_in\\': 0.0, \\'humidity\\': 35, \\'cloud\\': 0, \\'feelslike_c\\': 23.9, \\'feelslike_f\\': 75.1, \\'windchill_c\\': 24.3, \\'windchill_f\\': 75.7, \\'heatindex_c\\': 24.5, \\'heatindex_f\\': 76.0, \\'dewpoint_c\\': 7.6, \\'dewpoint_f\\': 45.6, \\'vis_km\\': 16.0, \\'vis_miles\\': 9.0, \\'uv\\': 6.0, \\'gust_mph\\': 3.9, \\'gust_kph\\': 6.2}}\"}, {\"url\": \"https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023\", \"content\": \"Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...\"}, {\"url\": \"https://www.meteoprog.com/weather/California-california/month/october/\", \"content\": \"California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \\\\\"near me\\\\\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG\"}, {\"url\": \"https://world-weather.info/forecast/usa/california/october-2023/\", \"content\": \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world\\'s temperature today Temperature units\"}, {\"url\": \"https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States\", \"content\": \"October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim\"}]', additional_kwargs={'name': 'tavily_search_results_json'}, tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk')]}\n", + "2024-09-20 00:38:13,600 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: {'messages': [HumanMessage(content='Whats the whether in california')], 'intermediate_steps': [(ToolAgentAction(tool='tavily_search_results_json', tool_input={'query': 'California weather October 2023'}, log=\"\\nInvoking: `tavily_search_results_json` with `{'query': 'California weather October 2023'}`\\n\\n\\n\", message_log=[AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}])], tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk'), [{'url': 'https://www.weatherapi.com/', 'content': \"{'location': {'name': 'California City', 'region': 'California', 'country': 'United States of America', 'lat': 35.13, 'lon': -117.99, 'tz_id': 'America/Los_Angeles', 'localtime_epoch': 1726772854, 'localtime': '2024-09-19 12:07'}, 'current': {'last_updated_epoch': 1726772400, 'last_updated': '2024-09-19 12:00', 'temp_c': 22.3, 'temp_f': 72.1, 'is_day': 1, 'condition': {'text': 'Sunny', 'icon': '//cdn.weatherapi.com/weather/64x64/day/113.png', 'code': 1000}, 'wind_mph': 3.4, 'wind_kph': 5.4, 'wind_degree': 153, 'wind_dir': 'SSE', 'pressure_mb': 1013.0, 'pressure_in': 29.91, 'precip_mm': 0.0, 'precip_in': 0.0, 'humidity': 35, 'cloud': 0, 'feelslike_c': 23.9, 'feelslike_f': 75.1, 'windchill_c': 24.3, 'windchill_f': 75.7, 'heatindex_c': 24.5, 'heatindex_f': 76.0, 'dewpoint_c': 7.6, 'dewpoint_f': 45.6, 'vis_km': 16.0, 'vis_miles': 9.0, 'uv': 6.0, 'gust_mph': 3.9, 'gust_kph': 6.2}}\"}, {'url': 'https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023', 'content': 'Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...'}, {'url': 'https://www.meteoprog.com/weather/California-california/month/october/', 'content': 'California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \"near me\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG'}, {'url': 'https://world-weather.info/forecast/usa/california/october-2023/', 'content': \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world's temperature today Temperature units\"}, {'url': 'https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States', 'content': 'October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim'}])], 'agent_scratchpad': [AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}]), ToolMessage(content='[{\"url\": \"https://www.weatherapi.com/\", \"content\": \"{\\'location\\': {\\'name\\': \\'California City\\', \\'region\\': \\'California\\', \\'country\\': \\'United States of America\\', \\'lat\\': 35.13, \\'lon\\': -117.99, \\'tz_id\\': \\'America/Los_Angeles\\', \\'localtime_epoch\\': 1726772854, \\'localtime\\': \\'2024-09-19 12:07\\'}, \\'current\\': {\\'last_updated_epoch\\': 1726772400, \\'last_updated\\': \\'2024-09-19 12:00\\', \\'temp_c\\': 22.3, \\'temp_f\\': 72.1, \\'is_day\\': 1, \\'condition\\': {\\'text\\': \\'Sunny\\', \\'icon\\': \\'//cdn.weatherapi.com/weather/64x64/day/113.png\\', \\'code\\': 1000}, \\'wind_mph\\': 3.4, \\'wind_kph\\': 5.4, \\'wind_degree\\': 153, \\'wind_dir\\': \\'SSE\\', \\'pressure_mb\\': 1013.0, \\'pressure_in\\': 29.91, \\'precip_mm\\': 0.0, \\'precip_in\\': 0.0, \\'humidity\\': 35, \\'cloud\\': 0, \\'feelslike_c\\': 23.9, \\'feelslike_f\\': 75.1, \\'windchill_c\\': 24.3, \\'windchill_f\\': 75.7, \\'heatindex_c\\': 24.5, \\'heatindex_f\\': 76.0, \\'dewpoint_c\\': 7.6, \\'dewpoint_f\\': 45.6, \\'vis_km\\': 16.0, \\'vis_miles\\': 9.0, \\'uv\\': 6.0, \\'gust_mph\\': 3.9, \\'gust_kph\\': 6.2}}\"}, {\"url\": \"https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023\", \"content\": \"Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...\"}, {\"url\": \"https://www.meteoprog.com/weather/California-california/month/october/\", \"content\": \"California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \\\\\"near me\\\\\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG\"}, {\"url\": \"https://world-weather.info/forecast/usa/california/october-2023/\", \"content\": \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world\\'s temperature today Temperature units\"}, {\"url\": \"https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States\", \"content\": \"October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim\"}]', additional_kwargs={'name': 'tavily_search_results_json'}, tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk')]}\n", + "2024-09-20 00:38:13,602 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'messages': [HumanMessage(content='Whats the whether in california')], 'intermediate_steps': [(ToolAgentAction(tool='tavily_search_results_json', tool_input={'query': 'California weather October 2023'}, log=\"\\nInvoking: `tavily_search_results_json` with `{'query': 'California weather October 2023'}`\\n\\n\\n\", message_log=[AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}])], tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk'), [{'url': 'https://www.weatherapi.com/', 'content': \"{'location': {'name': 'California City', 'region': 'California', 'country': 'United States of America', 'lat': 35.13, 'lon': -117.99, 'tz_id': 'America/Los_Angeles', 'localtime_epoch': 1726772854, 'localtime': '2024-09-19 12:07'}, 'current': {'last_updated_epoch': 1726772400, 'last_updated': '2024-09-19 12:00', 'temp_c': 22.3, 'temp_f': 72.1, 'is_day': 1, 'condition': {'text': 'Sunny', 'icon': '//cdn.weatherapi.com/weather/64x64/day/113.png', 'code': 1000}, 'wind_mph': 3.4, 'wind_kph': 5.4, 'wind_degree': 153, 'wind_dir': 'SSE', 'pressure_mb': 1013.0, 'pressure_in': 29.91, 'precip_mm': 0.0, 'precip_in': 0.0, 'humidity': 35, 'cloud': 0, 'feelslike_c': 23.9, 'feelslike_f': 75.1, 'windchill_c': 24.3, 'windchill_f': 75.7, 'heatindex_c': 24.5, 'heatindex_f': 76.0, 'dewpoint_c': 7.6, 'dewpoint_f': 45.6, 'vis_km': 16.0, 'vis_miles': 9.0, 'uv': 6.0, 'gust_mph': 3.9, 'gust_kph': 6.2}}\"}, {'url': 'https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023', 'content': 'Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...'}, {'url': 'https://www.meteoprog.com/weather/California-california/month/october/', 'content': 'California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \"near me\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG'}, {'url': 'https://world-weather.info/forecast/usa/california/october-2023/', 'content': \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world's temperature today Temperature units\"}, {'url': 'https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States', 'content': 'October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim'}])], 'agent_scratchpad': [AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}]), ToolMessage(content='[{\"url\": \"https://www.weatherapi.com/\", \"content\": \"{\\'location\\': {\\'name\\': \\'California City\\', \\'region\\': \\'California\\', \\'country\\': \\'United States of America\\', \\'lat\\': 35.13, \\'lon\\': -117.99, \\'tz_id\\': \\'America/Los_Angeles\\', \\'localtime_epoch\\': 1726772854, \\'localtime\\': \\'2024-09-19 12:07\\'}, \\'current\\': {\\'last_updated_epoch\\': 1726772400, \\'last_updated\\': \\'2024-09-19 12:00\\', \\'temp_c\\': 22.3, \\'temp_f\\': 72.1, \\'is_day\\': 1, \\'condition\\': {\\'text\\': \\'Sunny\\', \\'icon\\': \\'//cdn.weatherapi.com/weather/64x64/day/113.png\\', \\'code\\': 1000}, \\'wind_mph\\': 3.4, \\'wind_kph\\': 5.4, \\'wind_degree\\': 153, \\'wind_dir\\': \\'SSE\\', \\'pressure_mb\\': 1013.0, \\'pressure_in\\': 29.91, \\'precip_mm\\': 0.0, \\'precip_in\\': 0.0, \\'humidity\\': 35, \\'cloud\\': 0, \\'feelslike_c\\': 23.9, \\'feelslike_f\\': 75.1, \\'windchill_c\\': 24.3, \\'windchill_f\\': 75.7, \\'heatindex_c\\': 24.5, \\'heatindex_f\\': 76.0, \\'dewpoint_c\\': 7.6, \\'dewpoint_f\\': 45.6, \\'vis_km\\': 16.0, \\'vis_miles\\': 9.0, \\'uv\\': 6.0, \\'gust_mph\\': 3.9, \\'gust_kph\\': 6.2}}\"}, {\"url\": \"https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023\", \"content\": \"Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...\"}, {\"url\": \"https://www.meteoprog.com/weather/California-california/month/october/\", \"content\": \"California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \\\\\"near me\\\\\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG\"}, {\"url\": \"https://world-weather.info/forecast/usa/california/october-2023/\", \"content\": \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world\\'s temperature today Temperature units\"}, {\"url\": \"https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States\", \"content\": \"October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim\"}]', additional_kwargs={'name': 'tavily_search_results_json'}, tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk')]}\n", + "2024-09-20 00:38:13,603 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: messages=[SystemMessage(content='Given the city name you are capable of answering the latest whether this time of the year by searching the internet\\n'), HumanMessage(content='Whats the whether in california'), AIMessageChunk(content='', additional_kwargs={'tool_calls': [{'index': 0, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'function': {'arguments': '{\"query\":\"California weather October 2023\"}', 'name': 'tavily_search_results_json'}, 'type': 'function'}]}, response_metadata={'finish_reason': 'tool_calls', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-456fe998-ec19-48fa-ad0b-c22361d37f68', tool_calls=[{'name': 'tavily_search_results_json', 'args': {'query': 'California weather October 2023'}, 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'type': 'tool_call'}], tool_call_chunks=[{'name': 'tavily_search_results_json', 'args': '{\"query\":\"California weather October 2023\"}', 'id': 'call_BiZ1tUx2CkEuvDao92dT9JNk', 'index': 0, 'type': 'tool_call_chunk'}]), ToolMessage(content='[{\"url\": \"https://www.weatherapi.com/\", \"content\": \"{\\'location\\': {\\'name\\': \\'California City\\', \\'region\\': \\'California\\', \\'country\\': \\'United States of America\\', \\'lat\\': 35.13, \\'lon\\': -117.99, \\'tz_id\\': \\'America/Los_Angeles\\', \\'localtime_epoch\\': 1726772854, \\'localtime\\': \\'2024-09-19 12:07\\'}, \\'current\\': {\\'last_updated_epoch\\': 1726772400, \\'last_updated\\': \\'2024-09-19 12:00\\', \\'temp_c\\': 22.3, \\'temp_f\\': 72.1, \\'is_day\\': 1, \\'condition\\': {\\'text\\': \\'Sunny\\', \\'icon\\': \\'//cdn.weatherapi.com/weather/64x64/day/113.png\\', \\'code\\': 1000}, \\'wind_mph\\': 3.4, \\'wind_kph\\': 5.4, \\'wind_degree\\': 153, \\'wind_dir\\': \\'SSE\\', \\'pressure_mb\\': 1013.0, \\'pressure_in\\': 29.91, \\'precip_mm\\': 0.0, \\'precip_in\\': 0.0, \\'humidity\\': 35, \\'cloud\\': 0, \\'feelslike_c\\': 23.9, \\'feelslike_f\\': 75.1, \\'windchill_c\\': 24.3, \\'windchill_f\\': 75.7, \\'heatindex_c\\': 24.5, \\'heatindex_f\\': 76.0, \\'dewpoint_c\\': 7.6, \\'dewpoint_f\\': 45.6, \\'vis_km\\': 16.0, \\'vis_miles\\': 9.0, \\'uv\\': 6.0, \\'gust_mph\\': 3.9, \\'gust_kph\\': 6.2}}\"}, {\"url\": \"https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023\", \"content\": \"Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...\"}, {\"url\": \"https://www.meteoprog.com/weather/California-california/month/october/\", \"content\": \"California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \\\\\"near me\\\\\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG\"}, {\"url\": \"https://world-weather.info/forecast/usa/california/october-2023/\", \"content\": \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world\\'s temperature today Temperature units\"}, {\"url\": \"https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States\", \"content\": \"October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim\"}]', additional_kwargs={'name': 'tavily_search_results_json'}, tool_call_id='call_BiZ1tUx2CkEuvDao92dT9JNk')]\n", + "2024-09-20 00:38:13,605 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onLLMStart: ['System: Given the city name you are capable of answering the latest whether this time of the year by searching the internet\\n\\nHuman: Whats the whether in california\\nAI: \\nTool: [{\"url\": \"https://www.weatherapi.com/\", \"content\": \"{\\'location\\': {\\'name\\': \\'California City\\', \\'region\\': \\'California\\', \\'country\\': \\'United States of America\\', \\'lat\\': 35.13, \\'lon\\': -117.99, \\'tz_id\\': \\'America/Los_Angeles\\', \\'localtime_epoch\\': 1726772854, \\'localtime\\': \\'2024-09-19 12:07\\'}, \\'current\\': {\\'last_updated_epoch\\': 1726772400, \\'last_updated\\': \\'2024-09-19 12:00\\', \\'temp_c\\': 22.3, \\'temp_f\\': 72.1, \\'is_day\\': 1, \\'condition\\': {\\'text\\': \\'Sunny\\', \\'icon\\': \\'//cdn.weatherapi.com/weather/64x64/day/113.png\\', \\'code\\': 1000}, \\'wind_mph\\': 3.4, \\'wind_kph\\': 5.4, \\'wind_degree\\': 153, \\'wind_dir\\': \\'SSE\\', \\'pressure_mb\\': 1013.0, \\'pressure_in\\': 29.91, \\'precip_mm\\': 0.0, \\'precip_in\\': 0.0, \\'humidity\\': 35, \\'cloud\\': 0, \\'feelslike_c\\': 23.9, \\'feelslike_f\\': 75.1, \\'windchill_c\\': 24.3, \\'windchill_f\\': 75.7, \\'heatindex_c\\': 24.5, \\'heatindex_f\\': 76.0, \\'dewpoint_c\\': 7.6, \\'dewpoint_f\\': 45.6, \\'vis_km\\': 16.0, \\'vis_miles\\': 9.0, \\'uv\\': 6.0, \\'gust_mph\\': 3.9, \\'gust_kph\\': 6.2}}\"}, {\"url\": \"https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023\", \"content\": \"Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...\"}, {\"url\": \"https://www.meteoprog.com/weather/California-california/month/october/\", \"content\": \"California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \\\\\"near me\\\\\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG\"}, {\"url\": \"https://world-weather.info/forecast/usa/california/october-2023/\", \"content\": \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world\\'s temperature today Temperature units\"}, {\"url\": \"https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States\", \"content\": \"October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim\"}]']\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\u001b[36;1m\u001b[1;3m[{'url': 'https://www.weatherapi.com/', 'content': \"{'location': {'name': 'California City', 'region': 'California', 'country': 'United States of America', 'lat': 35.13, 'lon': -117.99, 'tz_id': 'America/Los_Angeles', 'localtime_epoch': 1726772854, 'localtime': '2024-09-19 12:07'}, 'current': {'last_updated_epoch': 1726772400, 'last_updated': '2024-09-19 12:00', 'temp_c': 22.3, 'temp_f': 72.1, 'is_day': 1, 'condition': {'text': 'Sunny', 'icon': '//cdn.weatherapi.com/weather/64x64/day/113.png', 'code': 1000}, 'wind_mph': 3.4, 'wind_kph': 5.4, 'wind_degree': 153, 'wind_dir': 'SSE', 'pressure_mb': 1013.0, 'pressure_in': 29.91, 'precip_mm': 0.0, 'precip_in': 0.0, 'humidity': 35, 'cloud': 0, 'feelslike_c': 23.9, 'feelslike_f': 75.1, 'windchill_c': 24.3, 'windchill_f': 75.7, 'heatindex_c': 24.5, 'heatindex_f': 76.0, 'dewpoint_c': 7.6, 'dewpoint_f': 45.6, 'vis_km': 16.0, 'vis_miles': 9.0, 'uv': 6.0, 'gust_mph': 3.9, 'gust_kph': 6.2}}\"}, {'url': 'https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023', 'content': 'Weather reports from October 2023 in Los Angeles, California, USA with highs and lows. Sep 17-18. Sign in. News. News Home; Astronomy News; Time Zone News; Calendar & Holiday News; Newsletter; Live events. ... High & Low Weather Summary for October 2023 Temperature Humidity Pressure; High: 92 °F (Oct 5, 11:53 am) 100% (Oct 7, 9:02 am) 30.11 ...'}, {'url': 'https://www.meteoprog.com/weather/California-california/month/october/', 'content': 'California (United States) weather in October 2023 ☀️ Accurate weather forecast for California in October ⛅ Detailed forecast By month Current temperature \"near me\" Weather news ⊳ Widget of weather ⊳ Water temperature | METEOPROG'}, {'url': 'https://world-weather.info/forecast/usa/california/october-2023/', 'content': \"Weather in California in October 2023 (Maryland) - Detailed Weather Forecast for a Month Weather Weather in California Weather in California in October 2023 California Weather Forecast for October 2023 is based on statistical data. 1 +77°+61° 2 +79°+63° 3 +79°+61° 4 +77°+59° 5 +75°+59° 6 +77°+66° 7 +64°+64° 8 +64°+52° 9 +66°+50° 10 +70°+55° 11 +72°+54° 12 +70°+54° 13 +68°+54° 14 +64°+54° 15 +63°+59° 16 +61°+50° 17 +63°+54° 18 +63°+50° 19 +70°+50° Average weather in October 2023 Weather in Washington, D.C.+79° Annapolis+77° Fairfax+77° Fredericksburg+77° Manassas+79° McLean+79° Mechanicsville+77° Vienna+77° Alexandria+79° Waldorf+77° Salisbury+75° Rockville+77° Woodmere+77° Windsor+75° world's temperature today Temperature units\"}, {'url': 'https://weatherspark.com/h/m/1828/2023/10/Historical-Weather-in-October-2023-in-Anaheim-California-United-States', 'content': 'October 2023 Weather History in Anaheim California, United States This report shows the past weather for Anaheim, providing a weather history for October 2023. It features all historical weather data series we have available, including the Anaheim temperature history for October 2023. Anaheim Temperature History October 2023 Hourly Temperature in October 2023 in Anaheim Cloud Cover in October 2023 in Anaheim Daily Precipitation in October 2023 in Anaheim Observed Weather in October 2023 in Anaheim Hours of Daylight and Twilight in October 2023 in Anaheim Solar Elevation and Azimuth in October 2023 in Anaheim Oct 2023 Humidity Comfort Levels in October 2023 in Anaheim Wind Speed in October 2023 in Anaheim Hourly Wind Speed in October 2023 in Anaheim'}]\u001b[0m" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-20 00:38:14,560 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:14,563 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: The\n", + "2024-09-20 00:38:14,599 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: current\n", + "2024-09-20 00:38:14,600 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: weather\n", + "2024-09-20 00:38:14,628 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: in\n", + "2024-09-20 00:38:14,630 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: California\n", + "2024-09-20 00:38:14,666 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: is\n", + "2024-09-20 00:38:14,669 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: as\n", + "2024-09-20 00:38:14,744 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: follows\n", + "2024-09-20 00:38:14,747 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "\n", + "\n", + "2024-09-20 00:38:14,779 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:14,782 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:14,785 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Temperature\n", + "2024-09-20 00:38:14,787 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:14,791 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "2024-09-20 00:38:14,795 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:14,890 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 22\n", + "2024-09-20 00:38:14,891 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .\n", + "2024-09-20 00:38:14,914 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 3\n", + "2024-09-20 00:38:14,915 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: °C\n", + "2024-09-20 00:38:14,926 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: (\n", + "2024-09-20 00:38:14,929 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 72\n", + "2024-09-20 00:38:14,932 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .\n", + "2024-09-20 00:38:14,935 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 1\n", + "2024-09-20 00:38:14,948 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: °F\n", + "2024-09-20 00:38:14,950 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: )\n", + "\n", + "2024-09-20 00:38:14,976 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:14,978 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,019 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Condition\n", + "2024-09-20 00:38:15,021 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,065 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "2024-09-20 00:38:15,068 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Sunny\n", + "2024-09-20 00:38:15,116 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "\n", + "2024-09-20 00:38:15,117 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:15,134 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,136 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Wind\n", + "2024-09-20 00:38:15,158 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,160 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "2024-09-20 00:38:15,191 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:15,194 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 3\n", + "2024-09-20 00:38:15,238 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .\n", + "2024-09-20 00:38:15,242 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 4\n", + "2024-09-20 00:38:15,260 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: mph\n", + "2024-09-20 00:38:15,262 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: (\n", + "2024-09-20 00:38:15,321 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 5\n", + "2024-09-20 00:38:15,325 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .\n", + "2024-09-20 00:38:15,346 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 4\n", + "2024-09-20 00:38:15,348 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: k\n", + "2024-09-20 00:38:15,368 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ph\n", + "2024-09-20 00:38:15,370 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: )\n", + "2024-09-20 00:38:15,417 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: from\n", + "2024-09-20 00:38:15,420 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: the\n", + "2024-09-20 00:38:15,443 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: SSE\n", + "2024-09-20 00:38:15,445 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "\n", + "2024-09-20 00:38:15,477 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:15,480 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,528 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Humidity\n", + "2024-09-20 00:38:15,530 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,547 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "2024-09-20 00:38:15,549 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:15,585 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 35\n", + "2024-09-20 00:38:15,587 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: %\n", + "\n", + "2024-09-20 00:38:15,614 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:15,615 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,656 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Pressure\n", + "2024-09-20 00:38:15,660 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,682 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "2024-09-20 00:38:15,684 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:15,713 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 101\n", + "2024-09-20 00:38:15,715 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 3\n", + "2024-09-20 00:38:15,742 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: mb\n", + "2024-09-20 00:38:15,744 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "\n", + "2024-09-20 00:38:15,787 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:15,792 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,826 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Visibility\n", + "2024-09-20 00:38:15,828 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: **\n", + "2024-09-20 00:38:15,865 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "2024-09-20 00:38:15,868 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:15,902 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 16\n", + "2024-09-20 00:38:15,904 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: km\n", + "2024-09-20 00:38:15,927 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: (\n", + "2024-09-20 00:38:15,928 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 9\n", + "2024-09-20 00:38:15,969 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: miles\n", + "2024-09-20 00:38:15,971 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: )\n", + "\n", + "\n", + "2024-09-20 00:38:15,991 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: For\n", + "2024-09-20 00:38:15,993 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: more\n", + "2024-09-20 00:38:16,021 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: detailed\n", + "2024-09-20 00:38:16,025 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: weather\n", + "2024-09-20 00:38:16,075 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: information\n", + "2024-09-20 00:38:16,078 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ,\n", + "2024-09-20 00:38:16,108 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: you\n", + "2024-09-20 00:38:16,110 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: can\n", + "2024-09-20 00:38:16,154 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: check\n", + "2024-09-20 00:38:16,158 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: the\n", + "2024-09-20 00:38:16,212 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: following\n", + "2024-09-20 00:38:16,214 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: sources\n", + "2024-09-20 00:38:16,243 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: :\n", + "\n", + "2024-09-20 00:38:16,245 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:16,275 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: [\n", + "2024-09-20 00:38:16,277 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Weather\n", + "2024-09-20 00:38:16,279 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: API\n", + "2024-09-20 00:38:16,315 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ](\n", + "2024-09-20 00:38:16,316 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: https\n", + "2024-09-20 00:38:16,343 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ://\n", + "2024-09-20 00:38:16,345 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: www\n", + "2024-09-20 00:38:16,368 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .weather\n", + "2024-09-20 00:38:16,369 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: api\n", + "2024-09-20 00:38:16,425 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .com\n", + "2024-09-20 00:38:16,427 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /)\n", + "\n", + "2024-09-20 00:38:16,435 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:16,438 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: [\n", + "2024-09-20 00:38:16,493 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Time\n", + "2024-09-20 00:38:16,496 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: and\n", + "2024-09-20 00:38:16,529 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Date\n", + "2024-09-20 00:38:16,531 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ](\n", + "2024-09-20 00:38:16,620 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: https\n", + "2024-09-20 00:38:16,624 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ://\n", + "2024-09-20 00:38:16,631 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: www\n", + "2024-09-20 00:38:16,633 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .time\n", + "2024-09-20 00:38:16,678 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: and\n", + "2024-09-20 00:38:16,680 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: date\n", + "2024-09-20 00:38:16,699 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .com\n", + "2024-09-20 00:38:16,702 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /weather\n", + "2024-09-20 00:38:16,723 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /\n", + "2024-09-20 00:38:16,725 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: usa\n", + "2024-09-20 00:38:16,778 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /\n", + "2024-09-20 00:38:16,780 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: los\n", + "2024-09-20 00:38:16,834 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -ang\n", + "2024-09-20 00:38:16,836 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: eles\n", + "2024-09-20 00:38:16,872 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /h\n", + "2024-09-20 00:38:16,874 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: istor\n", + "2024-09-20 00:38:16,877 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ic\n", + "2024-09-20 00:38:16,878 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ?\n", + "2024-09-20 00:38:16,920 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: month\n", + "2024-09-20 00:38:16,923 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: =\n", + "2024-09-20 00:38:16,937 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 10\n", + "2024-09-20 00:38:16,939 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: &\n", + "2024-09-20 00:38:16,972 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: year\n", + "2024-09-20 00:38:16,975 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: =\n", + "2024-09-20 00:38:17,004 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 202\n", + "2024-09-20 00:38:17,007 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 3\n", + "2024-09-20 00:38:17,053 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: )\n", "\n", - "Currently, in California City, the temperature is around 73.6°F (23.1°C) with clear skies, low humidity (31%), and no precipitation. The weather is generally pleasant, but there have been concerns about heat-related illnesses due to the heat wave affecting the region.\n", + "2024-09-20 00:38:17,057 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:17,087 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: [\n", + "2024-09-20 00:38:17,092 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: M\n", + "2024-09-20 00:38:17,109 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ete\n", + "2024-09-20 00:38:17,111 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: op\n", + "2024-09-20 00:38:17,184 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: rog\n", + "2024-09-20 00:38:17,187 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ](\n", + "2024-09-20 00:38:17,224 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: https\n", + "2024-09-20 00:38:17,227 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ://\n", + "2024-09-20 00:38:17,263 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: www\n", + "2024-09-20 00:38:17,265 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .m\n", + "2024-09-20 00:38:17,348 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ete\n", + "2024-09-20 00:38:17,350 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: op\n", + "2024-09-20 00:38:17,367 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: rog\n", + "2024-09-20 00:38:17,371 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .com\n", + "2024-09-20 00:38:17,397 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /weather\n", + "2024-09-20 00:38:17,400 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /\n", + "2024-09-20 00:38:17,435 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: California\n", + "2024-09-20 00:38:17,440 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -cal\n", + "2024-09-20 00:38:17,465 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ifornia\n", + "2024-09-20 00:38:17,467 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /month\n", + "2024-09-20 00:38:17,507 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /oct\n", + "2024-09-20 00:38:17,510 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ober\n", + "2024-09-20 00:38:17,542 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /)\n", "\n", - "For more detailed forecasts and updates, you can check the following sources:\n", + "2024-09-20 00:38:17,544 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:17,568 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: [\n", + "2024-09-20 00:38:17,569 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: World\n", + "2024-09-20 00:38:17,608 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: Weather\n", + "2024-09-20 00:38:17,611 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ](\n", + "2024-09-20 00:38:17,644 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: https\n", + "2024-09-20 00:38:17,646 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ://\n", + "2024-09-20 00:38:17,678 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: world\n", + "2024-09-20 00:38:17,680 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -weather\n", + "2024-09-20 00:38:17,713 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: .info\n", + "2024-09-20 00:38:17,715 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /\n", + "2024-09-20 00:38:17,746 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: forecast\n", + "2024-09-20 00:38:17,748 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /\n", + "2024-09-20 00:38:17,773 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: usa\n", + "2024-09-20 00:38:17,777 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /cal\n", + "2024-09-20 00:38:17,831 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ifornia\n", + "2024-09-20 00:38:17,833 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /oct\n", + "2024-09-20 00:38:17,848 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ober\n", + "2024-09-20 00:38:17,850 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: -\n", + "2024-09-20 00:38:17,880 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 202\n", + "2024-09-20 00:38:17,883 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: 3\n", + "2024-09-20 00:38:17,912 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: /\n", + "2024-09-20 00:38:17,914 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: )\n", + "\n", + "\n", + "2024-09-20 00:38:17,950 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: If\n", + "2024-09-20 00:38:17,952 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: you\n", + "2024-09-20 00:38:17,986 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: need\n", + "2024-09-20 00:38:17,990 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: specific\n", + "2024-09-20 00:38:18,015 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: weather\n", + "2024-09-20 00:38:18,016 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: details\n", + "2024-09-20 00:38:18,080 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: for\n", + "2024-09-20 00:38:18,083 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: a\n", + "2024-09-20 00:38:18,087 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: particular\n", + "2024-09-20 00:38:18,090 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: city\n", + "2024-09-20 00:38:18,121 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: in\n", + "2024-09-20 00:38:18,124 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: California\n", + "2024-09-20 00:38:18,156 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: ,\n", + "2024-09-20 00:38:18,160 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: let\n", + "2024-09-20 00:38:18,193 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: me\n", + "2024-09-20 00:38:18,195 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: know\n", + "2024-09-20 00:38:18,197 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: !\n", + "2024-09-20 00:38:18,198 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - DEBUG - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onNewToken: \n", + "2024-09-20 00:38:18,200 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onLLMEnd: [[ChatGenerationChunk(text='The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!', generation_info={'finish_reason': 'stop', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, message=AIMessageChunk(content='The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!', response_metadata={'finish_reason': 'stop', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'}, id='run-f2f049b4-55c5-4805-964e-91d2f1731b11'))]]\n", + "2024-09-20 00:38:18,202 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: content='The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!' response_metadata={'finish_reason': 'stop', 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_1bb46167f9'} id='run-f2f049b4-55c5-4805-964e-91d2f1731b11'\n", + "2024-09-20 00:38:18,203 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: return_values={'output': 'The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!'} log='The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!'\n", + "2024-09-20 00:38:18,204 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: return_values={'output': 'The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!'} log='The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!'\n", + "2024-09-20 00:38:18,206 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onAgentFinish: {'output': 'The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!'}\n", + "2024-09-20 00:38:18,207 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: {'output': 'The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!'}\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\u001b[32;1m\u001b[1;3mThe current weather in California is as follows:\n", + "\n", + "- **Temperature**: 22.3°C (72.1°F)\n", + "- **Condition**: Sunny\n", + "- **Wind**: 3.4 mph (5.4 kph) from the SSE\n", + "- **Humidity**: 35%\n", + "- **Pressure**: 1013 mb\n", + "- **Visibility**: 16 km (9 miles)\n", + "\n", + "For more detailed weather information, you can check the following sources:\n", "- [Weather API](https://www.weatherapi.com/)\n", "- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\n", - "- [World Weather Info](https://world-weather.info/forecast/usa/california/october-2023/)\n", "- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\n", - "- [LA Times](https://www.latimes.com/environment/story/2023-10-18/california-heat-wave-2023-when-will-it-end)\u001b[0m\n", + "- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\n", "\n", - "\u001b[1m> Finished chain.\u001b[0m\n", - "{'messages': [HumanMessage(content='Whats the whether in california')], 'output': 'The weather in California during October 2023 has been characterized by some unseasonably hot days. For instance, on October 5, temperatures reached a high of 92°F (approximately 33°C). The humidity levels have also varied, with reports indicating a peak of 100% on October 7.\\n\\nCurrently, in California City, the temperature is around 73.6°F (23.1°C) with clear skies, low humidity (31%), and no precipitation. The weather is generally pleasant, but there have been concerns about heat-related illnesses due to the heat wave affecting the region.\\n\\nFor more detailed forecasts and updates, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [World Weather Info](https://world-weather.info/forecast/usa/california/october-2023/)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [LA Times](https://www.latimes.com/environment/story/2023-10-18/california-heat-wave-2023-when-will-it-end)'}\n" + "If you need specific weather details for a particular city in California, let me know!\u001b[0m\n", + "\n", + "\u001b[1m> Finished chain.\u001b[0m\n" ] + }, + { + "data": { + "text/plain": [ + "{'messages': [HumanMessage(content='Whats the whether in california')],\n", + " 'output': 'The current weather in California is as follows:\\n\\n- **Temperature**: 22.3°C (72.1°F)\\n- **Condition**: Sunny\\n- **Wind**: 3.4 mph (5.4 kph) from the SSE\\n- **Humidity**: 35%\\n- **Pressure**: 1013 mb\\n- **Visibility**: 16 km (9 miles)\\n\\nFor more detailed weather information, you can check the following sources:\\n- [Weather API](https://www.weatherapi.com/)\\n- [Time and Date](https://www.timeanddate.com/weather/usa/los-angeles/historic?month=10&year=2023)\\n- [Meteoprog](https://www.meteoprog.com/weather/California-california/month/october/)\\n- [World Weather](https://world-weather.info/forecast/usa/california/october-2023/)\\n\\nIf you need specific weather details for a particular city in California, let me know!'}" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ + "# with logging\n", + "\n", + "from flo_ai.common.flo_langchain_logger import FloLangchainLogger\n", + "\n", "flo = Flo.build(session, simple_weather_checking_agent)\n", "\n", - "print(flo.invoke(\"Whats the whether in california\"))" + "handler = FloLangchainLogger(log_level=\"INFO\")\n", + "\n", + "config = {\n", + " 'callbacks' : [handler]\n", + "}\n", + "\n", + "query=\"Whats the whether in california\"\n", + "\n", + "flo.invoke(query=query, config=config)" ] }, { @@ -160,7 +601,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -178,14 +619,40 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 7, "metadata": {}, "outputs": [ { - "name": "stdout", + "name": "stderr", "output_type": "stream", "text": [ - "Pythagoras' Theorem is a fundamental principle in geometry that relates to right-angled triangles. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. \n", + "2024-09-20 00:45:06,709 - BUILDER - INFO - Building Flo instance from YAML\n", + "2024-09-20 00:45:06,728 - COMMON - INFO - Flo instance created for session dd5c4a4c-4390-46bc-945d-eb9474e63702\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-20 00:45:06,730 - COMMON - INFO - Invoking query for session dd5c4a4c-4390-46bc-945d-eb9474e63702: What is pythagorus theorum\n", + "2024-09-20 00:45:06,783 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'messages': [HumanMessage(content='What is pythagorus theorum')]}\n", + "2024-09-20 00:45:06,786 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: {'messages': [HumanMessage(content='What is pythagorus theorum')]}\n", + "2024-09-20 00:45:06,788 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: messages=[SystemMessage(content='You are a high school maths teacher. Answer any questions the students ask \\n'), HumanMessage(content='What is pythagorus theorum')]\n", + "2024-09-20 00:45:06,792 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onLLMStart: ['System: You are a high school maths teacher. Answer any questions the students ask \\n\\nHuman: What is pythagorus theorum']\n", + "2024-09-20 00:45:11,061 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onLLMEnd: [[ChatGeneration(text=\"Pythagoras' Theorem is a fundamental principle in geometry that relates to right-angled triangles. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. \\n\\nThe theorem can be expressed with the formula:\\n\\n\\\\[ c^2 = a^2 + b^2 \\\\]\\n\\nwhere:\\n- \\\\( c \\\\) is the length of the hypotenuse,\\n- \\\\( a \\\\) and \\\\( b \\\\) are the lengths of the other two sides.\\n\\nThis theorem is useful for calculating the length of one side of a right triangle if the lengths of the other two sides are known. Would you like to see an example of how to use it?\", generation_info={'finish_reason': 'stop', 'logprobs': None}, message=AIMessage(content=\"Pythagoras' Theorem is a fundamental principle in geometry that relates to right-angled triangles. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. \\n\\nThe theorem can be expressed with the formula:\\n\\n\\\\[ c^2 = a^2 + b^2 \\\\]\\n\\nwhere:\\n- \\\\( c \\\\) is the length of the hypotenuse,\\n- \\\\( a \\\\) and \\\\( b \\\\) are the lengths of the other two sides.\\n\\nThis theorem is useful for calculating the length of one side of a right triangle if the lengths of the other two sides are known. Would you like to see an example of how to use it?\", response_metadata={'token_usage': {'completion_tokens': 162, 'prompt_tokens': 34, 'total_tokens': 196, 'completion_tokens_details': {'reasoning_tokens': 0}}, 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_e9627b5346', 'finish_reason': 'stop', 'logprobs': None}, id='run-5851e0be-448a-4e3c-a517-187dcdfbea46-0', usage_metadata={'input_tokens': 34, 'output_tokens': 162, 'total_tokens': 196}))]]\n", + "2024-09-20 00:45:11,063 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainStart: content=\"Pythagoras' Theorem is a fundamental principle in geometry that relates to right-angled triangles. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. \\n\\nThe theorem can be expressed with the formula:\\n\\n\\\\[ c^2 = a^2 + b^2 \\\\]\\n\\nwhere:\\n- \\\\( c \\\\) is the length of the hypotenuse,\\n- \\\\( a \\\\) and \\\\( b \\\\) are the lengths of the other two sides.\\n\\nThis theorem is useful for calculating the length of one side of a right triangle if the lengths of the other two sides are known. Would you like to see an example of how to use it?\" response_metadata={'token_usage': {'completion_tokens': 162, 'prompt_tokens': 34, 'total_tokens': 196, 'completion_tokens_details': {'reasoning_tokens': 0}}, 'model_name': 'gpt-4o-mini-2024-07-18', 'system_fingerprint': 'fp_e9627b5346', 'finish_reason': 'stop', 'logprobs': None} id='run-5851e0be-448a-4e3c-a517-187dcdfbea46-0' usage_metadata={'input_tokens': 34, 'output_tokens': 162, 'total_tokens': 196}\n", + "2024-09-20 00:45:11,064 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: Pythagoras' Theorem is a fundamental principle in geometry that relates to right-angled triangles. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. \n", + "\n", + "The theorem can be expressed with the formula:\n", + "\n", + "\\[ c^2 = a^2 + b^2 \\]\n", + "\n", + "where:\n", + "- \\( c \\) is the length of the hypotenuse,\n", + "- \\( a \\) and \\( b \\) are the lengths of the other two sides.\n", + "\n", + "This theorem is useful for calculating the length of one side of a right triangle if the lengths of the other two sides are known. Would you like to see an example of how to use it?\n", + "2024-09-20 00:45:11,065 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onChainEnd: Pythagoras' Theorem is a fundamental principle in geometry that relates to right-angled triangles. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. \n", "\n", "The theorem can be expressed with the formula:\n", "\n", @@ -197,12 +664,23 @@ "\n", "This theorem is useful for calculating the length of one side of a right triangle if the lengths of the other two sides are known. Would you like to see an example of how to use it?\n" ] + }, + { + "data": { + "text/plain": [ + "\"Pythagoras' Theorem is a fundamental principle in geometry that relates to right-angled triangles. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. \\n\\nThe theorem can be expressed with the formula:\\n\\n\\\\[ c^2 = a^2 + b^2 \\\\]\\n\\nwhere:\\n- \\\\( c \\\\) is the length of the hypotenuse,\\n- \\\\( a \\\\) and \\\\( b \\\\) are the lengths of the other two sides.\\n\\nThis theorem is useful for calculating the length of one side of a right triangle if the lengths of the other two sides are known. Would you like to see an example of how to use it?\"" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ "flo = Flo.build(session, simple_llm_agent)\n", "\n", - "print(flo.invoke(\"What is pythagorus theorum\"))" + "flo.invoke(\"What is pythagorus theorum\")\n", + "# print(flo.invoke(\"What is pythagorus theorum\"))" ] }, { @@ -214,16 +692,37 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 8, "metadata": {}, "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "2024-09-20 00:45:45,169 - SESSION - INFO - Tool 'printStateTool' registered for session dd5c4a4c-4390-46bc-945d-eb9474e63702\n", + "2024-09-20 00:45:45,170 - BUILDER - INFO - Building Flo instance from YAML\n", + "2024-09-20 00:45:45,173 - COMMON - INFO - Flo instance created for session dd5c4a4c-4390-46bc-945d-eb9474e63702\n", + "2024-09-20 00:45:45,175 - COMMON - INFO - Invoking query for session dd5c4a4c-4390-46bc-945d-eb9474e63702: Print what I am saying\n", + "2024-09-20 00:45:45,177 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onToolStart: {'messages': [HumanMessage(content='Print what I am saying')]}\n", + "2024-09-20 00:45:45,178 - FloLangChainLogger-dd5c4a4c-4390-46bc-945d-eb9474e63702 - INFO - Session ID: dd5c4a4c-4390-46bc-945d-eb9474e63702, onToolEnd: Tool call success\n" + ] + }, { "name": "stdout", "output_type": "stream", "text": [ - "{'messages': [HumanMessage(content='Print what I am saying')]}\n", - "Tool call success\n" + "{'messages': [HumanMessage(content='Print what I am saying')]}\n" ] + }, + { + "data": { + "text/plain": [ + "'Tool call success'" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ @@ -259,7 +758,7 @@ "\n", "flo = Flo.build(session, simple_tool_agent)\n", "\n", - "print(flo.invoke(\"Print what I am saying\"))" + "flo.invoke(\"Print what I am saying\")" ] } ], diff --git a/examples/simple_blogging_team.py b/examples/simple_blogging_team.py index 16fbf1ee..7bbc9b69 100644 --- a/examples/simple_blogging_team.py +++ b/examples/simple_blogging_team.py @@ -33,13 +33,13 @@ """ llm = ChatOpenAI(temperature=0, model_name='gpt-4o-mini') -session = FloSession(llm).register_tool( +session = FloSession(llm, log_level="INFO").register_tool( name="TavilySearchResults", tool=TavilySearchResults() ).register_tool( name="DummyTool", tool=TavilySearchResults(description="Tool is a dummy tool, dont use this") ) -flo: Flo = Flo.build(session, yaml=yaml_data) +flo: Flo = Flo.build(session, yaml=yaml_data, log_level="INFO") data = flo.invoke(input_prompt) print((data['messages'][-1]).content) \ No newline at end of file diff --git a/flo_ai/__init__.py b/flo_ai/__init__.py index 08594a25..9cd58afa 100644 --- a/flo_ai/__init__.py +++ b/flo_ai/__init__.py @@ -5,4 +5,5 @@ from flo_ai.router.flo_linear import FloLinear from flo_ai.state.flo_session import FloSession from flo_ai.retrievers.flo_retriever import FloRagBuilder - +from flo_ai.common.flo_logger import get_logger +from flo_ai.common.flo_langchain_logger import FloLangchainLogger diff --git a/flo_ai/common/README.md b/flo_ai/common/README.md new file mode 100644 index 00000000..07d0396a --- /dev/null +++ b/flo_ai/common/README.md @@ -0,0 +1,86 @@ +# Understanding Log Levels in FloAI + +FloAI uses standard Python logging levels to indicate the severity of logged messages. Here are the common levels used (from least to most severe): + +- **DEBUG**: Detailed information for debugging purposes. +- **INFO**: Informational messages about the normal operation of the system. +- **WARNING**: Potential issues or unexpected conditions. +- **ERROR**: Errors that may have caused the system to malfunction. +- **CRITICAL**: Critical errors that have caused the system to crash. + +By adjusting the log level, you can control how much information is logged and the verbosity of the output. + +## Controlling Log Levels + +FloAI provides multiple ways to control log levels: + +### 1. Environment Variables for Log Level Control + +Export environment variables to set the log level for specific components before running the application: + +- `FLO_LOG_LEVEL_COMMON`: Controls the level for the "CommonLogs" logger. + - CommonLogs: General-purpose logging used across the entire FloAI system. It captures broad, system-wide events and information. + +- `FLO_LOG_LEVEL_BUILDER`: Controls the level for the "BuilderLogs" logger. + - BuilderLogs: Specific to the process of building and configuring FloAI instances. It logs information about YAML parsing, component creation, and FloAI structure setup. + +- `FLO_LOG_LEVEL_SESSION`: Controls the level for the "SessionLogs" logger. + - SessionLogs: Dedicated to logging session-specific information. It captures events and data related to individual FloAI sessions, including session creation, tool registration, and session-level operations. + +These loggers allow for granular control over logging output in different parts of the FloAI system. By adjusting their levels independently, you can focus on debugging or monitoring specific aspects of FloAI's operation. + +Example: + +```bash +export FLO_LOG_LEVEL_COMMON=DEBUG +export FLO_LOG_LEVEL_BUILDER=INFO +export FLO_LOG_LEVEL_SESSION=WARNING +``` + +### 2. FloSession Creation + +When creating a FloSession object, you can specify the desired log level: + +```python +session = FloSession(llm, log_level="DEBUG") +``` + +This session will log messages at DEBUG level and above. + +### 3. Flo Instance Creation + +Similar to FloSession, you can set the log level when creating a Flo instance: + +```python +flo = Flo.build(session, yaml_config, log_level="DEBUG") +``` + +This Flo instance will inherit the specified log level. + +### 4. Global Log Level Change (Runtime) + +You can dynamically change the global log level at runtime using the set_global_log_level function from flo_ai.common.logging_config: + +```python +from flo_ai.common.logging_config import set_global_log_level + +set_global_log_level("DEBUG") # Set the global log level to DEBUG +``` + +This will affect all logging throughout the application. + +### 5. Specific Logger Level Change (Runtime) + +If you need to adjust the level for a specific logger, use the set_log_level method of the FloLogger class: + +```python +from flo_ai.common.logging_config import FloLogger + +FloLogger.set_log_level("COMMON", "DEBUG") # Set COMMON logger to DEBUG level +``` + +## Best Practices + +- **Environment variables**: Use these for setting default levels without modifying code, useful in different deployment environments. +- **Object creation**: This approach allows setting specific levels for individual sessions or Flo instances. +- **Runtime changes**: Use these methods for dynamic adjustments during program execution. \ No newline at end of file diff --git a/flo_ai/common/__init__.py b/flo_ai/common/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/flo_ai/common/flo_langchain_logger.py b/flo_ai/common/flo_langchain_logger.py new file mode 100644 index 00000000..022aee7a --- /dev/null +++ b/flo_ai/common/flo_langchain_logger.py @@ -0,0 +1,53 @@ +from typing import Any, Dict, List, Union +from langchain.callbacks.base import BaseCallbackHandler +from langchain.schema import AgentAction, AgentFinish, LLMResult +from flo_ai.common.flo_logger import get_logger, FloLogConfig +from typing import Optional + +class FloLangchainLogger(BaseCallbackHandler): + + def __init__(self, + session_id: str, + logger_name: Optional[str] = "FloLangChainLogger", + log_level: Optional[str] = "WARN"): + self.logger = get_logger(FloLogConfig(logger_name, log_level)) + self.session_id = session_id + + def on_llm_start(self, serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onLLMStart: {prompts}") + + def on_llm_new_token(self, token: str, **kwargs: Any) -> None: + self.logger.debug(f"Session ID: {self.session_id}: onNewToken: {token}") + + def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onLLMEnd: {response.generations}") + + def on_llm_error(self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any) -> None: + self.logger.error(f"Session ID: {self.session_id}: onLLMError: {error}") + + def on_chain_start(self, serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onChainStart: {inputs}") + + def on_chain_end(self, outputs: Dict[str, Any], **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onChainEnd: {outputs}") + + def on_chain_error(self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any) -> None: + self.logger.error(f"Session ID: {self.session_id}: onChainError: {error}") + + def on_tool_start(self, serialized: Dict[str, Any], input_str: str, **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onToolStart: {input_str}") + + def on_tool_end(self, output: str, **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onToolEnd: {output}") + + def on_tool_error(self, error: Union[Exception, KeyboardInterrupt], **kwargs: Any) -> None: + self.logger.error(f"Session ID: {self.session_id}: onToolError: {error}") + + def on_text(self, text: str, **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onText: {text}") + + def on_agent_action(self, action: AgentAction, **kwargs: Any) -> Any: + self.logger.info(f"Session ID: {self.session_id}: onAgentAction: {action.tool} - {action.tool_input}") + + def on_agent_finish(self, finish: AgentFinish, **kwargs: Any) -> None: + self.logger.info(f"Session ID: {self.session_id}: onAgentFinish: {finish.return_values}") \ No newline at end of file diff --git a/flo_ai/common/flo_logger.py b/flo_ai/common/flo_logger.py new file mode 100644 index 00000000..20eb1d65 --- /dev/null +++ b/flo_ai/common/flo_logger.py @@ -0,0 +1,54 @@ +import os +import logging +from logging.handlers import RotatingFileHandler +from dataclasses import dataclass + +@dataclass +class FloLogConfig: + name: str + level: str = "INFO" + file_path: str = None + max_bytes: int = 1048576 + +class FloLoggerUtil(logging.Logger): + def __init__(self, config: FloLogConfig): + super().__init__(config.name, config.level) + self.setLevel(config.level) + + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + + console_handler = logging.StreamHandler() + console_handler.setFormatter(formatter) + self.addHandler(console_handler) + + if config.file_path: + file_handler = RotatingFileHandler(config.file_path, maxBytes=config.max_bytes) + file_handler.setFormatter(formatter) + self.addHandler(file_handler) + +class FloLogger: + _loggers = {} + + @classmethod + def get_logger(cls, config: FloLogConfig) -> FloLoggerUtil: + if config.name not in cls._loggers: + level = config.level or os.environ.get(f"FLO_LOG_LEVEL_{config.name.upper()}", "INFO") + config.level = level + cls._loggers[config.name] = FloLoggerUtil(config) + return cls._loggers[config.name] + + @classmethod + def set_log_level(cls, name: str, level: str): + if name in cls._loggers: + cls._loggers[name].setLevel(level) + +def get_logger(config: FloLogConfig) -> FloLoggerUtil: + return FloLogger.get_logger(config) + +common_logger = get_logger(FloLogConfig("COMMON")) +builder_logger = get_logger(FloLogConfig("BUILDER")) +session_logger = get_logger(FloLogConfig("SESSION")) + +def set_global_log_level(level: str): + for name in ["COMMON", "BUILDER", "SESSION"]: + FloLogger.set_log_level(name, level) \ No newline at end of file diff --git a/flo_ai/core.py b/flo_ai/core.py index 30e4a6fc..1f8210e2 100644 --- a/flo_ai/core.py +++ b/flo_ai/core.py @@ -1,30 +1,40 @@ from flo_ai.yaml.flo_team_builder import to_supervised_team from flo_ai.builders.yaml_builder import build_supervised_team, FloRoutedTeamConfig -from typing import ( - Any, - Iterator, - Union -) +from typing import Any, Iterator, Union from flo_ai.state.flo_session import FloSession from flo_ai.models.flo_executable import ExecutableFlo +from flo_ai.common.flo_logger import common_logger, builder_logger, set_global_log_level class Flo: def __init__(self, session: FloSession, - config: FloRoutedTeamConfig) -> None: + config: FloRoutedTeamConfig, + log_level: str = "INFO") -> None: self.config = config + self.session = session self.runnable: ExecutableFlo = build_supervised_team(session, config) + set_global_log_level(log_level) + self.logger = common_logger + self.langchain_logger = session.langchain_logger + self.logger.info(f"Flo instance created for session {session.session_id}") + def stream(self, query, config = None) -> Iterator[Union[dict[str, Any], Any]]: + self.logger.info(f"Streaming query for session {self.session.session_id}: {query}") return self.runnable.stream(query, config) def invoke(self, query, config = None) -> Iterator[Union[dict[str, Any], Any]]: + config = { + 'callbacks' : [self.session.langchain_logger] + } + self.logger.info(f"Invoking query for session {self.session.session_id}: {query}") return self.runnable.invoke(query, config) @staticmethod - def build(session: FloSession, yaml: str): - return Flo(session, to_supervised_team(yaml)) + def build(session: FloSession, yaml: str, log_level: str = "INFO"): + builder_logger.info("Building Flo instance from YAML") + return Flo(session, to_supervised_team(yaml), log_level) def draw(self, xray=True): return self.runnable.draw(xray) diff --git a/flo_ai/state/flo_session.py b/flo_ai/state/flo_session.py index a177ce79..9954cc6a 100644 --- a/flo_ai/state/flo_session.py +++ b/flo_ai/state/flo_session.py @@ -1,8 +1,19 @@ +import uuid from langchain_core.language_models import BaseLanguageModel from langchain_core.tools import BaseTool +from flo_ai.common.flo_logger import session_logger, FloLogger, FloLogConfig +from flo_ai.common.flo_langchain_logger import FloLangchainLogger +from typing import Optional class FloSession: - def __init__(self, llm: BaseLanguageModel, loop_size: int = 2, max_loop: int = 3) -> None: + + def __init__(self, + llm: BaseLanguageModel, + loop_size: int = 2, + max_loop: int = 3, + log_level: Optional[str] = "INFO", + custom_langchainlog_handler: Optional[FloLangchainLogger] = None) -> None: + self.session_id = str(uuid.uuid4()) self.llm = llm self.tools = dict() self.counter = dict() @@ -10,12 +21,23 @@ def __init__(self, llm: BaseLanguageModel, loop_size: int = 2, max_loop: int = 3 self.pattern_series = dict() self.loop_size: int = loop_size self.max_loop: int = max_loop + + self.init_logger(log_level) + self.logger = session_logger + self.logger.info(f"New FloSession created with ID: {self.session_id}") + self.langchain_logger = custom_langchainlog_handler or FloLangchainLogger(self.session_id, log_level=log_level, logger_name=f"FloLangChainLogger-{self.session_id}") + self.langchain_logger.set_session_id(self.session_id) + + def init_logger(self, log_level: str): + FloLogger.set_log_level("SESSION", log_level) def register_tool(self, name: str, tool: BaseTool): self.tools[name] = tool + self.logger.info(f"Tool '{name}' registered for session {self.session_id}") return self def append(self, node: str) -> int: + self.logger.debug(f"Appending node: {node}") self.counter[node] = self.counter.get(node, 0) + 1 if node in self.navigation: last_known_index = len(self.navigation) - 1 - self.navigation[::-1].index(node) @@ -29,6 +51,7 @@ def append(self, node: str) -> int: self.navigation.append(node) def is_looping(self, node) -> bool: + self.logger.debug(f"Checking if node {node} is looping") patterns = self.pattern_series[node] if node in self.pattern_series else [] if len(patterns) < self.max_loop: return False