From e17b447d62de1974a148ca77987f30910eaec238 Mon Sep 17 00:00:00 2001 From: Pamella Bezerra Date: Tue, 19 Nov 2024 10:48:42 -0300 Subject: [PATCH] Update vcr cassette --- .../test_AIAssistant_with_rag_invoke.yaml | 800 +++++++++++++++++- tests/test_helpers/test_assistants.py | 16 +- 2 files changed, 762 insertions(+), 54 deletions(-) diff --git a/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml b/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml index 9bf5ca3..5e55cf1 100644 --- a/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml +++ b/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml @@ -1,4 +1,124 @@ interactions: +- request: + body: '{"post":[{"id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","start_time":"2024-11-19T13:44:22.849287+00:00","end_time":"2024-11-19T13:44:22.902343+00:00","extra":{"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"},"metadata":{"revision_id":"0.1.0-3-g0d1ae05-dirty"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.849287+00:00"},{"name":"end","time":"2024-11-19T13:44:22.902343+00:00"}],"reference_example_id":null,"parent_run_id":null,"tags":[],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}}],"input":"What + is the temperature today in Recife?","output":"The current temperature in Recife + is 32 degrees Celsius."},"name":"LangGraph","inputs":{"input":"What is the temperature + today in Recife?"},"run_type":"chain"},{"id":"f114b9a9-b466-4b8d-b34d-b13b2bfccb31","start_time":"2024-11-19T13:44:22.853407+00:00","end_time":"2024-11-19T13:44:22.853771+00:00","extra":{"metadata":{"langgraph_step":0,"langgraph_node":"__start__","langgraph_triggers":["__start__"],"langgraph_path":["__pregel_pull","__start__"],"langgraph_checkpoint_ns":"__start__:1d0914e3-ad98-58b6-cf08-f34d21ffc50e","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.853407+00:00"},{"name":"end","time":"2024-11-19T13:44:22.853771+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:0","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422853407Zf114b9a9-b466-4b8d-b34d-b13b2bfccb31","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"input":"What + is the temperature today in Recife?"},"name":"__start__","inputs":{"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"fd042dba-d5a5-47a8-9ea1-a4fda2b7d923","start_time":"2024-11-19T13:44:22.854434+00:00","end_time":"2024-11-19T13:44:22.855235+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:0fcbb22a-9180-46eb-0aa0-efc181897e64","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.854434+00:00"},{"name":"end","time":"2024-11-19T13:44:22.855235+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422854434Zfd042dba-d5a5-47a8-9ea1-a4fda2b7d923","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"setup","inputs":{"messages":[],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"cd579399-7e9d-44c6-a124-de7311c9617a","start_time":"2024-11-19T13:44:22.854787+00:00","end_time":"2024-11-19T13:44:22.855090+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:0fcbb22a-9180-46eb-0aa0-efc181897e64","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.854787+00:00"},{"name":"end","time":"2024-11-19T13:44:22.855090+00:00"}],"reference_example_id":null,"parent_run_id":"fd042dba-d5a5-47a8-9ea1-a4fda2b7d923","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422854434Zfd042dba-d5a5-47a8-9ea1-a4fda2b7d923.20241119T134422854787Zcd579399-7e9d-44c6-a124-de7311c9617a","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"}]},"run_type":"chain"},{"id":"af094e73-acb4-40d9-a630-00a411ed2caa","start_time":"2024-11-19T13:44:22.856434+00:00","end_time":"2024-11-19T13:44:22.857651+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:38d1e27b-5428-8589-dbf6-24c93edfcefd","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.856434+00:00"},{"name":"end","time":"2024-11-19T13:44:22.857651+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:2"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422856434Zaf094e73-acb4-40d9-a630-00a411ed2caa","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"history","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"f4f3c79a-261a-458a-8dc4-14470400788b","start_time":"2024-11-19T13:44:22.857201+00:00","end_time":"2024-11-19T13:44:22.857466+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:38d1e27b-5428-8589-dbf6-24c93edfcefd","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.857201+00:00"},{"name":"end","time":"2024-11-19T13:44:22.857466+00:00"}],"reference_example_id":null,"parent_run_id":"af094e73-acb4-40d9-a630-00a411ed2caa","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422856434Zaf094e73-acb4-40d9-a630-00a411ed2caa.20241119T134422857201Zf4f3c79a-261a-458a-8dc4-14470400788b","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false}]},"run_type":"chain"},{"id":"f1fa19a1-d6f0-466c-bc5f-05fd5074d072","start_time":"2024-11-19T13:44:22.859466+00:00","end_time":"2024-11-19T13:44:22.860735+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:74908fe1-a6e2-ede4-8bc8-c82b6e0d5414","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.859466+00:00"},{"name":"end","time":"2024-11-19T13:44:22.860735+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422859466Zf1fa19a1-d6f0-466c-bc5f-05fd5074d072","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"output":null},"name":"retriever","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"7148ee98-beff-4aad-8595-0e8b814540f6","start_time":"2024-11-19T13:44:22.860049+00:00","end_time":"2024-11-19T13:44:22.860413+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:74908fe1-a6e2-ede4-8bc8-c82b6e0d5414","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.860049+00:00"},{"name":"end","time":"2024-11-19T13:44:22.860413+00:00"}],"reference_example_id":null,"parent_run_id":"f1fa19a1-d6f0-466c-bc5f-05fd5074d072","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422859466Zf1fa19a1-d6f0-466c-bc5f-05fd5074d072.20241119T134422860049Z7148ee98-beff-4aad-8595-0e8b814540f6","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"output":null},"name":"ChannelWrite","inputs":{"input":null},"run_type":"chain"},{"id":"f47c5f01-5cbc-49f4-a413-1c8f52d71b04","start_time":"2024-11-19T13:44:22.861056+00:00","end_time":"2024-11-19T13:44:22.884803+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:d94f8499-12a2-faae-c9f6-18ea00d63b54","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.861056+00:00"},{"name":"end","time":"2024-11-19T13:44:22.884803+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:4"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422861056Zf47c5f01-5cbc-49f4-a413-1c8f52d71b04","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}}]},"name":"agent","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"e975ba32-50cc-40c0-9ea8-f9c559c2a5f2","start_time":"2024-11-19T13:44:22.861754+00:00","end_time":"2024-11-19T13:44:22.881672+00:00","extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null,"tools":[{"type":"function","function":{"name":"fetch_current_temperature","description":"Fetch + the current temperature data for a location","parameters":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"}}},{"type":"function","function":{"name":"fetch_forecast_temperature","description":"Fetch + the forecast temperature data for a location","parameters":{"type":"object","properties":{"location":{"type":"string"},"dt_str":{"description":"Date + in the format ''YYYY-MM-DD''","type":"string"}},"required":["location","dt_str"]}}}]},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:d94f8499-12a2-faae-c9f6-18ea00d63b54","checkpoint_ns":"agent:d94f8499-12a2-faae-c9f6-18ea00d63b54","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","chat_models","openai","ChatOpenAI"],"kwargs":{"model_name":"gpt-4o","temperature":1.0,"openai_api_key":{"lc":1,"type":"secret","id":["OPENAI_API_KEY"]},"max_retries":2,"n":1},"name":"ChatOpenAI"},"events":[{"name":"start","time":"2024-11-19T13:44:22.861754+00:00"},{"name":"end","time":"2024-11-19T13:44:22.881672+00:00"}],"reference_example_id":null,"parent_run_id":"f47c5f01-5cbc-49f4-a413-1c8f52d71b04","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422861056Zf47c5f01-5cbc-49f4-a413-1c8f52d71b04.20241119T134422861754Ze975ba32-50cc-40c0-9ea8-f9c559c2a5f2","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"generations":[[{"text":"","generation_info":{"finish_reason":"tool_calls","logprobs":null},"type":"ChatGeneration","message":{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"run-e975ba32-50cc-40c0-9ea8-f9c559c2a5f2-0","tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127},"invalid_tool_calls":[]}}}]],"llm_output":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83"},"run":null,"type":"LLMResult"},"name":"ChatOpenAI","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"You + are a temperature bot. Today is 2024-06-09.","type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"What + is the temperature today in Recife?","type":"human","id":"1"}}]]},"run_type":"llm"},{"id":"4c85d88f-5d29-48c0-81c0-7167f9ed9ffb","start_time":"2024-11-19T13:44:22.882107+00:00","end_time":"2024-11-19T13:44:22.882551+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:d94f8499-12a2-faae-c9f6-18ea00d63b54","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.882107+00:00"},{"name":"end","time":"2024-11-19T13:44:22.882551+00:00"}],"reference_example_id":null,"parent_run_id":"f47c5f01-5cbc-49f4-a413-1c8f52d71b04","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422861056Zf47c5f01-5cbc-49f4-a413-1c8f52d71b04.20241119T134422882107Z4c85d88f-5d29-48c0-81c0-7167f9ed9ffb","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"run-e975ba32-50cc-40c0-9ea8-f9c559c2a5f2-0","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}}]},"run_type":"chain"},{"id":"ba29957a-4817-4696-a215-f2ef69bd9e23","start_time":"2024-11-19T13:44:22.884220+00:00","end_time":"2024-11-19T13:44:22.884574+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:d94f8499-12a2-faae-c9f6-18ea00d63b54","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.884220+00:00"},{"name":"end","time":"2024-11-19T13:44:22.884574+00:00"}],"reference_example_id":null,"parent_run_id":"f47c5f01-5cbc-49f4-a413-1c8f52d71b04","tags":["seq:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422861056Zf47c5f01-5cbc-49f4-a413-1c8f52d71b04.20241119T134422884220Zba29957a-4817-4696-a215-f2ef69bd9e23","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"output":"call_tool"},"name":"tool_selector","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"bfb0bf24-0c8c-4f48-8782-0eb54dd777c1","start_time":"2024-11-19T13:44:22.885736+00:00","end_time":"2024-11-19T13:44:22.887952+00:00","extra":{"metadata":{"langgraph_step":5,"langgraph_node":"tools","langgraph_triggers":["branch:agent:tool_selector:tools"],"langgraph_path":["__pregel_pull","tools"],"langgraph_checkpoint_ns":"tools:8a5fe46d-d642-1126-c6ff-978d3c7d98ef","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.885736+00:00"},{"name":"end","time":"2024-11-19T13:44:22.887952+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:5"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422885736Zbfb0bf24-0c8c-4f48-8782-0eb54dd777c1","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}]},"name":"tools","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"3600696e-0436-463d-8158-3e583ff233e6","start_time":"2024-11-19T13:44:22.886457+00:00","end_time":"2024-11-19T13:44:22.887138+00:00","extra":{"color":"green","metadata":{"langgraph_step":5,"langgraph_node":"tools","langgraph_triggers":["branch:agent:tool_selector:tools"],"langgraph_path":["__pregel_pull","tools"],"langgraph_checkpoint_ns":"tools:8a5fe46d-d642-1126-c6ff-978d3c7d98ef","checkpoint_ns":"tools:8a5fe46d-d642-1126-c6ff-978d3c7d98ef","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.886457+00:00"},{"name":"end","time":"2024-11-19T13:44:22.887138+00:00"}],"reference_example_id":null,"parent_run_id":"bfb0bf24-0c8c-4f48-8782-0eb54dd777c1","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422885736Zbfb0bf24-0c8c-4f48-8782-0eb54dd777c1.20241119T134422886457Z3600696e-0436-463d-8158-3e583ff233e6","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"output":{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}},"name":"fetch_current_temperature","inputs":{"input":"{''location'': + ''Recife''}"},"run_type":"tool"},{"id":"8bcd6db0-8e38-47e5-8594-1189b5070f29","start_time":"2024-11-19T13:44:22.887521+00:00","end_time":"2024-11-19T13:44:22.887802+00:00","extra":{"metadata":{"langgraph_step":5,"langgraph_node":"tools","langgraph_triggers":["branch:agent:tool_selector:tools"],"langgraph_path":["__pregel_pull","tools"],"langgraph_checkpoint_ns":"tools:8a5fe46d-d642-1126-c6ff-978d3c7d98ef","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.887521+00:00"},{"name":"end","time":"2024-11-19T13:44:22.887802+00:00"}],"reference_example_id":null,"parent_run_id":"bfb0bf24-0c8c-4f48-8782-0eb54dd777c1","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422885736Zbfb0bf24-0c8c-4f48-8782-0eb54dd777c1.20241119T134422887521Z8bcd6db0-8e38-47e5-8594-1189b5070f29","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}]},"run_type":"chain"},{"id":"8d12114d-af6d-4ebc-90eb-9029a463845a","start_time":"2024-11-19T13:44:22.889611+00:00","end_time":"2024-11-19T13:44:22.900509+00:00","extra":{"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:36c75082-9e49-0f75-fc8b-d3d29e162cf1","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.889611+00:00"},{"name":"end","time":"2024-11-19T13:44:22.900509+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:6"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422889611Z8d12114d-af6d-4ebc-90eb-9029a463845a","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}}]},"name":"agent","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"872a349f-941e-4ee9-be2d-9071afc963e2","start_time":"2024-11-19T13:44:22.890146+00:00","end_time":"2024-11-19T13:44:22.897834+00:00","extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null,"tools":[{"type":"function","function":{"name":"fetch_current_temperature","description":"Fetch + the current temperature data for a location","parameters":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"}}},{"type":"function","function":{"name":"fetch_forecast_temperature","description":"Fetch + the forecast temperature data for a location","parameters":{"type":"object","properties":{"location":{"type":"string"},"dt_str":{"description":"Date + in the format ''YYYY-MM-DD''","type":"string"}},"required":["location","dt_str"]}}}]},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:36c75082-9e49-0f75-fc8b-d3d29e162cf1","checkpoint_ns":"agent:36c75082-9e49-0f75-fc8b-d3d29e162cf1","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","chat_models","openai","ChatOpenAI"],"kwargs":{"model_name":"gpt-4o","temperature":1.0,"openai_api_key":{"lc":1,"type":"secret","id":["OPENAI_API_KEY"]},"max_retries":2,"n":1},"name":"ChatOpenAI"},"events":[{"name":"start","time":"2024-11-19T13:44:22.890146+00:00"},{"name":"end","time":"2024-11-19T13:44:22.897834+00:00"}],"reference_example_id":null,"parent_run_id":"8d12114d-af6d-4ebc-90eb-9029a463845a","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422889611Z8d12114d-af6d-4ebc-90eb-9029a463845a.20241119T134422890146Z872a349f-941e-4ee9-be2d-9071afc963e2","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"generations":[[{"text":"The + current temperature in Recife is 32 degrees Celsius.","generation_info":{"finish_reason":"stop","logprobs":null},"type":"ChatGeneration","message":{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-872a349f-941e-4ee9-be2d-9071afc963e2-0","usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151},"tool_calls":[],"invalid_tool_calls":[]}}}]],"llm_output":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83"},"run":null,"type":"LLMResult"},"name":"ChatOpenAI","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"You + are a temperature bot. Today is 2024-06-09.","type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"What + is the temperature today in Recife?","type":"human","id":"1"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127},"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","ToolMessage"],"kwargs":{"content":"32 + degrees Celsius","type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}}]]},"run_type":"llm"},{"id":"acddb720-b6ff-4293-8053-de36c5396214","start_time":"2024-11-19T13:44:22.898184+00:00","end_time":"2024-11-19T13:44:22.898468+00:00","extra":{"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:36c75082-9e49-0f75-fc8b-d3d29e162cf1","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.898184+00:00"},{"name":"end","time":"2024-11-19T13:44:22.898468+00:00"}],"reference_example_id":null,"parent_run_id":"8d12114d-af6d-4ebc-90eb-9029a463845a","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422889611Z8d12114d-af6d-4ebc-90eb-9029a463845a.20241119T134422898184Zacddb720-b6ff-4293-8053-de36c5396214","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"messages":[{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-872a349f-941e-4ee9-be2d-9071afc963e2-0","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}}]},"run_type":"chain"},{"id":"37c54088-3d58-4415-afe8-954b057c8f3c","start_time":"2024-11-19T13:44:22.900019+00:00","end_time":"2024-11-19T13:44:22.900358+00:00","extra":{"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:36c75082-9e49-0f75-fc8b-d3d29e162cf1","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.900019+00:00"},{"name":"end","time":"2024-11-19T13:44:22.900358+00:00"}],"reference_example_id":null,"parent_run_id":"8d12114d-af6d-4ebc-90eb-9029a463845a","tags":["seq:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422889611Z8d12114d-af6d-4ebc-90eb-9029a463845a.20241119T134422900019Z37c54088-3d58-4415-afe8-954b057c8f3c","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"output":"continue"},"name":"tool_selector","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"f5d73be8-6659-4ecf-9a4f-572f612ab9f3","start_time":"2024-11-19T13:44:22.901346+00:00","end_time":"2024-11-19T13:44:22.902063+00:00","extra":{"metadata":{"langgraph_step":7,"langgraph_node":"respond","langgraph_triggers":["branch:agent:tool_selector:respond"],"langgraph_path":["__pregel_pull","respond"],"langgraph_checkpoint_ns":"respond:4c1e60ea-84b3-161b-53c6-42308c5d6611","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.901346+00:00"},{"name":"end","time":"2024-11-19T13:44:22.902063+00:00"}],"reference_example_id":null,"parent_run_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","tags":["graph:step:7"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422901346Zf5d73be8-6659-4ecf-9a4f-572f612ab9f3","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"output":"The + current temperature in Recife is 32 degrees Celsius."},"name":"respond","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c6f4fa7f-4098-4d3f-afe3-7cd8f57272df"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}}],"input":"What + is the temperature today in Recife?"},"run_type":"chain"},{"id":"e3e7267d-60a8-4473-9dff-6215cbcb913a","start_time":"2024-11-19T13:44:22.901704+00:00","end_time":"2024-11-19T13:44:22.901942+00:00","extra":{"metadata":{"langgraph_step":7,"langgraph_node":"respond","langgraph_triggers":["branch:agent:tool_selector:respond"],"langgraph_path":["__pregel_pull","respond"],"langgraph_checkpoint_ns":"respond:4c1e60ea-84b3-161b-53c6-42308c5d6611","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:22.901704+00:00"},{"name":"end","time":"2024-11-19T13:44:22.901942+00:00"}],"reference_example_id":null,"parent_run_id":"f5d73be8-6659-4ecf-9a4f-572f612ab9f3","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134422849287Z92eaf18c-6860-4a93-bb55-1a5b0690e5da.20241119T134422901346Zf5d73be8-6659-4ecf-9a4f-572f612ab9f3.20241119T134422901704Ze3e7267d-60a8-4473-9dff-6215cbcb913a","trace_id":"92eaf18c-6860-4a93-bb55-1a5b0690e5da","outputs":{"output":"The + current temperature in Recife is 32 degrees Celsius."},"name":"ChannelWrite","inputs":{"output":"The + current temperature in Recife is 32 degrees Celsius."},"run_type":"chain"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '50085' + Content-Type: + - application/json + user-agent: + - OpenAI/Python + x-api-key: + - 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 + method: POST + uri: https://api.smith.langchain.com/runs/batch + response: + body: + string: '{"message":"Runs batch ingested"}' + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '' + Access-Control-Expose-Headers: + - '*' + Access-Control-Max-Age: + - '600' + Alt-Svc: + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 + Content-Length: + - '33' + Date: Sun, 09 Jun 2024 23:39:08 GMT + Server: DUMMY + Via: + - 1.1 google + content-type: + - application/json + date: + - Tue, 19 Nov 2024 13:44:23 GMT + server: + - uvicorn + status: + code: 202 + message: Accepted - request: body: '{"messages": [{"content": "You are a tour guide assistant offers information about nearby attractions. The user is at a location and wants to know what to @@ -32,18 +152,19 @@ interactions: method: POST uri: https://api.openai.com/v1/chat/completions response: - content: "{\n \"id\": \"chatcmpl-AEgzDhivTNpFojxM1BuqTCzQRnzye\",\n \"object\": - \"chat.completion\",\n \"created\": 1728065195,\n \"model\": \"gpt-4o-2024-08-06\",\n + content: "{\n \"id\": \"chatcmpl-AVIoh1UfB22UweBirCJdwx3adBFQk\",\n \"object\": + \"chat.completion\",\n \"created\": 1732023863,\n \"model\": \"gpt-4o-2024-08-06\",\n \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"You're right by the American Museum of - Natural History, a fascinating place with exhibits on everything from dinosaurs - to space. Enjoy a stroll through Central Park, which offers beautiful landscapes, - walking paths, and iconic spots like Bow Bridge and Bethesda Terrace.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 124,\n \"completion_tokens\": - 47,\n \"total_tokens\": 171,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_2f406b9113\"\n}\n" + \"assistant\",\n \"content\": \"You're right near the American Museum + of Natural History, which is great for exploring natural wonders and human cultures. + Central Park itself offers beautiful landscapes and activities like boating + and the Central Park Zoo.\",\n \"refusal\": null\n },\n \"logprobs\": + null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": + 124,\n \"completion_tokens\": 37,\n \"total_tokens\": 161,\n \"prompt_tokens_details\": + {\n \"cached_tokens\": 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": + {\n \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": + 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\": + \"fp_45cf54deae\"\n}\n" headers: Connection: - keep-alive @@ -61,19 +182,478 @@ interactions: - X-Request-ID http_version: HTTP/1.1 status_code: 200 +- request: + body: '{"post":[{"id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","start_time":"2024-11-19T13:44:23.064149+00:00","end_time":"2024-11-19T13:44:23.133359+00:00","extra":{"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"},"metadata":{"revision_id":"0.1.0-3-g0d1ae05-dirty"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.064149+00:00"},{"name":"end","time":"2024-11-19T13:44:23.133359+00:00"}],"reference_example_id":null,"parent_run_id":null,"tags":[],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}},{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","id":"7","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"},{"content":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"8","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":202,"output_tokens":15,"total_tokens":217}}],"input":"What + about tomorrow?","output":"The forecasted temperature for tomorrow in Recife + is 35 degrees Celsius."},"name":"LangGraph","inputs":{"input":"What about tomorrow?"},"run_type":"chain"},{"id":"ee3baa23-1a58-438d-97f3-be034451cb4a","start_time":"2024-11-19T13:44:23.065521+00:00","end_time":"2024-11-19T13:44:23.065982+00:00","extra":{"metadata":{"langgraph_step":0,"langgraph_node":"__start__","langgraph_triggers":["__start__"],"langgraph_path":["__pregel_pull","__start__"],"langgraph_checkpoint_ns":"__start__:8fdf85ba-d451-3465-25bb-2f5425650e5f","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.065521+00:00"},{"name":"end","time":"2024-11-19T13:44:23.065982+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:0","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423065521Zee3baa23-1a58-438d-97f3-be034451cb4a","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"input":"What + about tomorrow?"},"name":"__start__","inputs":{"input":"What about tomorrow?"},"run_type":"chain"},{"id":"eaaa503b-6a5a-4952-ae18-5ef3f87cfdbf","start_time":"2024-11-19T13:44:23.066567+00:00","end_time":"2024-11-19T13:44:23.068055+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:2e65b217-d372-d679-86fa-6830aeb89621","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.066567+00:00"},{"name":"end","time":"2024-11-19T13:44:23.068055+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423066567Zeaaa503b-6a5a-4952-ae18-5ef3f87cfdbf","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"setup","inputs":{"messages":[],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"ef00acfd-91d1-41d3-ae8f-592f02e47cdf","start_time":"2024-11-19T13:44:23.067138+00:00","end_time":"2024-11-19T13:44:23.067714+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:2e65b217-d372-d679-86fa-6830aeb89621","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.067138+00:00"},{"name":"end","time":"2024-11-19T13:44:23.067714+00:00"}],"reference_example_id":null,"parent_run_id":"eaaa503b-6a5a-4952-ae18-5ef3f87cfdbf","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423066567Zeaaa503b-6a5a-4952-ae18-5ef3f87cfdbf.20241119T134423067138Zef00acfd-91d1-41d3-ae8f-592f02e47cdf","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"}]},"run_type":"chain"},{"id":"ebb8f84c-f6de-4ac1-9349-8f50f2e86dc2","start_time":"2024-11-19T13:44:23.073035+00:00","end_time":"2024-11-19T13:44:23.076932+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:864374c5-515b-1071-baf1-0a13f9422583","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.073035+00:00"},{"name":"end","time":"2024-11-19T13:44:23.076932+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:2"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423073035Zebb8f84c-f6de-4ac1-9349-8f50f2e86dc2","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"history","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"ce04e978-8dc0-46aa-9764-df3618632f72","start_time":"2024-11-19T13:44:23.075699+00:00","end_time":"2024-11-19T13:44:23.076504+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:864374c5-515b-1071-baf1-0a13f9422583","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.075699+00:00"},{"name":"end","time":"2024-11-19T13:44:23.076504+00:00"}],"reference_example_id":null,"parent_run_id":"ebb8f84c-f6de-4ac1-9349-8f50f2e86dc2","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423073035Zebb8f84c-f6de-4ac1-9349-8f50f2e86dc2.20241119T134423075699Zce04e978-8dc0-46aa-9764-df3618632f72","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false}]},"run_type":"chain"},{"id":"021d57e8-c735-4aa0-aef9-6ac4643abde8","start_time":"2024-11-19T13:44:23.081157+00:00","end_time":"2024-11-19T13:44:23.083231+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:64d7f7be-26b8-bf9b-e7be-665c2d676d1b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.081157+00:00"},{"name":"end","time":"2024-11-19T13:44:23.083231+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423081157Z021d57e8-c735-4aa0-aef9-6ac4643abde8","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"output":null},"name":"retriever","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"e732d405-e969-4260-b607-e093f26d9064","start_time":"2024-11-19T13:44:23.082467+00:00","end_time":"2024-11-19T13:44:23.082974+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:64d7f7be-26b8-bf9b-e7be-665c2d676d1b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.082467+00:00"},{"name":"end","time":"2024-11-19T13:44:23.082974+00:00"}],"reference_example_id":null,"parent_run_id":"021d57e8-c735-4aa0-aef9-6ac4643abde8","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423081157Z021d57e8-c735-4aa0-aef9-6ac4643abde8.20241119T134423082467Ze732d405-e969-4260-b607-e093f26d9064","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"output":null},"name":"ChannelWrite","inputs":{"input":null},"run_type":"chain"},{"id":"a6d65eae-c658-4251-a8dc-00437711aac1","start_time":"2024-11-19T13:44:23.083903+00:00","end_time":"2024-11-19T13:44:23.103919+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d82ac58-7261-0e2c-77c5-3bb1630372f5","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.083903+00:00"},{"name":"end","time":"2024-11-19T13:44:23.103919+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:4"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423083903Za6d65eae-c658-4251-a8dc-00437711aac1","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}}]},"name":"agent","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"be5e4d6e-9fea-4215-93e4-066d5c88748f","start_time":"2024-11-19T13:44:23.085647+00:00","end_time":"2024-11-19T13:44:23.099755+00:00","extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null,"tools":[{"type":"function","function":{"name":"fetch_current_temperature","description":"Fetch + the current temperature data for a location","parameters":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"}}},{"type":"function","function":{"name":"fetch_forecast_temperature","description":"Fetch + the forecast temperature data for a location","parameters":{"type":"object","properties":{"location":{"type":"string"},"dt_str":{"description":"Date + in the format ''YYYY-MM-DD''","type":"string"}},"required":["location","dt_str"]}}}]},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d82ac58-7261-0e2c-77c5-3bb1630372f5","checkpoint_ns":"agent:2d82ac58-7261-0e2c-77c5-3bb1630372f5","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","chat_models","openai","ChatOpenAI"],"kwargs":{"model_name":"gpt-4o","temperature":1.0,"openai_api_key":{"lc":1,"type":"secret","id":["OPENAI_API_KEY"]},"max_retries":2,"n":1},"name":"ChatOpenAI"},"events":[{"name":"start","time":"2024-11-19T13:44:23.085647+00:00"},{"name":"end","time":"2024-11-19T13:44:23.099755+00:00"}],"reference_example_id":null,"parent_run_id":"a6d65eae-c658-4251-a8dc-00437711aac1","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423083903Za6d65eae-c658-4251-a8dc-00437711aac1.20241119T134423085647Zbe5e4d6e-9fea-4215-93e4-066d5c88748f","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"generations":[[{"text":"","generation_info":{"finish_reason":"tool_calls","logprobs":null},"type":"ChatGeneration","message":{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"run-be5e4d6e-9fea-4215-93e4-066d5c88748f-0","tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189},"invalid_tool_calls":[]}}}]],"llm_output":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83"},"run":null,"type":"LLMResult"},"name":"ChatOpenAI","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"You + are a temperature bot. Today is 2024-06-09.","type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"What + is the temperature today in Recife?","type":"human","id":"1"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127},"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","ToolMessage"],"kwargs":{"content":"32 + degrees Celsius","type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151},"tool_calls":[],"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"What + about tomorrow?","type":"human","id":"5"}}]]},"run_type":"llm"},{"id":"1b54d770-bc1d-4e93-9964-14bf22324ae2","start_time":"2024-11-19T13:44:23.100175+00:00","end_time":"2024-11-19T13:44:23.100564+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d82ac58-7261-0e2c-77c5-3bb1630372f5","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.100175+00:00"},{"name":"end","time":"2024-11-19T13:44:23.100564+00:00"}],"reference_example_id":null,"parent_run_id":"a6d65eae-c658-4251-a8dc-00437711aac1","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423083903Za6d65eae-c658-4251-a8dc-00437711aac1.20241119T134423100175Z1b54d770-bc1d-4e93-9964-14bf22324ae2","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"run-be5e4d6e-9fea-4215-93e4-066d5c88748f-0","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}}]},"run_type":"chain"},{"id":"358c8d11-b4cc-4f9d-ae5f-da9609341ab3","start_time":"2024-11-19T13:44:23.103014+00:00","end_time":"2024-11-19T13:44:23.103441+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d82ac58-7261-0e2c-77c5-3bb1630372f5","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.103014+00:00"},{"name":"end","time":"2024-11-19T13:44:23.103441+00:00"}],"reference_example_id":null,"parent_run_id":"a6d65eae-c658-4251-a8dc-00437711aac1","tags":["seq:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423083903Za6d65eae-c658-4251-a8dc-00437711aac1.20241119T134423103014Z358c8d11-b4cc-4f9d-ae5f-da9609341ab3","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"output":"call_tool"},"name":"tool_selector","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"d86ba3a2-7dab-4188-8459-2e30bab2f8ef","start_time":"2024-11-19T13:44:23.105462+00:00","end_time":"2024-11-19T13:44:23.108601+00:00","extra":{"metadata":{"langgraph_step":5,"langgraph_node":"tools","langgraph_triggers":["branch:agent:tool_selector:tools"],"langgraph_path":["__pregel_pull","tools"],"langgraph_checkpoint_ns":"tools:21f6d069-fd88-230f-0dcf-0d3ee2aa555a","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.105462+00:00"},{"name":"end","time":"2024-11-19T13:44:23.108601+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:5"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423105462Zd86ba3a2-7dab-4188-8459-2e30bab2f8ef","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"}]},"name":"tools","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"605e0f09-39aa-4409-b6ef-4d7d3e0e3254","start_time":"2024-11-19T13:44:23.106355+00:00","end_time":"2024-11-19T13:44:23.107707+00:00","extra":{"color":"green","metadata":{"langgraph_step":5,"langgraph_node":"tools","langgraph_triggers":["branch:agent:tool_selector:tools"],"langgraph_path":["__pregel_pull","tools"],"langgraph_checkpoint_ns":"tools:21f6d069-fd88-230f-0dcf-0d3ee2aa555a","checkpoint_ns":"tools:21f6d069-fd88-230f-0dcf-0d3ee2aa555a","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.106355+00:00"},{"name":"end","time":"2024-11-19T13:44:23.107707+00:00"}],"reference_example_id":null,"parent_run_id":"d86ba3a2-7dab-4188-8459-2e30bab2f8ef","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423105462Zd86ba3a2-7dab-4188-8459-2e30bab2f8ef.20241119T134423106355Z605e0f09-39aa-4409-b6ef-4d7d3e0e3254","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"output":{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"}},"name":"fetch_forecast_temperature","inputs":{"input":"{''location'': + ''Recife'', ''dt_str'': ''2024-06-10''}"},"run_type":"tool"},{"id":"403ef2d5-44ea-4a4b-b659-787406d02a2a","start_time":"2024-11-19T13:44:23.108036+00:00","end_time":"2024-11-19T13:44:23.108345+00:00","extra":{"metadata":{"langgraph_step":5,"langgraph_node":"tools","langgraph_triggers":["branch:agent:tool_selector:tools"],"langgraph_path":["__pregel_pull","tools"],"langgraph_checkpoint_ns":"tools:21f6d069-fd88-230f-0dcf-0d3ee2aa555a","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.108036+00:00"},{"name":"end","time":"2024-11-19T13:44:23.108345+00:00"}],"reference_example_id":null,"parent_run_id":"d86ba3a2-7dab-4188-8459-2e30bab2f8ef","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423105462Zd86ba3a2-7dab-4188-8459-2e30bab2f8ef.20241119T134423108036Z403ef2d5-44ea-4a4b-b659-787406d02a2a","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","id":"7","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"}]},"run_type":"chain"},{"id":"1fc10cfe-3e13-44db-9c2b-1e7ad59973b2","start_time":"2024-11-19T13:44:23.113165+00:00","end_time":"2024-11-19T13:44:23.131027+00:00","extra":{"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:a052a57c-8df4-eb46-69b6-76394408a3cc","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.113165+00:00"},{"name":"end","time":"2024-11-19T13:44:23.131027+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:6"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423113165Z1fc10cfe-3e13-44db-9c2b-1e7ad59973b2","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"8","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":202,"output_tokens":15,"total_tokens":217}}]},"name":"agent","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}},{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","id":"7","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"c4cb551d-b9cd-49fb-9d2f-4c060abb1163","start_time":"2024-11-19T13:44:23.113880+00:00","end_time":"2024-11-19T13:44:23.126978+00:00","extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null,"tools":[{"type":"function","function":{"name":"fetch_current_temperature","description":"Fetch + the current temperature data for a location","parameters":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"}}},{"type":"function","function":{"name":"fetch_forecast_temperature","description":"Fetch + the forecast temperature data for a location","parameters":{"type":"object","properties":{"location":{"type":"string"},"dt_str":{"description":"Date + in the format ''YYYY-MM-DD''","type":"string"}},"required":["location","dt_str"]}}}]},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:a052a57c-8df4-eb46-69b6-76394408a3cc","checkpoint_ns":"agent:a052a57c-8df4-eb46-69b6-76394408a3cc","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","chat_models","openai","ChatOpenAI"],"kwargs":{"model_name":"gpt-4o","temperature":1.0,"openai_api_key":{"lc":1,"type":"secret","id":["OPENAI_API_KEY"]},"max_retries":2,"n":1},"name":"ChatOpenAI"},"events":[{"name":"start","time":"2024-11-19T13:44:23.113880+00:00"},{"name":"end","time":"2024-11-19T13:44:23.126978+00:00"}],"reference_example_id":null,"parent_run_id":"1fc10cfe-3e13-44db-9c2b-1e7ad59973b2","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423113165Z1fc10cfe-3e13-44db-9c2b-1e7ad59973b2.20241119T134423113880Zc4cb551d-b9cd-49fb-9d2f-4c060abb1163","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"generations":[[{"text":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","generation_info":{"finish_reason":"stop","logprobs":null},"type":"ChatGeneration","message":{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-c4cb551d-b9cd-49fb-9d2f-4c060abb1163-0","usage_metadata":{"input_tokens":202,"output_tokens":15,"total_tokens":217},"tool_calls":[],"invalid_tool_calls":[]}}}]],"llm_output":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83"},"run":null,"type":"LLMResult"},"name":"ChatOpenAI","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"You + are a temperature bot. Today is 2024-06-09.","type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"What + is the temperature today in Recife?","type":"human","id":"1"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127},"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","ToolMessage"],"kwargs":{"content":"32 + degrees Celsius","type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151},"tool_calls":[],"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"What + about tomorrow?","type":"human","id":"5"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189},"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","ToolMessage"],"kwargs":{"content":"35 + degrees Celsius","type":"tool","name":"fetch_forecast_temperature","id":"7","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"}}]]},"run_type":"llm"},{"id":"18e19358-4fea-407e-9ac3-537597a9497d","start_time":"2024-11-19T13:44:23.127353+00:00","end_time":"2024-11-19T13:44:23.127682+00:00","extra":{"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:a052a57c-8df4-eb46-69b6-76394408a3cc","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.127353+00:00"},{"name":"end","time":"2024-11-19T13:44:23.127682+00:00"}],"reference_example_id":null,"parent_run_id":"1fc10cfe-3e13-44db-9c2b-1e7ad59973b2","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423113165Z1fc10cfe-3e13-44db-9c2b-1e7ad59973b2.20241119T134423127353Z18e19358-4fea-407e-9ac3-537597a9497d","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"messages":[{"content":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-c4cb551d-b9cd-49fb-9d2f-4c060abb1163-0","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":202,"output_tokens":15,"total_tokens":217}}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"8","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":202,"output_tokens":15,"total_tokens":217}}]},"run_type":"chain"},{"id":"f8281092-0be0-4493-bfd1-0f6f326cc557","start_time":"2024-11-19T13:44:23.130378+00:00","end_time":"2024-11-19T13:44:23.130856+00:00","extra":{"metadata":{"langgraph_step":6,"langgraph_node":"agent","langgraph_triggers":["tools"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:a052a57c-8df4-eb46-69b6-76394408a3cc","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.130378+00:00"},{"name":"end","time":"2024-11-19T13:44:23.130856+00:00"}],"reference_example_id":null,"parent_run_id":"1fc10cfe-3e13-44db-9c2b-1e7ad59973b2","tags":["seq:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423113165Z1fc10cfe-3e13-44db-9c2b-1e7ad59973b2.20241119T134423130378Zf8281092-0be0-4493-bfd1-0f6f326cc557","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"output":"continue"},"name":"tool_selector","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}},{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","id":"7","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"},{"content":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"8","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":202,"output_tokens":15,"total_tokens":217}}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"3e8cd7f5-e892-455d-ae27-9c403760c7fc","start_time":"2024-11-19T13:44:23.132109+00:00","end_time":"2024-11-19T13:44:23.133028+00:00","extra":{"metadata":{"langgraph_step":7,"langgraph_node":"respond","langgraph_triggers":["branch:agent:tool_selector:respond"],"langgraph_path":["__pregel_pull","respond"],"langgraph_checkpoint_ns":"respond:23c87968-4a73-8717-6196-028a618741d7","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.132109+00:00"},{"name":"end","time":"2024-11-19T13:44:23.133028+00:00"}],"reference_example_id":null,"parent_run_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","tags":["graph:step:7"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423132109Z3e8cd7f5-e892-455d-ae27-9c403760c7fc","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"output":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius."},"name":"respond","inputs":{"messages":[{"content":"You + are a temperature bot. Today is 2024-06-09.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"c63dc8d1-fd69-483a-93c0-2f7c9ff45e42"},{"content":"What + is the temperature today in Recife?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"1","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_mp680g1ciZRb9eaRoWZUpMWG","function":{"arguments":"{\"location\":\"Recife\"}","name":"fetch_current_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":16,"prompt_tokens":111,"total_tokens":127,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"2","example":false,"tool_calls":[{"name":"fetch_current_temperature","args":{"location":"Recife"},"id":"call_mp680g1ciZRb9eaRoWZUpMWG","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":111,"output_tokens":16,"total_tokens":127}},{"content":"32 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_current_temperature","id":"3","tool_call_id":"call_mp680g1ciZRb9eaRoWZUpMWG","status":"success"},{"content":"The + current temperature in Recife is 32 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":12,"prompt_tokens":139,"total_tokens":151,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"4","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":139,"output_tokens":12,"total_tokens":151}},{"content":"What + about tomorrow?","additional_kwargs":{},"response_metadata":{},"type":"human","id":"5","example":false},{"content":"","additional_kwargs":{"tool_calls":[{"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","function":{"arguments":"{\"location\":\"Recife\",\"dt_str\":\"2024-06-10\"}","name":"fetch_forecast_temperature"},"type":"function"}],"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":27,"prompt_tokens":162,"total_tokens":189,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"tool_calls","logprobs":null},"type":"ai","id":"6","example":false,"tool_calls":[{"name":"fetch_forecast_temperature","args":{"location":"Recife","dt_str":"2024-06-10"},"id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","type":"tool_call"}],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":162,"output_tokens":27,"total_tokens":189}},{"content":"35 + degrees Celsius","additional_kwargs":{},"response_metadata":{},"type":"tool","name":"fetch_forecast_temperature","id":"7","tool_call_id":"call_5Y5P4y5m0VFzh5GE0RNeEkyP","status":"success"},{"content":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":15,"prompt_tokens":202,"total_tokens":217,"completion_tokens_details":{"reasoning_tokens":0},"prompt_tokens_details":{"cached_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_e5e4913e83","finish_reason":"stop","logprobs":null},"type":"ai","id":"8","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":202,"output_tokens":15,"total_tokens":217}}],"input":"What + about tomorrow?"},"run_type":"chain"},{"id":"fd2270c6-2e7f-42f2-8c14-40e735f29d7f","start_time":"2024-11-19T13:44:23.132604+00:00","end_time":"2024-11-19T13:44:23.132881+00:00","extra":{"metadata":{"langgraph_step":7,"langgraph_node":"respond","langgraph_triggers":["branch:agent:tool_selector:respond"],"langgraph_path":["__pregel_pull","respond"],"langgraph_checkpoint_ns":"respond:23c87968-4a73-8717-6196-028a618741d7","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.132604+00:00"},{"name":"end","time":"2024-11-19T13:44:23.132881+00:00"}],"reference_example_id":null,"parent_run_id":"3e8cd7f5-e892-455d-ae27-9c403760c7fc","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423064149Z060a320d-cb9e-4c0f-af0e-5c26ce42c159.20241119T134423132109Z3e8cd7f5-e892-455d-ae27-9c403760c7fc.20241119T134423132604Zfd2270c6-2e7f-42f2-8c14-40e735f29d7f","trace_id":"060a320d-cb9e-4c0f-af0e-5c26ce42c159","outputs":{"output":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius."},"name":"ChannelWrite","inputs":{"output":"The + forecasted temperature for tomorrow in Recife is 35 degrees Celsius."},"run_type":"chain"},{"id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","start_time":"2024-11-19T13:44:23.256515+00:00","end_time":null,"extra":{"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"},"metadata":{"revision_id":"0.1.0-3-g0d1ae05-dirty"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.256515+00:00"}],"reference_example_id":null,"parent_run_id":null,"tags":[],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{},"name":"LangGraph","inputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"c97e3e86-366c-4076-b8d3-1d8e130321b2","start_time":"2024-11-19T13:44:23.257162+00:00","end_time":"2024-11-19T13:44:23.257467+00:00","extra":{"metadata":{"langgraph_step":0,"langgraph_node":"__start__","langgraph_triggers":["__start__"],"langgraph_path":["__pregel_pull","__start__"],"langgraph_checkpoint_ns":"__start__:57a0bdcd-e70c-eb32-83a0-1dc3093e0f82","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.257162+00:00"},{"name":"end","time":"2024-11-19T13:44:23.257467+00:00"}],"reference_example_id":null,"parent_run_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","tags":["graph:step:0","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423257162Zc97e3e86-366c-4076-b8d3-1d8e130321b2","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"name":"__start__","inputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"e7b7b7f7-5275-4c26-8be5-940efdbf57df","start_time":"2024-11-19T13:44:23.259101+00:00","end_time":"2024-11-19T13:44:23.259907+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:9fe1bb8d-1e63-85fc-02ae-566efb42ce03","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.259101+00:00"},{"name":"end","time":"2024-11-19T13:44:23.259907+00:00"}],"reference_example_id":null,"parent_run_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","tags":["graph:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423259101Ze7b7b7f7-5275-4c26-8be5-940efdbf57df","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"setup","inputs":{"messages":[],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"4aa9d1c2-27eb-4453-b021-d6f58beae727","start_time":"2024-11-19T13:44:23.259434+00:00","end_time":"2024-11-19T13:44:23.259738+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:9fe1bb8d-1e63-85fc-02ae-566efb42ce03","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.259434+00:00"},{"name":"end","time":"2024-11-19T13:44:23.259738+00:00"}],"reference_example_id":null,"parent_run_id":"e7b7b7f7-5275-4c26-8be5-940efdbf57df","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423259101Ze7b7b7f7-5275-4c26-8be5-940efdbf57df.20241119T134423259434Z4aa9d1c2-27eb-4453-b021-d6f58beae727","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"}]},"run_type":"chain"},{"id":"0f46cd7c-0417-4482-bdf3-f9b4c0c0e91c","start_time":"2024-11-19T13:44:23.260952+00:00","end_time":"2024-11-19T13:44:23.262180+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:c2fb3245-7914-aca4-b450-cc607c827ae4","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.260952+00:00"},{"name":"end","time":"2024-11-19T13:44:23.262180+00:00"}],"reference_example_id":null,"parent_run_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","tags":["graph:step:2"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423260952Z0f46cd7c-0417-4482-bdf3-f9b4c0c0e91c","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"messages":[{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"history","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"}],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"74dbbaae-1d7c-4092-8d0c-852604adff9e","start_time":"2024-11-19T13:44:23.261692+00:00","end_time":"2024-11-19T13:44:23.262002+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:c2fb3245-7914-aca4-b450-cc607c827ae4","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.261692+00:00"},{"name":"end","time":"2024-11-19T13:44:23.262002+00:00"}],"reference_example_id":null,"parent_run_id":"0f46cd7c-0417-4482-bdf3-f9b4c0c0e91c","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423260952Z0f46cd7c-0417-4482-bdf3-f9b4c0c0e91c.20241119T134423261692Z74dbbaae-1d7c-4092-8d0c-852604adff9e","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"messages":[{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false}]},"run_type":"chain"},{"id":"05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1","start_time":"2024-11-19T13:44:23.263907+00:00","end_time":"2024-11-19T13:44:23.346667+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.263907+00:00"},{"name":"end","time":"2024-11-19T13:44:23.346667+00:00"}],"reference_example_id":null,"parent_run_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","tags":["graph:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423263907Z05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":null},"name":"retriever","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false}],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"92dbad0c-2aaa-40c6-8f28-94a81305fd9d","start_time":"2024-11-19T13:44:23.336357+00:00","end_time":"2024-11-19T13:44:23.345596+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.336357+00:00"},{"name":"end","time":"2024-11-19T13:44:23.345596+00:00"}],"reference_example_id":null,"parent_run_id":"05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423263907Z05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1.20241119T134423336357Z92dbad0c-2aaa-40c6-8f28-94a81305fd9d","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":[{"metadata":{},"page_content":"Central + Park","type":"Document"},{"metadata":{},"page_content":"American Museum of Natural + History","type":"Document"}]},"name":"RunnableBranch","inputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","history":[]},"run_type":"chain"},{"id":"5d88528c-c4c0-4872-ae72-d61010d730f0","start_time":"2024-11-19T13:44:23.336774+00:00","end_time":"2024-11-19T13:44:23.337476+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.336774+00:00"},{"name":"end","time":"2024-11-19T13:44:23.337476+00:00"}],"reference_example_id":null,"parent_run_id":"92dbad0c-2aaa-40c6-8f28-94a81305fd9d","tags":["condition:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423263907Z05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1.20241119T134423336357Z92dbad0c-2aaa-40c6-8f28-94a81305fd9d.20241119T134423336774Z5d88528c-c4c0-4872-ae72-d61010d730f0","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":true},"name":"RunnableLambda","inputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","history":[]},"run_type":"chain"},{"id":"8f3a3ee1-6a93-4338-9a61-a0e4b194e01d","start_time":"2024-11-19T13:44:23.343897+00:00","end_time":"2024-11-19T13:44:23.345428+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.343897+00:00"},{"name":"end","time":"2024-11-19T13:44:23.345428+00:00"}],"reference_example_id":null,"parent_run_id":"92dbad0c-2aaa-40c6-8f28-94a81305fd9d","tags":["branch:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423263907Z05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1.20241119T134423336357Z92dbad0c-2aaa-40c6-8f28-94a81305fd9d.20241119T134423343897Z8f3a3ee1-6a93-4338-9a61-a0e4b194e01d","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":[{"metadata":{},"page_content":"Central + Park","type":"Document"},{"metadata":{},"page_content":"American Museum of Natural + History","type":"Document"}]},"name":"RunnableSequence","inputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","history":[]},"run_type":"chain"},{"id":"95908671-06f0-4b02-ba04-171ce5f31ae1","start_time":"2024-11-19T13:44:23.344305+00:00","end_time":"2024-11-19T13:44:23.344725+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.344305+00:00"},{"name":"end","time":"2024-11-19T13:44:23.344725+00:00"}],"reference_example_id":null,"parent_run_id":"8f3a3ee1-6a93-4338-9a61-a0e4b194e01d","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423263907Z05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1.20241119T134423336357Z92dbad0c-2aaa-40c6-8f28-94a81305fd9d.20241119T134423343897Z8f3a3ee1-6a93-4338-9a61-a0e4b194e01d.20241119T134423344305Z95908671-06f0-4b02-ba04-171ce5f31ae1","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"name":"RunnableLambda","inputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","history":[]},"run_type":"chain"},{"id":"8e212681-191b-4426-8a09-0f775717c83b","start_time":"2024-11-19T13:44:23.344994+00:00","end_time":"2024-11-19T13:44:23.345256+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","ls_retriever_name":"sequential","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.344994+00:00"},{"name":"end","time":"2024-11-19T13:44:23.345256+00:00"}],"reference_example_id":null,"parent_run_id":"8f3a3ee1-6a93-4338-9a61-a0e4b194e01d","tags":["seq:step:2"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423263907Z05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1.20241119T134423336357Z92dbad0c-2aaa-40c6-8f28-94a81305fd9d.20241119T134423343897Z8f3a3ee1-6a93-4338-9a61-a0e4b194e01d.20241119T134423344994Z8e212681-191b-4426-8a09-0f775717c83b","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"documents":[{"metadata":{},"page_content":"Central + Park","type":"Document"},{"metadata":{},"page_content":"American Museum of Natural + History","type":"Document"}]},"name":"SequentialRetriever","inputs":{"query":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"retriever"},{"id":"e0e4210f-ce6f-4f29-a7de-b11131600854","start_time":"2024-11-19T13:44:23.346153+00:00","end_time":"2024-11-19T13:44:23.346515+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:67636268-b01f-eb15-b07b-7015360f473b","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.346153+00:00"},{"name":"end","time":"2024-11-19T13:44:23.346515+00:00"}],"reference_example_id":null,"parent_run_id":"05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423263907Z05b43c1b-e5bc-44cc-a717-0a6cb5b0c6f1.20241119T134423346153Ze0e4210f-ce6f-4f29-a7de-b11131600854","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":null},"name":"ChannelWrite","inputs":{"input":null},"run_type":"chain"},{"id":"50128e4e-dd24-48c5-b305-1966e948ab70","start_time":"2024-11-19T13:44:23.347053+00:00","end_time":null,"extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:23.347053+00:00"}],"reference_example_id":null,"parent_run_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","tags":["graph:step:4"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423347053Z50128e4e-dd24-48c5-b305-1966e948ab70","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{},"name":"agent","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false}],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"aa99da42-83e9-4ca1-ac0c-529131c26309","start_time":"2024-11-19T13:44:23.347660+00:00","end_time":null,"extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","chat_models","openai","ChatOpenAI"],"kwargs":{"model_name":"gpt-4o","temperature":1.0,"openai_api_key":{"lc":1,"type":"secret","id":["OPENAI_API_KEY"]},"max_retries":2,"n":1},"name":"ChatOpenAI"},"events":[{"name":"start","time":"2024-11-19T13:44:23.347660+00:00"}],"reference_example_id":null,"parent_run_id":"50128e4e-dd24-48c5-b305-1966e948ab70","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423347053Z50128e4e-dd24-48c5-b305-1966e948ab70.20241119T134423347660Zaa99da42-83e9-4ca1-ac0c-529131c26309","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{},"name":"ChatOpenAI","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","type":"human","id":"9"}}]]},"run_type":"llm"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '99529' + Content-Type: + - application/json + user-agent: + - OpenAI/Python + x-api-key: + - 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 + method: POST + uri: https://api.smith.langchain.com/runs/batch + response: + body: + string: '{"message":"Runs batch ingested"}' + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '' + Access-Control-Expose-Headers: + - '*' + Access-Control-Max-Age: + - '600' + Alt-Svc: + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 + Content-Length: + - '33' + Date: Sun, 09 Jun 2024 23:39:08 GMT + Server: DUMMY + Via: + - 1.1 google + content-type: + - application/json + date: + - Tue, 19 Nov 2024 13:44:24 GMT + server: + - uvicorn + status: + code: 202 + message: Accepted +- request: + body: '{"post":[{"id":"20433d67-5671-4977-bb34-c4a73f2b615d","start_time":"2024-11-19T13:44:24.480953+00:00","end_time":"2024-11-19T13:44:24.481284+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.480953+00:00"},{"name":"end","time":"2024-11-19T13:44:24.481284+00:00"}],"reference_example_id":null,"parent_run_id":"50128e4e-dd24-48c5-b305-1966e948ab70","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423347053Z50128e4e-dd24-48c5-b305-1966e948ab70.20241119T134424480953Z20433d67-5671-4977-bb34-c4a73f2b615d","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"messages":[{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-aa99da42-83e9-4ca1-ac0c-529131c26309-0","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"run_type":"chain"},{"id":"9ac773aa-3116-448d-a1be-6c6abe71686f","start_time":"2024-11-19T13:44:24.483355+00:00","end_time":"2024-11-19T13:44:24.483692+00:00","extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.483355+00:00"},{"name":"end","time":"2024-11-19T13:44:24.483692+00:00"}],"reference_example_id":null,"parent_run_id":"50128e4e-dd24-48c5-b305-1966e948ab70","tags":["seq:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423347053Z50128e4e-dd24-48c5-b305-1966e948ab70.20241119T134424483355Z9ac773aa-3116-448d-a1be-6c6abe71686f","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":"continue"},"name":"tool_selector","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"320fadc3-bc2f-4a2b-9c90-f64fc50d76b1","start_time":"2024-11-19T13:44:24.484845+00:00","end_time":"2024-11-19T13:44:24.485817+00:00","extra":{"metadata":{"langgraph_step":5,"langgraph_node":"respond","langgraph_triggers":["branch:agent:tool_selector:respond"],"langgraph_path":["__pregel_pull","respond"],"langgraph_checkpoint_ns":"respond:1c03e297-6987-edd6-4700-947eaefa49e2","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.484845+00:00"},{"name":"end","time":"2024-11-19T13:44:24.485817+00:00"}],"reference_example_id":null,"parent_run_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","tags":["graph:step:5"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134424484845Z320fadc3-bc2f-4a2b-9c90-f64fc50d76b1","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo."},"name":"respond","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"run_type":"chain"},{"id":"418f082c-b8ea-45cd-8067-a3100cdecfca","start_time":"2024-11-19T13:44:24.485319+00:00","end_time":"2024-11-19T13:44:24.485670+00:00","extra":{"metadata":{"langgraph_step":5,"langgraph_node":"respond","langgraph_triggers":["branch:agent:tool_selector:respond"],"langgraph_path":["__pregel_pull","respond"],"langgraph_checkpoint_ns":"respond:1c03e297-6987-edd6-4700-947eaefa49e2","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.485319+00:00"},{"name":"end","time":"2024-11-19T13:44:24.485670+00:00"}],"reference_example_id":null,"parent_run_id":"320fadc3-bc2f-4a2b-9c90-f64fc50d76b1","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134424484845Z320fadc3-bc2f-4a2b-9c90-f64fc50d76b1.20241119T134424485319Z418f082c-b8ea-45cd-8067-a3100cdecfca","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","outputs":{"output":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo."},"name":"ChannelWrite","inputs":{"output":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo."},"run_type":"chain"},{"id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","start_time":"2024-11-19T13:44:24.569473+00:00","end_time":null,"extra":{"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"},"metadata":{"revision_id":"0.1.0-3-g0d1ae05-dirty"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.569473+00:00"}],"reference_example_id":null,"parent_run_id":null,"tags":[],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{},"name":"LangGraph","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States."},"run_type":"chain"},{"id":"5f34d2a7-9282-4a06-8e2c-0fb9b1f0871e","start_time":"2024-11-19T13:44:24.570137+00:00","end_time":"2024-11-19T13:44:24.570439+00:00","extra":{"metadata":{"langgraph_step":0,"langgraph_node":"__start__","langgraph_triggers":["__start__"],"langgraph_path":["__pregel_pull","__start__"],"langgraph_checkpoint_ns":"__start__:9f86f7f3-ee2f-c89b-e446-324806cf996d","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.570137+00:00"},{"name":"end","time":"2024-11-19T13:44:24.570439+00:00"}],"reference_example_id":null,"parent_run_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","tags":["graph:step:0","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424570137Z5f34d2a7-9282-4a06-8e2c-0fb9b1f0871e","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"input":"11 + W 53rd St, New York, NY 10019, United States."},"name":"__start__","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States."},"run_type":"chain"},{"id":"d132cea8-c39c-44a8-9420-f358b34b5998","start_time":"2024-11-19T13:44:24.570800+00:00","end_time":"2024-11-19T13:44:24.571601+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:7bab5d60-4a4a-f11e-015c-75365a446096","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.570800+00:00"},{"name":"end","time":"2024-11-19T13:44:24.571601+00:00"}],"reference_example_id":null,"parent_run_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","tags":["graph:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424570800Zd132cea8-c39c-44a8-9420-f358b34b5998","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"setup","inputs":{"messages":[],"input":"11 + W 53rd St, New York, NY 10019, United States."},"run_type":"chain"},{"id":"7a850143-c8b6-4512-beb9-161d68e28290","start_time":"2024-11-19T13:44:24.571115+00:00","end_time":"2024-11-19T13:44:24.571397+00:00","extra":{"metadata":{"langgraph_step":1,"langgraph_node":"setup","langgraph_triggers":["start:setup"],"langgraph_path":["__pregel_pull","setup"],"langgraph_checkpoint_ns":"setup:7bab5d60-4a4a-f11e-015c-75365a446096","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.571115+00:00"},{"name":"end","time":"2024-11-19T13:44:24.571397+00:00"}],"reference_example_id":null,"parent_run_id":"d132cea8-c39c-44a8-9420-f358b34b5998","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424570800Zd132cea8-c39c-44a8-9420-f358b34b5998.20241119T134424571115Z7a850143-c8b6-4512-beb9-161d68e28290","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.","additional_kwargs":{},"response_metadata":{},"type":"system"}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"88610053-acd6-408b-a547-0ce58cdb4963"}]},"run_type":"chain"},{"id":"a3c260e2-019c-4dd2-b6f5-f7473a30f122","start_time":"2024-11-19T13:44:24.572572+00:00","end_time":"2024-11-19T13:44:24.573976+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:9fb4c16f-47a8-8424-1240-1c527b381ce7","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.572572+00:00"},{"name":"end","time":"2024-11-19T13:44:24.573976+00:00"}],"reference_example_id":null,"parent_run_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","tags":["graph:step:2"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424572572Za3c260e2-019c-4dd2-b6f5-f7473a30f122","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"messages":[{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}},{"content":"11 + W 53rd St, New York, NY 10019, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"history","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"88610053-acd6-408b-a547-0ce58cdb4963"}],"input":"11 + W 53rd St, New York, NY 10019, United States."},"run_type":"chain"},{"id":"38b66de3-90d3-46c6-bf03-a02d31faeaae","start_time":"2024-11-19T13:44:24.573429+00:00","end_time":"2024-11-19T13:44:24.573773+00:00","extra":{"metadata":{"langgraph_step":2,"langgraph_node":"history","langgraph_triggers":["setup"],"langgraph_path":["__pregel_pull","history"],"langgraph_checkpoint_ns":"history:9fb4c16f-47a8-8424-1240-1c527b381ce7","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.573429+00:00"},{"name":"end","time":"2024-11-19T13:44:24.573773+00:00"}],"reference_example_id":null,"parent_run_id":"a3c260e2-019c-4dd2-b6f5-f7473a30f122","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424572572Za3c260e2-019c-4dd2-b6f5-f7473a30f122.20241119T134424573429Z38b66de3-90d3-46c6-bf03-a02d31faeaae","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"messages":[{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}},{"content":"11 + W 53rd St, New York, NY 10019, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","example":false}]},"name":"ChannelWrite","inputs":{"messages":[{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}},{"content":"11 + W 53rd St, New York, NY 10019, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"11","example":false}]},"run_type":"chain"},{"id":"bb620f86-7f16-4e52-aa07-995a29d7e288","start_time":"2024-11-19T13:44:24.575695+00:00","end_time":null,"extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.575695+00:00"}],"reference_example_id":null,"parent_run_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","tags":["graph:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{},"name":"retriever","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.","additional_kwargs":{},"response_metadata":{},"type":"system","id":"88610053-acd6-408b-a547-0ce58cdb4963"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}},{"content":"11 + W 53rd St, New York, NY 10019, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"11","example":false}],"input":"11 + W 53rd St, New York, NY 10019, United States."},"run_type":"chain"},{"id":"15b4d833-9092-4876-bfc2-edb801b2d3a0","start_time":"2024-11-19T13:44:24.648388+00:00","end_time":null,"extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.648388+00:00"}],"reference_example_id":null,"parent_run_id":"bb620f86-7f16-4e52-aa07-995a29d7e288","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{},"name":"RunnableBranch","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States.","history":[{"content":"I''m at + Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"run_type":"chain"},{"id":"75e0a742-bb94-4752-8908-2b8e0030aea7","start_time":"2024-11-19T13:44:24.648851+00:00","end_time":"2024-11-19T13:44:24.649313+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.648851+00:00"},{"name":"end","time":"2024-11-19T13:44:24.649313+00:00"}],"reference_example_id":null,"parent_run_id":"15b4d833-9092-4876-bfc2-edb801b2d3a0","tags":["condition:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424648851Z75e0a742-bb94-4752-8908-2b8e0030aea7","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"output":false},"name":"RunnableLambda","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States.","history":[{"content":"I''m at + Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"run_type":"chain"},{"id":"720223c9-eff1-4428-8d3a-887e6a121629","start_time":"2024-11-19T13:44:24.649598+00:00","end_time":null,"extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:24.649598+00:00"}],"reference_example_id":null,"parent_run_id":"15b4d833-9092-4876-bfc2-edb801b2d3a0","tags":["branch:default"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424649598Z720223c9-eff1-4428-8d3a-887e6a121629","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{},"name":"RunnableSequence","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States.","history":[{"content":"I''m at + Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"run_type":"chain"},{"id":"136675d2-f488-4459-ba5b-3d604b083f0a","start_time":"2024-11-19T13:44:24.650337+00:00","end_time":"2024-11-19T13:44:24.651123+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","prompts","chat","ChatPromptTemplate"],"kwargs":{"input_variables":["history","input"],"messages":[{"lc":1,"type":"constructor","id":["langchain","prompts","chat","SystemMessagePromptTemplate"],"kwargs":{"prompt":{"lc":1,"type":"constructor","id":["langchain","prompts","prompt","PromptTemplate"],"kwargs":{"input_variables":[],"template":"Given + a chat history and the latest user question which might reference context in + the chat history, formulate a standalone question which can be understood without + the chat history. Do NOT answer the question, just reformulate it if needed + and otherwise return it as is.","template_format":"f-string"},"name":"PromptTemplate"}}},{"lc":1,"type":"constructor","id":["langchain","prompts","chat","MessagesPlaceholder"],"kwargs":{"variable_name":"history"}},{"lc":1,"type":"constructor","id":["langchain","prompts","chat","HumanMessagePromptTemplate"],"kwargs":{"prompt":{"lc":1,"type":"constructor","id":["langchain","prompts","prompt","PromptTemplate"],"kwargs":{"input_variables":["input"],"template":"{input}","template_format":"f-string"},"name":"PromptTemplate"}}}]},"name":"ChatPromptTemplate"},"events":[{"name":"start","time":"2024-11-19T13:44:24.650337+00:00"},{"name":"end","time":"2024-11-19T13:44:24.651123+00:00"}],"reference_example_id":null,"parent_run_id":"720223c9-eff1-4428-8d3a-887e6a121629","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424649598Z720223c9-eff1-4428-8d3a-887e6a121629.20241119T134424650337Z136675d2-f488-4459-ba5b-3d604b083f0a","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"output":{"messages":[{"content":"Given + a chat history and the latest user question which might reference context in + the chat history, formulate a standalone question which can be understood without + the chat history. Do NOT answer the question, just reformulate it if needed + and otherwise return it as is.","additional_kwargs":{},"response_metadata":{},"type":"system"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9"},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10"},{"content":"11 + W 53rd St, New York, NY 10019, United States.","additional_kwargs":{},"response_metadata":{},"type":"human"}]}},"name":"ChatPromptTemplate","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States.","history":[{"content":"I''m at + Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"run_type":"prompt"},{"id":"9cedb47f-f227-496a-9a8d-ae831a8da075","start_time":"2024-11-19T13:44:24.651770+00:00","end_time":null,"extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","chat_models","openai","ChatOpenAI"],"kwargs":{"model_name":"gpt-4o","temperature":1.0,"openai_api_key":{"lc":1,"type":"secret","id":["OPENAI_API_KEY"]},"max_retries":2,"n":1},"name":"ChatOpenAI"},"events":[{"name":"start","time":"2024-11-19T13:44:24.651770+00:00"}],"reference_example_id":null,"parent_run_id":"720223c9-eff1-4428-8d3a-887e6a121629","tags":["seq:step:2"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424649598Z720223c9-eff1-4428-8d3a-887e6a121629.20241119T134424651770Z9cedb47f-f227-496a-9a8d-ae831a8da075","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{},"name":"ChatOpenAI","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"Given + a chat history and the latest user question which might reference context in + the chat history, formulate a standalone question which can be understood without + the chat history. Do NOT answer the question, just reformulate it if needed + and otherwise return it as is.","type":"system"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","type":"human","id":"9"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161},"tool_calls":[],"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"11 + W 53rd St, New York, NY 10019, United States.","type":"human"}}]]},"run_type":"llm"}],"patch":[{"id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","name":"LangGraph","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","parent_run_id":null,"dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8","tags":[],"extra":{"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"},"metadata":{"revision_id":"0.1.0-3-g0d1ae05-dirty"}},"end_time":"2024-11-19T13:44:24.486136+00:00","inputs":{"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"outputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","output":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo."},"events":[{"name":"start","time":"2024-11-19T13:44:23.256515+00:00"},{"name":"end","time":"2024-11-19T13:44:24.486136+00:00"}]},{"id":"50128e4e-dd24-48c5-b305-1966e948ab70","name":"agent","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","parent_run_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423347053Z50128e4e-dd24-48c5-b305-1966e948ab70","tags":["graph:step:4"],"extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"end_time":"2024-11-19T13:44:24.483859+00:00","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false}],"input":"I''m + at Central Park W & 79st, New York, NY 10024, United States."},"outputs":{"messages":[{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"events":[{"name":"start","time":"2024-11-19T13:44:23.347053+00:00"},{"name":"end","time":"2024-11-19T13:44:24.483859+00:00"}]},{"id":"aa99da42-83e9-4ca1-ac0c-529131c26309","name":"ChatOpenAI","trace_id":"aee05441-c6d5-46dd-8b47-e631c65d76e8","parent_run_id":"50128e4e-dd24-48c5-b305-1966e948ab70","dotted_order":"20241119T134423256515Zaee05441-c6d5-46dd-8b47-e631c65d76e8.20241119T134423347053Z50128e4e-dd24-48c5-b305-1966e948ab70.20241119T134423347660Zaa99da42-83e9-4ca1-ac0c-529131c26309","tags":["seq:step:1"],"extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","checkpoint_ns":"agent:2d076a02-1cb8-051b-51a2-b4c6807ce84d","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"end_time":"2024-11-19T13:44:24.480529+00:00","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","type":"system","id":"570ab632-0733-43f5-812e-16ec559f54cd"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","type":"human","id":"9"}}]]},"outputs":{"generations":[[{"text":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","generation_info":{"finish_reason":"stop","logprobs":null},"type":"ChatGeneration","message":{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-aa99da42-83e9-4ca1-ac0c-529131c26309-0","usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161},"tool_calls":[],"invalid_tool_calls":[]}}}]],"llm_output":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae"},"run":null,"type":"LLMResult"},"events":[{"name":"start","time":"2024-11-19T13:44:23.347660+00:00"},{"name":"end","time":"2024-11-19T13:44:24.480529+00:00"}]}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52385' + Content-Type: + - application/json + user-agent: + - OpenAI/Python + x-api-key: + - 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 + method: POST + uri: https://api.smith.langchain.com/runs/batch + response: + body: + string: '{"message":"Runs batch ingested"}' + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '' + Access-Control-Expose-Headers: + - '*' + Access-Control-Max-Age: + - '600' + Alt-Svc: + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 + Content-Length: + - '33' + Date: Sun, 09 Jun 2024 23:39:08 GMT + Server: DUMMY + Via: + - 1.1 google + content-type: + - application/json + date: + - Tue, 19 Nov 2024 13:44:25 GMT + server: + - uvicorn + status: + code: 202 + message: Accepted - request: body: '{"messages": [{"content": "Given a chat history and the latest user question which might reference context in the chat history, formulate a standalone question which can be understood without the chat history. Do NOT answer the question, just reformulate it if needed and otherwise return it as is.", "role": "system"}, {"content": "I''m at Central Park W & 79st, New York, NY 10024, United States.", - "role": "user"}, {"content": "You''re right by the American Museum of Natural - History, a fascinating place with exhibits on everything from dinosaurs to space. - Enjoy a stroll through Central Park, which offers beautiful landscapes, walking - paths, and iconic spots like Bow Bridge and Bethesda Terrace.", "role": "assistant"}, - {"content": "content=''11 W 53rd St, New York, NY 10019, United States.'' additional_kwargs={} - response_metadata={} id=''11''", "role": "user"}], "model": "gpt-4o", "n": 1, - "stream": false, "temperature": 1.0}' + "role": "user"}, {"content": "You''re right near the American Museum of Natural + History, which is great for exploring natural wonders and human cultures. Central + Park itself offers beautiful landscapes and activities like boating and the + Central Park Zoo.", "role": "assistant"}, {"content": "11 W 53rd St, New York, + NY 10019, United States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": + false, "temperature": 1.0}' headers: accept: - application/json @@ -84,7 +664,7 @@ interactions: connection: - keep-alive content-length: - - '930' + - '824' content-type: - application/json host: @@ -96,16 +676,18 @@ interactions: method: POST uri: https://api.openai.com/v1/chat/completions response: - content: "{\n \"id\": \"chatcmpl-AEgzFbJHJ9XNvxQPetmr4PZNphaYq\",\n \"object\": - \"chat.completion\",\n \"created\": 1728065197,\n \"model\": \"gpt-4o-2024-08-06\",\n + content: "{\n \"id\": \"chatcmpl-AVIoiiJLEdN2IL76L0ZF2zSzCFgDz\",\n \"object\": + \"chat.completion\",\n \"created\": 1732023864,\n \"model\": \"gpt-4o-2024-08-06\",\n \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"I see you're mentioning a new location. - Are you planning to visit the Museum of Modern Art at this address?\",\n \"refusal\": + \"assistant\",\n \"content\": \"What notable attractions or institutions + can I find nearby 11 W 53rd St, New York, NY 10019, United States?\",\n \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 167,\n \"completion_tokens\": - 22,\n \"total_tokens\": 189,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_e5e4913e83\"\n}\n" + \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 145,\n \"completion_tokens\": + 28,\n \"total_tokens\": 173,\n \"prompt_tokens_details\": {\n \"cached_tokens\": + 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n + \ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": + 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\": + \"fp_831e067d82\"\n}\n" headers: Connection: - keep-alive @@ -123,6 +705,131 @@ interactions: - X-Request-ID http_version: HTTP/1.1 status_code: 200 +- request: + body: '{"post":[{"id":"bf26cd21-248f-4c06-8e94-348e6515f316","start_time":"2024-11-19T13:44:25.621869+00:00","end_time":"2024-11-19T13:44:25.622263+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:25.621869+00:00"},{"name":"end","time":"2024-11-19T13:44:25.622263+00:00"}],"reference_example_id":null,"parent_run_id":"720223c9-eff1-4428-8d3a-887e6a121629","tags":["seq:step:3"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424649598Z720223c9-eff1-4428-8d3a-887e6a121629.20241119T134425621869Zbf26cd21-248f-4c06-8e94-348e6515f316","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"output":"What + notable attractions or institutions can I find nearby 11 W 53rd St, New York, + NY 10019, United States?"},"name":"StrOutputParser","inputs":{"input":{"content":"What + notable attractions or institutions can I find nearby 11 W 53rd St, New York, + NY 10019, United States?","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":28,"prompt_tokens":145,"total_tokens":173,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_831e067d82","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-9cedb47f-f227-496a-9a8d-ae831a8da075-0","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":145,"output_tokens":28,"total_tokens":173}}},"run_type":"parser"},{"id":"f3dd45f4-b0ce-462a-b8b4-e3409a801213","start_time":"2024-11-19T13:44:25.622611+00:00","end_time":"2024-11-19T13:44:25.622873+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","ls_retriever_name":"sequential","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:25.622611+00:00"},{"name":"end","time":"2024-11-19T13:44:25.622873+00:00"}],"reference_example_id":null,"parent_run_id":"720223c9-eff1-4428-8d3a-887e6a121629","tags":["seq:step:4"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424649598Z720223c9-eff1-4428-8d3a-887e6a121629.20241119T134425622611Zf3dd45f4-b0ce-462a-b8b4-e3409a801213","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"documents":[{"metadata":{},"page_content":"Central + Park","type":"Document"},{"metadata":{},"page_content":"American Museum of Natural + History","type":"Document"}]},"name":"SequentialRetriever","inputs":{"query":"What + notable attractions or institutions can I find nearby 11 W 53rd St, New York, + NY 10019, United States?"},"run_type":"retriever"},{"id":"604279d7-3271-412b-9cb9-d1db1a002b0f","start_time":"2024-11-19T13:44:25.623521+00:00","end_time":"2024-11-19T13:44:25.623790+00:00","extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:25.623521+00:00"},{"name":"end","time":"2024-11-19T13:44:25.623790+00:00"}],"reference_example_id":null,"parent_run_id":"bb620f86-7f16-4e52-aa07-995a29d7e288","tags":["seq:step:2","langsmith:hidden"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134425623521Z604279d7-3271-412b-9cb9-d1db1a002b0f","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{"output":null},"name":"ChannelWrite","inputs":{"input":null},"run_type":"chain"},{"id":"46d24b0e-4d9c-44de-8306-5c5409163394","start_time":"2024-11-19T13:44:25.624342+00:00","end_time":null,"extra":{"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:001d9496-e399-0b34-e3b1-694c100bb655","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"events":[{"name":"start","time":"2024-11-19T13:44:25.624342+00:00"}],"reference_example_id":null,"parent_run_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","tags":["graph:step:4"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134425624342Z46d24b0e-4d9c-44de-8306-5c5409163394","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{},"name":"agent","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"88610053-acd6-408b-a547-0ce58cdb4963"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}},{"content":"11 + W 53rd St, New York, NY 10019, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"11","example":false}],"input":"11 + W 53rd St, New York, NY 10019, United States."},"run_type":"chain"},{"id":"be379a1a-c80c-4a0c-bf03-5eaaded8999d","start_time":"2024-11-19T13:44:25.624974+00:00","end_time":null,"extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":4,"langgraph_node":"agent","langgraph_triggers":["retriever"],"langgraph_path":["__pregel_pull","agent"],"langgraph_checkpoint_ns":"agent:001d9496-e399-0b34-e3b1-694c100bb655","checkpoint_ns":"agent:001d9496-e399-0b34-e3b1-694c100bb655","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langchain-core","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7","library_version":"0.3.7"}},"error":null,"serialized":{"lc":1,"type":"constructor","id":["langchain","chat_models","openai","ChatOpenAI"],"kwargs":{"model_name":"gpt-4o","temperature":1.0,"openai_api_key":{"lc":1,"type":"secret","id":["OPENAI_API_KEY"]},"max_retries":2,"n":1},"name":"ChatOpenAI"},"events":[{"name":"start","time":"2024-11-19T13:44:25.624974+00:00"}],"reference_example_id":null,"parent_run_id":"46d24b0e-4d9c-44de-8306-5c5409163394","tags":["seq:step:1"],"session_name":"default","session_id":null,"dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134425624342Z46d24b0e-4d9c-44de-8306-5c5409163394.20241119T134425624974Zbe379a1a-c80c-4a0c-bf03-5eaaded8999d","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","outputs":{},"name":"ChatOpenAI","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","type":"system","id":"88610053-acd6-408b-a547-0ce58cdb4963"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","type":"human","id":"9"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161},"tool_calls":[],"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"11 + W 53rd St, New York, NY 10019, United States.","type":"human","id":"11"}}]]},"run_type":"llm"}],"patch":[{"id":"bb620f86-7f16-4e52-aa07-995a29d7e288","name":"retriever","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","parent_run_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288","tags":["graph:step:3"],"extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"end_time":"2024-11-19T13:44:25.623969+00:00","inputs":{"messages":[{"content":"You + are a tour guide assistant offers information about nearby attractions. The + user is at a location and wants to know what to learn about nearby attractions. + Use the following pieces of context to suggest nearby attractions to the user. + If there are no interesting attractions nearby, tell the user there''s nothing + to see where they''re at. Use three sentences maximum and keep your suggestions + concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural + History---END OF CONTEXT---\n\n","additional_kwargs":{},"response_metadata":{},"type":"system","id":"88610053-acd6-408b-a547-0ce58cdb4963"},{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}},{"content":"11 + W 53rd St, New York, NY 10019, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"11","example":false}],"input":"11 + W 53rd St, New York, NY 10019, United States."},"outputs":{"output":null},"events":[{"name":"start","time":"2024-11-19T13:44:24.575695+00:00"},{"name":"end","time":"2024-11-19T13:44:25.623969+00:00"}]},{"id":"15b4d833-9092-4876-bfc2-edb801b2d3a0","name":"RunnableBranch","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","parent_run_id":"bb620f86-7f16-4e52-aa07-995a29d7e288","dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0","tags":["seq:step:1"],"extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"end_time":"2024-11-19T13:44:25.623210+00:00","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States.","history":[{"content":"I''m at + Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"outputs":{"output":[{"metadata":{},"page_content":"Central + Park","type":"Document"},{"metadata":{},"page_content":"American Museum of Natural + History","type":"Document"}]},"events":[{"name":"start","time":"2024-11-19T13:44:24.648388+00:00"},{"name":"end","time":"2024-11-19T13:44:25.623210+00:00"}]},{"id":"720223c9-eff1-4428-8d3a-887e6a121629","name":"RunnableSequence","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","parent_run_id":"15b4d833-9092-4876-bfc2-edb801b2d3a0","dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424649598Z720223c9-eff1-4428-8d3a-887e6a121629","tags":["branch:default"],"extra":{"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"end_time":"2024-11-19T13:44:25.623039+00:00","inputs":{"input":"11 + W 53rd St, New York, NY 10019, United States.","history":[{"content":"I''m at + Central Park W & 79st, New York, NY 10024, United States.","additional_kwargs":{},"response_metadata":{},"type":"human","id":"9","example":false},{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","example":false,"tool_calls":[],"invalid_tool_calls":[],"usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161}}]},"outputs":{"output":[{"metadata":{},"page_content":"Central + Park","type":"Document"},{"metadata":{},"page_content":"American Museum of Natural + History","type":"Document"}]},"events":[{"name":"start","time":"2024-11-19T13:44:24.649598+00:00"},{"name":"end","time":"2024-11-19T13:44:25.623039+00:00"}]},{"id":"9cedb47f-f227-496a-9a8d-ae831a8da075","name":"ChatOpenAI","trace_id":"0fad80a1-41c1-49f6-bd38-4a2c944f427b","parent_run_id":"720223c9-eff1-4428-8d3a-887e6a121629","dotted_order":"20241119T134424569473Z0fad80a1-41c1-49f6-bd38-4a2c944f427b.20241119T134424575695Zbb620f86-7f16-4e52-aa07-995a29d7e288.20241119T134424648388Z15b4d833-9092-4876-bfc2-edb801b2d3a0.20241119T134424649598Z720223c9-eff1-4428-8d3a-887e6a121629.20241119T134424651770Z9cedb47f-f227-496a-9a8d-ae831a8da075","tags":["seq:step:2"],"extra":{"invocation_params":{"model":"gpt-4o","model_name":"gpt-4o","stream":false,"n":1,"temperature":1.0,"_type":"openai-chat","stop":null},"options":{"stop":null},"batch_size":1,"metadata":{"langgraph_step":3,"langgraph_node":"retriever","langgraph_triggers":["history"],"langgraph_path":["__pregel_pull","retriever"],"langgraph_checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","checkpoint_ns":"retriever:470a8f5f-b830-8d0e-5824-92e3a476d5c6","ls_provider":"openai","ls_model_name":"gpt-4o","ls_model_type":"chat","ls_temperature":1.0,"revision_id":"0.1.0-3-g0d1ae05-dirty"},"runtime":{"sdk":"langsmith-py","sdk_version":"0.1.129","library":"langsmith","platform":"Linux-6.8.0-48-generic-x86_64-with-glibc2.35","runtime":"python","py_implementation":"CPython","runtime_version":"3.12.4","langchain_version":"0.3.1","langchain_core_version":"0.3.7"}},"end_time":"2024-11-19T13:44:25.621355+00:00","inputs":{"messages":[[{"lc":1,"type":"constructor","id":["langchain","schema","messages","SystemMessage"],"kwargs":{"content":"Given + a chat history and the latest user question which might reference context in + the chat history, formulate a standalone question which can be understood without + the chat history. Do NOT answer the question, just reformulate it if needed + and otherwise return it as is.","type":"system"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"I''m + at Central Park W & 79st, New York, NY 10024, United States.","type":"human","id":"9"}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"You''re + right near the American Museum of Natural History, which is great for exploring + natural wonders and human cultures. Central Park itself offers beautiful landscapes + and activities like boating and the Central Park Zoo.","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":37,"prompt_tokens":124,"total_tokens":161,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_45cf54deae","finish_reason":"stop","logprobs":null},"type":"ai","id":"10","usage_metadata":{"input_tokens":124,"output_tokens":37,"total_tokens":161},"tool_calls":[],"invalid_tool_calls":[]}},{"lc":1,"type":"constructor","id":["langchain","schema","messages","HumanMessage"],"kwargs":{"content":"11 + W 53rd St, New York, NY 10019, United States.","type":"human"}}]]},"outputs":{"generations":[[{"text":"What + notable attractions or institutions can I find nearby 11 W 53rd St, New York, + NY 10019, United States?","generation_info":{"finish_reason":"stop","logprobs":null},"type":"ChatGeneration","message":{"lc":1,"type":"constructor","id":["langchain","schema","messages","AIMessage"],"kwargs":{"content":"What + notable attractions or institutions can I find nearby 11 W 53rd St, New York, + NY 10019, United States?","additional_kwargs":{"refusal":null},"response_metadata":{"token_usage":{"completion_tokens":28,"prompt_tokens":145,"total_tokens":173,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_831e067d82","finish_reason":"stop","logprobs":null},"type":"ai","id":"run-9cedb47f-f227-496a-9a8d-ae831a8da075-0","usage_metadata":{"input_tokens":145,"output_tokens":28,"total_tokens":173},"tool_calls":[],"invalid_tool_calls":[]}}}]],"llm_output":{"token_usage":{"completion_tokens":28,"prompt_tokens":145,"total_tokens":173,"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0}},"model_name":"gpt-4o-2024-08-06","system_fingerprint":"fp_831e067d82"},"run":null,"type":"LLMResult"},"events":[{"name":"start","time":"2024-11-19T13:44:24.651770+00:00"},{"name":"end","time":"2024-11-19T13:44:25.621355+00:00"}]}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '24766' + Content-Type: + - application/json + user-agent: + - OpenAI/Python + x-api-key: + - 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 + method: POST + uri: https://api.smith.langchain.com/runs/batch + response: + body: + string: '{"message":"Runs batch ingested"}' + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '' + Access-Control-Expose-Headers: + - '*' + Access-Control-Max-Age: + - '600' + Alt-Svc: + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 + Content-Length: + - '33' + Date: Sun, 09 Jun 2024 23:39:08 GMT + Server: DUMMY + Via: + - 1.1 google + content-type: + - application/json + date: + - Tue, 19 Nov 2024 13:44:25 GMT + server: + - uvicorn + status: + code: 202 + message: Accepted - request: body: '{"messages": [{"content": "You are a tour guide assistant offers information about nearby attractions. The user is at a location and wants to know what to @@ -132,13 +839,12 @@ interactions: maximum and keep your suggestions concise.\n\n---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural History---END OF CONTEXT---\n\n", "role": "system"}, {"content": "I''m at Central Park W & 79st, New York, NY 10024, United - States.", "role": "user"}, {"content": "You''re right by the American Museum - of Natural History, a fascinating place with exhibits on everything from dinosaurs - to space. Enjoy a stroll through Central Park, which offers beautiful landscapes, - walking paths, and iconic spots like Bow Bridge and Bethesda Terrace.", "role": - "assistant"}, {"content": "11 W 53rd St, New York, NY 10019, United States.", - "role": "user"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": - 1.0}' + States.", "role": "user"}, {"content": "You''re right near the American Museum + of Natural History, which is great for exploring natural wonders and human cultures. + Central Park itself offers beautiful landscapes and activities like boating + and the Central Park Zoo.", "role": "assistant"}, {"content": "11 W 53rd St, + New York, NY 10019, United States.", "role": "user"}], "model": "gpt-4o", "n": + 1, "stream": false, "temperature": 1.0}' headers: accept: - application/json @@ -149,7 +855,7 @@ interactions: connection: - keep-alive content-length: - - '1105' + - '1059' content-type: - application/json host: @@ -161,18 +867,20 @@ interactions: method: POST uri: https://api.openai.com/v1/chat/completions response: - content: "{\n \"id\": \"chatcmpl-AEgzGbPWcNf9UC78PouyK4Jdo0KoM\",\n \"object\": - \"chat.completion\",\n \"created\": 1728065198,\n \"model\": \"gpt-4o-2024-08-06\",\n + content: "{\n \"id\": \"chatcmpl-AVIoksk55Ly58ATdTFJILUY8dsYNW\",\n \"object\": + \"chat.completion\",\n \"created\": 1732023866,\n \"model\": \"gpt-4o-2024-08-06\",\n \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"You're near the Museum of Modern Art - (MoMA), home to an impressive collection of modern and contemporary artworks. - Just a short walk away, you'll find Rockefeller Center, offering shopping, dining, - and an observation deck with views of the city.\",\n \"refusal\": null\n - \ },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 197,\n \"completion_tokens\": - 48,\n \"total_tokens\": 245,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_2f406b9113\"\n}\n" + \"assistant\",\n \"content\": \"You're at the location of The Museum + of Modern Art (MoMA), showcasing an extensive collection of modern and contemporary + art. Nearby, you can also explore Rockefeller Center for its iconic architecture + and the Top of the Rock Observation Deck.\",\n \"refusal\": null\n },\n + \ \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n + \ \"usage\": {\n \"prompt_tokens\": 187,\n \"completion_tokens\": 45,\n + \ \"total_tokens\": 232,\n \"prompt_tokens_details\": {\n \"cached_tokens\": + 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n + \ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": + 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\": + \"fp_45cf54deae\"\n}\n" headers: Connection: - keep-alive diff --git a/tests/test_helpers/test_assistants.py b/tests/test_helpers/test_assistants.py index 5cb0bb0..f6c5027 100644 --- a/tests/test_helpers/test_assistants.py +++ b/tests/test_helpers/test_assistants.py @@ -206,17 +206,17 @@ def test_AIAssistant_with_rag_invoke(): assert response_0["input"] == "I'm at Central Park W & 79st, New York, NY 10024, United States." assert response_0["output"] == ( - "You're right by the American Museum of Natural History, " - "a fascinating place with exhibits on everything from dinosaurs to space. " - "Enjoy a stroll through Central Park, which offers beautiful landscapes, " - "walking paths, and iconic spots like Bow Bridge and Bethesda Terrace." + "You're right near the American Museum of Natural History, " + "which is great for exploring natural wonders and human cultures. " + "Central Park itself offers beautiful landscapes and activities like " + "boating and the Central Park Zoo." ) assert response_1["input"] == "11 W 53rd St, New York, NY 10019, United States." assert response_1["output"] == ( - "You're near the Museum of Modern Art (MoMA), " - "home to an impressive collection of modern and contemporary artworks. " - "Just a short walk away, you'll find Rockefeller Center, offering shopping, " - "dining, and an observation deck with views of the city." + "You're at the location of The Museum of Modern Art (MoMA), " + "showcasing an extensive collection of modern and contemporary art. " + "Nearby, you can also explore Rockefeller Center for its iconic architecture " + "and the Top of the Rock Observation Deck." ) expected_messages = messages_to_dict(