Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Updates the demo data to work with the new tracing-focused data model

elijahbenizzyb7ec59fd117e
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json
index a2c5f860..2e248af4 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"processed_prompt\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"processed_prompt\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately\"\n \" corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": f\"None of the response modes I support: ({','.join(MODES)}) \"\n f\"apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"processed_response\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"processed_response\": state[\"response\"]}\n return result, state.append(chat_history=result[\"processed_response\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl
index 34112d6f..eb6ce43f 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl
@@ -1,50 +1,50 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:27:20.902926","action":"prompt","inputs":{"prompt":"Please draw a giraffe."}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:20.903030","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:20.903063","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:20.903112","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:20.903137","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:21.514441","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:21.514674","action":"generate_image","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:30.759984","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"generate_image","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:30.761165","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:30.761528","action":"response","result":{"processed_response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"response","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:30.761761","action":"prompt","inputs":{"prompt":"Please write a function that queries the internet for the height of a giraffe"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:30.763753","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:30.764058","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:30.764388","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:30.765107","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:31.134199","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:31.134751","action":"answer_question","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:32.720771","action":"answer_question","result":{"response":{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:32.721016","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:32.726124","action":"response","result":{"processed_response":{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:32.726606","action":"prompt","inputs":{"prompt":"OK, just tell me, how tall is a giraffe?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:32.726991","action":"prompt","result":{"processed_prompt":{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:32.727102","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:32.727324","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:32.727401","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:33.277394","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:33.277667","action":"answer_question","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:36.496745","action":"answer_question","result":{"response":{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:36.496967","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:36.497742","action":"response","result":{"processed_response":{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:36.497928","action":"prompt","inputs":{"prompt":"Please build me a giraffe"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:36.498256","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please build me a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:36.498322","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:36.498522","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:36.498653","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:37.267312","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:37.269805","action":"generate_code","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:38.456796","action":"generate_code","result":{"response":{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:38.457245","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:38.457819","action":"response","result":{"processed_response":{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:38.458067","action":"prompt","inputs":{"prompt":"If Aaron burr were an animal, would he be a giraffe?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:38.459122","action":"prompt","result":{"processed_prompt":{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:38.459290","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:38.459795","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:38.460049","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:39.099687","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:39.105863","action":"answer_question","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:41.215532","action":"answer_question","result":{"response":{"content":"As an AI language model, I don't have personal opinions, but I can provide some context on the reference made in your question. Aaron Burr was a prominent political figure in American history, famously known for his duel with Alexander Hamilton. Comparing him to a giraffe, which is known for its height and often used as a metaphor for standing out or being distinctive, could be interpreted metaphorically or humorously. Ultimately, whether Aaron Burr would be a giraffe as an animal is a matter of personal interpretation and perspective.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"As an AI language model, I don't have personal opinions, but I can provide some context on the reference made in your question. Aaron Burr was a prominent political figure in American history, famously known for his duel with Alexander Hamilton. Comparing him to a giraffe, which is known for its height and often used as a metaphor for standing out or being distinctive, could be interpreted metaphorically or humorously. Ultimately, whether Aaron Burr would be a giraffe as an animal is a matter of personal interpretation and perspective.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:41.216088","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:41.216708","action":"response","result":{"processed_response":{"content":"As an AI language model, I don't have personal opinions, but I can provide some context on the reference made in your question. Aaron Burr was a prominent political figure in American history, famously known for his duel with Alexander Hamilton. Comparing him to a giraffe, which is known for its height and often used as a metaphor for standing out or being distinctive, could be interpreted metaphorically or humorously. Ultimately, whether Aaron Burr would be a giraffe as an animal is a matter of personal interpretation and perspective.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2ELmFrbBAnUF4r1ezbOsK9Y7.png?st=2024-02-26T22%3A27%3A30Z&se=2024-02-27T00%3A27%3A30Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T22%3A23%3A36Z&ske=2024-02-27T22%3A23%3A36Z&sks=b&skv=2021-08-06&sig=05Mgr8r2Hf3tToGbw/Oy74vCE6f2JCi1Bz9rGj7LkLk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am not able to write functions that query the internet or access real-time data. My capabilities are limited to providing information and assistance within this text-based conversation interface. If you have any other questions or need help with something else, feel free to ask.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"On average, adult giraffes can grow up to around 14 to 18 feet (4.3 to 5.5 meters) tall, with males being taller than females. The long neck of a giraffe contributes significantly to its height, allowing these majestic animals to reach high leaves and food sources in the wild.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm an AI assistant and unfortunately, I'm unable to physically build objects. However, I can provide guidance or information on how to make a giraffe craft or drawing if you would like. Let me know if you would like some instructions on creating a giraffe art project!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"},{"content":"As an AI language model, I don't have personal opinions, but I can provide some context on the reference made in your question. Aaron Burr was a prominent political figure in American history, famously known for his duel with Alexander Hamilton. Comparing him to a giraffe, which is known for its height and often used as a metaphor for standing out or being distinctive, could be interpreted metaphorically or humorously. Ultimately, whether Aaron Burr would be a giraffe as an animal is a matter of personal interpretation and perspective.","type":"text","role":"assistant"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"As an AI language model, I don't have personal opinions, but I can provide some context on the reference made in your question. Aaron Burr was a prominent political figure in American history, famously known for his duel with Alexander Hamilton. Comparing him to a giraffe, which is known for its height and often used as a metaphor for standing out or being distinctive, could be interpreted metaphorically or humorously. Ultimately, whether Aaron Burr would be a giraffe as an animal is a matter of personal interpretation and perspective.","type":"text","role":"assistant"}}}
+{"type":"begin_entry","start_time":"2024-03-04T21:03:52.130773","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:03:52.130883","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:03:52.130935","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:03:52.130983","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:03:52.131027","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:03:52.921185","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:03:52.921495","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:04:01.963921","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":3,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:01.964671","action":"response","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:04:01.966540","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:01.987050","action":"prompt","inputs":{"prompt":"Please write a function that queries the internet for the height of a giraffe"},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:04:01.987458","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:01.988204","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:04:01.988636","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:01.988843","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:04:02.467168","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"answer_question"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:02.471352","action":"answer_question","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:04:04.917067","action":"answer_question","result":{"response":{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":8,"safe":true,"mode":"answer_question","response":{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:04.917832","action":"response","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:04:04.918432","action":"response","result":{"chat_item":{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"answer_question","response":{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:04.919590","action":"prompt","inputs":{"prompt":"OK, just tell me, how tall is a giraffe?"},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:04:04.921216","action":"prompt","result":{"chat_item":{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:04.921555","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:04:04.921849","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:04.922638","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:04:05.542126","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:05.542484","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:04:06.428310","action":"answer_question","result":{"response":{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:06.428871","action":"response","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:04:06.429136","action":"response","result":{"chat_item":{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:06.429386","action":"prompt","inputs":{"prompt":"Please build me a giraffe"},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-03-04T21:04:06.429684","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:06.429861","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-03-04T21:04:06.430175","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:06.430386","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-03-04T21:04:07.194950","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"generate_code"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:07.195610","action":"generate_code","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:04:09.088420","action":"generate_code","result":{"response":{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":18,"safe":true,"mode":"generate_code","response":{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:09.088804","action":"response","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-03-04T21:04:09.089126","action":"response","result":{"chat_item":{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"generate_code","response":{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"}},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:09.089445","action":"prompt","inputs":{"prompt":"If Aaron burr were an animal, would he be a giraffe?"},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-03-04T21:04:09.089840","action":"prompt","result":{"chat_item":{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":20},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:09.090051","action":"check_safety","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-03-04T21:04:09.090322","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":21,"safe":true},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:09.090516","action":"decide_mode","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-03-04T21:04:09.714295","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":22,"safe":true,"mode":"answer_question"},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:09.714876","action":"answer_question","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-03-04T21:04:11.791845","action":"answer_question","result":{"response":{"content":"Aaron Burr was an American lawyer, politician, and soldier who served as the third Vice President of the United States from 1801 to 1805. He is perhaps best known for his famous duel with Alexander Hamilton. Comparing him to a giraffe is a matter of interpretation and opinion. Giraffes are known for their tall stature and grace, while Aaron Burr is remembered for his controversial political career and personal conflicts. Ultimately, the decision of whether Aaron Burr would be a giraffe is subjective and open to individual interpretation.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":23,"safe":true,"mode":"answer_question","response":{"content":"Aaron Burr was an American lawyer, politician, and soldier who served as the third Vice President of the United States from 1801 to 1805. He is perhaps best known for his famous duel with Alexander Hamilton. Comparing him to a giraffe is a matter of interpretation and opinion. Giraffes are known for their tall stature and grace, while Aaron Burr is remembered for his controversial political career and personal conflicts. Ultimately, the decision of whether Aaron Burr would be a giraffe is subjective and open to individual interpretation.","type":"text","role":"assistant"}},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:11.792526","action":"response","inputs":{},"sequence_id":24}
+{"type":"end_entry","end_time":"2024-03-04T21:04:11.792935","action":"response","result":{"chat_item":{"content":"Aaron Burr was an American lawyer, politician, and soldier who served as the third Vice President of the United States from 1801 to 1805. He is perhaps best known for his famous duel with Alexander Hamilton. Comparing him to a giraffe is a matter of interpretation and opinion. Giraffes are known for their tall stature and grace, while Aaron Burr is remembered for his controversial political career and personal conflicts. Ultimately, the decision of whether Aaron Burr would be a giraffe is subjective and open to individual interpretation.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-yLnKxJKNtx6XVb5Gq8NeJdHr.png?st=2024-03-05T04%3A04%3A01Z&se=2024-03-05T06%3A04%3A01Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A57%3A00Z&ske=2024-03-05T14%3A57%3A00Z&sks=b&skv=2021-08-06&sig=nsVaX1DUROpkU9bxpMyDVO5oJhrj9xDbRAJ%2BvfNb9og%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I cannot browse the internet in real-time to provide an up-to-date answer to your question. However, you can write a function that queries a specific website or API that provides information about the height of a giraffe. You would need to use a programming language like Python or JavaScript to write the function and use libraries like Requests (for Python) or Axios (for JavaScript) to make the HTTP request and fetch the data.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"An adult giraffe can grow up to around 16 to 20 feet (4.8 to 6 meters) tall, with males being taller than females on average.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe, as I am a text-based AI assistant. However, you can create a giraffe using various art and craft materials such as paper, clay, or even digitally using drawing software. If you're looking for a fun and creative project, I recommend trying your hand at creating a giraffe sculpture, drawing, or other forms of art.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"},{"content":"Aaron Burr was an American lawyer, politician, and soldier who served as the third Vice President of the United States from 1801 to 1805. He is perhaps best known for his famous duel with Alexander Hamilton. Comparing him to a giraffe is a matter of interpretation and opinion. Giraffes are known for their tall stature and grace, while Aaron Burr is remembered for his controversial political career and personal conflicts. Ultimately, the decision of whether Aaron Burr would be a giraffe is subjective and open to individual interpretation.","type":"text","role":"assistant"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"response","__SEQUENCE_ID":24,"safe":true,"mode":"answer_question","response":{"content":"Aaron Burr was an American lawyer, politician, and soldier who served as the third Vice President of the United States from 1801 to 1805. He is perhaps best known for his famous duel with Alexander Hamilton. Comparing him to a giraffe is a matter of interpretation and opinion. Giraffes are known for their tall stature and grace, while Aaron Burr is remembered for his controversial political career and personal conflicts. Ultimately, the decision of whether Aaron Burr would be a giraffe is subjective and open to individual interpretation.","type":"text","role":"assistant"}},"sequence_id":24}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json
index a2c5f860..2e248af4 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"processed_prompt\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"processed_prompt\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately\"\n \" corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": f\"None of the response modes I support: ({','.join(MODES)}) \"\n f\"apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"processed_response\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"processed_response\": state[\"response\"]}\n return result, state.append(chat_history=result[\"processed_response\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl
index db4b9509..0eb0d677 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl
@@ -1,40 +1,40 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:27:41.228867","action":"prompt","inputs":{"prompt":"What is the capital of France?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:41.229212","action":"prompt","result":{"processed_prompt":{"role":"user","content":"What is the capital of France?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:41.229300","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:41.229443","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:41.229512","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:41.920252","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:41.920444","action":"answer_question","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:42.428557","action":"answer_question","result":{"response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:42.428754","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:42.428926","action":"response","result":{"processed_response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:42.429695","action":"prompt","inputs":{"prompt":"Please draw a map of the world"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:42.429928","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please draw a map of the world","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:42.429987","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:42.430128","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:42.430187","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:42.930978","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:42.931492","action":"generate_image","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:51.991578","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"generate_image","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:51.991776","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:51.992021","action":"response","result":{"processed_response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"response","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:51.992134","action":"prompt","inputs":{"prompt":"Please write code to compute the circumpherence of the earth"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:51.992381","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:51.992438","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:51.992747","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:51.992832","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:52.544870","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:52.545526","action":"generate_code","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:54.877383","action":"generate_code","result":{"response":{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:54.877866","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:54.878304","action":"response","result":{"processed_response":{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:54.878489","action":"prompt","inputs":{"prompt":"Geography! Geography! Geography!"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:54.878781","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Geography! Geography! Geography!","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:54.878846","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:54.879232","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:54.879352","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:55.323164","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:55.323580","action":"prompt_for_more","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:55.324308","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt_for_more","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:55.324466","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:55.324759","action":"response","result":{"processed_response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-kBnpYua3TPpPO6AfiVMn0iJu.png?st=2024-02-26T22%3A27%3A52Z&se=2024-02-27T00%3A27%3A52Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T20%3A19%3A26Z&ske=2024-02-27T20%3A19%3A26Z&sks=b&skv=2021-08-06&sig=eef0WwNiy6A/t66IAAS8Tl309AdWfto0tM14pNmUXWU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, you can use the formula for the circumference of a sphere, which is 2 * π * radius. The Earth's average radius is approximately 6,371 kilometers.\n\nHere is a simple Python code snippet to compute the circumference of the Earth:\n\n```python\nimport math\n\nearth_radius_km = 6371\ncircumference = 2 * math.pi * earth_radius_km\n\nprint(\"The circumference of the Earth is approximately\", circumference, \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"response","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}}}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:11.813429","action":"prompt","inputs":{"prompt":"What is the capital of France?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:04:11.813611","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the capital of France?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:11.813683","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:04:11.813746","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:11.813800","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:04:12.260996","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"answer_question"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:12.261516","action":"answer_question","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:04:13.324408","action":"answer_question","result":{"response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":3,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:13.325076","action":"response","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:04:13.325463","action":"response","result":{"chat_item":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:13.325876","action":"prompt","inputs":{"prompt":"Please draw a map of the world"},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:04:13.326310","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a map of the world","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:13.326579","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:04:13.330502","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:13.331217","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:04:13.909067","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_image"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:13.909325","action":"generate_image","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:04:23.735048","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":8,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:23.735676","action":"response","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:04:23.735992","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:23.737481","action":"prompt","inputs":{"prompt":"Please write code to compute the circumpherence of the earth"},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:04:23.740634","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:23.740996","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:04:23.741284","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:23.741511","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:04:24.456025","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"generate_code"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:24.456768","action":"generate_code","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.124023","action":"generate_code","result":{"response":{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":13,"safe":true,"mode":"generate_code","response":{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.124695","action":"response","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.125075","action":"response","result":{"chat_item":{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"generate_code","response":{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.125489","action":"prompt","inputs":{"prompt":"Geography! Geography! Geography!"},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.125899","action":"prompt","result":{"chat_item":{"role":"user","content":"Geography! Geography! Geography!","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.126089","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.126381","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.126591","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.980725","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"unknown"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.981063","action":"prompt_for_more","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.981377","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt_for_more","__SEQUENCE_ID":18,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.981755","action":"response","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.982186","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-EMkhoe0JODfMocp0itZWlpkA.png?st=2024-03-05T04%3A04%3A23Z&se=2024-03-05T06%3A04%3A23Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A01%3A34Z&ske=2024-03-05T15%3A01%3A34Z&sks=b&skv=2021-08-06&sig=99xHTL0qNRMm60CCrg1eEul3XfiAH9KAC5f%2BxCUmSic%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To calculate the circumference of the Earth, you can use the formula for the circumference of a sphere which is given by:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers (or 6,371,000 meters).\n\nYou can calculate the circumference of the Earth using the following Python code:\n\n```python\nimport math\n\nradius = 6371000 # in meters\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately:\", circumference, \"meters\")\n```\n\nWhen you run this code, it will output the circumference of the Earth in meters.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json
index a2c5f860..2e248af4 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"processed_prompt\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"processed_prompt\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately\"\n \" corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": f\"None of the response modes I support: ({','.join(MODES)}) \"\n f\"apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"processed_response\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"processed_response\": state[\"response\"]}\n return result, state.append(chat_history=result[\"processed_response\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl
index eb39bcd4..97bd6a7c 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl
@@ -1,40 +1,40 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:27:55.336956","action":"prompt","inputs":{"prompt":"Please draw a free-body diagram of a block on a ramp"}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:55.337246","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:55.337335","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:55.337454","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:55.337497","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:27:55.796392","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:27:55.796659","action":"generate_image","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:04.742454","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"generate_image","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:04.742819","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:04.744548","action":"response","result":{"processed_response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"response","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:04.747397","action":"prompt","inputs":{"prompt":"Please write code to compute the force of gravity on the moon"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:04.749082","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:04.749656","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:04.750235","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:04.750398","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:05.269863","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:05.270145","action":"generate_code","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:09.337696","action":"generate_code","result":{"response":{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:09.337896","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:09.338203","action":"response","result":{"processed_response":{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:09.338418","action":"prompt","inputs":{"prompt":"What is the force of gravity on the moon?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:09.340967","action":"prompt","result":{"processed_prompt":{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:09.341074","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:09.341258","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:09.341461","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:09.801864","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:09.802055","action":"answer_question","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:10.956526","action":"answer_question","result":{"response":{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:10.957004","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:10.957806","action":"response","result":{"processed_response":{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:10.957961","action":"prompt","inputs":{"prompt":"Please build me a block on a ramp"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:10.958406","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please build me a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:10.958495","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:10.958797","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:10.958915","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:11.589033","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:11.589289","action":"generate_image","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:20.250956","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-5wmnDIrVHi1hlRCxRlu6BxMH.png?st=2024-02-26T22%3A28%3A20Z&se=2024-02-27T00%3A28%3A20Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T21%3A32%3A50Z&ske=2024-02-27T21%3A32%3A50Z&sks=b&skv=2021-08-06&sig=RVerbMQ4pzlsJB2IYEwngn3cxeedgkD2dHRa%2BsCVi10%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"generate_image","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-5wmnDIrVHi1hlRCxRlu6BxMH.png?st=2024-02-26T22%3A28%3A20Z&se=2024-02-27T00%3A28%3A20Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T21%3A32%3A50Z&ske=2024-02-27T21%3A32%3A50Z&sks=b&skv=2021-08-06&sig=RVerbMQ4pzlsJB2IYEwngn3cxeedgkD2dHRa%2BsCVi10%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:20.252350","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:20.253681","action":"response","result":{"processed_response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-5wmnDIrVHi1hlRCxRlu6BxMH.png?st=2024-02-26T22%3A28%3A20Z&se=2024-02-27T00%3A28%3A20Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T21%3A32%3A50Z&ske=2024-02-27T21%3A32%3A50Z&sks=b&skv=2021-08-06&sig=RVerbMQ4pzlsJB2IYEwngn3cxeedgkD2dHRa%2BsCVi10%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-qV7OReNSK3XMnEuwfXtffc3L.png?st=2024-02-26T22%3A28%3A04Z&se=2024-02-27T00%3A28%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T17%3A29%3A34Z&ske=2024-02-27T17%3A29%3A34Z&sks=b&skv=2021-08-06&sig=Ss0R0U7WXjE7lov90aCpGhLrHPBx5mB0IFvsXNlI1Qo%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The force of gravity on an object can be determined using Newton's Law of Universal Gravitation. On the moon, the acceleration due to gravity is approximately 1.6 m/s^2. The formula to calculate force of gravity is:\n\nF = m * g\n\nWhere:\nF = force of gravity (in Newtons)\nm = mass of the object (in kilograms)\ng = acceleration due to gravity (on the moon, approximately 1.6 m/s^2)\n\nHere is a simple Python code to compute the force of gravity on the moon for a given mass:\n\n```python\ndef force_of_gravity(mass):\n acceleration_due_to_gravity = 1.6 # acceleration due to gravity on the moon in m/s^2\n force = mass * acceleration_due_to_gravity\n return force\n\n# Example: Compute force of gravity on the moon for an object with mass of 10 kg\nmass = 10 # mass in kg\ngravity_force = force_of_gravity(mass)\nprint(f\"The force of gravity on the moon for an object with mass {mass} kg is {gravity_force} N\")\n```\n\nYou can run this code in a Python environment to compute the force of gravity on the moon for different masses.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.622 m/s^2. This means that an object with a mass of 1 kg on the moon would experience a gravitational force of approximately 1.622 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-5wmnDIrVHi1hlRCxRlu6BxMH.png?st=2024-02-26T22%3A28%3A20Z&se=2024-02-27T00%3A28%3A20Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T21%3A32%3A50Z&ske=2024-02-27T21%3A32%3A50Z&sks=b&skv=2021-08-06&sig=RVerbMQ4pzlsJB2IYEwngn3cxeedgkD2dHRa%2BsCVi10%3D","type":"image","role":"assistant"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"response","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-5wmnDIrVHi1hlRCxRlu6BxMH.png?st=2024-02-26T22%3A28%3A20Z&se=2024-02-27T00%3A28%3A20Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T21%3A32%3A50Z&ske=2024-02-27T21%3A32%3A50Z&sks=b&skv=2021-08-06&sig=RVerbMQ4pzlsJB2IYEwngn3cxeedgkD2dHRa%2BsCVi10%3D","type":"image","role":"assistant"}}}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.995870","action":"prompt","inputs":{"prompt":"Please draw a free-body diagram of a block on a ramp"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.996197","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.996349","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:04:27.996482","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:27.996611","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:04:29.219214","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:29.219886","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:04:38.043437","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":3,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:38.044219","action":"response","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:04:38.044513","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:38.044934","action":"prompt","inputs":{"prompt":"Please write code to compute the force of gravity on the moon"},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:04:38.045255","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:38.045447","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:04:38.045678","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:38.045880","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:04:38.891084","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:38.891842","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:04:42.934721","action":"generate_code","result":{"response":{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":8,"safe":true,"mode":"generate_code","response":{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:42.935780","action":"response","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:04:42.936049","action":"response","result":{"chat_item":{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_code","response":{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:42.936483","action":"prompt","inputs":{"prompt":"What is the force of gravity on the moon?"},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:04:42.936786","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:42.937089","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:04:42.937588","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:42.937776","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:04:43.573082","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:43.573450","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:04:45.409091","action":"answer_question","result":{"response":{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:45.409750","action":"response","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:04:45.410119","action":"response","result":{"chat_item":{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:45.410497","action":"prompt","inputs":{"prompt":"Please build me a block on a ramp"},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-03-04T21:04:45.410947","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:45.411238","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-03-04T21:04:45.411545","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:45.411808","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-03-04T21:04:45.995758","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"generate_image"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:45.996397","action":"generate_image","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:04:54.892120","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-I8dRfc1VVRN6v3aOkVB5GiFo.png?st=2024-03-05T04%3A04%3A54Z&se=2024-03-05T06%3A04%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A14%3A00Z&ske=2024-03-05T15%3A14%3A00Z&sks=b&skv=2021-08-06&sig=OMtPYUkFDZfXR2Ym%2BVPv4YZw%2B6QvVYDr1kwZkhPJC/4%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":18,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-I8dRfc1VVRN6v3aOkVB5GiFo.png?st=2024-03-05T04%3A04%3A54Z&se=2024-03-05T06%3A04%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A14%3A00Z&ske=2024-03-05T15%3A14%3A00Z&sks=b&skv=2021-08-06&sig=OMtPYUkFDZfXR2Ym%2BVPv4YZw%2B6QvVYDr1kwZkhPJC/4%3D","type":"image","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:54.892621","action":"response","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-03-04T21:04:54.892996","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-I8dRfc1VVRN6v3aOkVB5GiFo.png?st=2024-03-05T04%3A04%3A54Z&se=2024-03-05T06%3A04%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A14%3A00Z&ske=2024-03-05T15%3A14%3A00Z&sks=b&skv=2021-08-06&sig=OMtPYUkFDZfXR2Ym%2BVPv4YZw%2B6QvVYDr1kwZkhPJC/4%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-n2r1qNZBFTSILkY8gLGcqKQ3.png?st=2024-03-05T04%3A04%3A37Z&se=2024-03-05T06%3A04%3A37Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A10%3A03Z&ske=2024-03-05T15%3A10%3A03Z&sks=b&skv=2021-08-06&sig=WWLYvuGsJwomlZbLENMoAWJPj%2BL2YFpRLDcNYIMFyEc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use the formula:\n\nF = (G * m1 * m2) / r^2\n\nWhere:\nF = Force of gravity\nG = gravitational constant (6.674 x 10^-11 N(m/kg)^2)\nm1 = mass of moon (7.35 x 10^22 kg)\nm2 = mass of object on the moon (you can specify a specific mass)\nr = distance between the center of the moon and the object (average distance from moon's center to its surface is 1.737 x 10^6 meters)\n\nHere is a Python code snippet to compute the force of gravity on the moon for an object of mass 10 kg:\n\n```python\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nmass_object = 10\ndistance = 1.737 * 10**6\n\nforce_gravity = (G * mass_moon * mass_object) / distance**2\n\nprint(\"Force of gravity on the moon for a 10 kg object is:\", force_gravity, \"Newtons\")\n```\n\nThis code snippet calculates the force of gravity on the moon for an object with a mass of 10 kg. You can run this code in a Python environment to get the result.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th that of Earth's gravity. On the moon, the gravitational acceleration is about 1.625 m/s^2 compared to Earth's gravitational acceleration of 9.81 m/s^2. This means that an object on the moon will experience a force of gravity that is approximately 1/6th of the force it would experience on Earth.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-I8dRfc1VVRN6v3aOkVB5GiFo.png?st=2024-03-05T04%3A04%3A54Z&se=2024-03-05T06%3A04%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A14%3A00Z&ske=2024-03-05T15%3A14%3A00Z&sks=b&skv=2021-08-06&sig=OMtPYUkFDZfXR2Ym%2BVPv4YZw%2B6QvVYDr1kwZkhPJC/4%3D","type":"image","role":"assistant"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-I8dRfc1VVRN6v3aOkVB5GiFo.png?st=2024-03-05T04%3A04%3A54Z&se=2024-03-05T06%3A04%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A14%3A00Z&ske=2024-03-05T15%3A14%3A00Z&sks=b&skv=2021-08-06&sig=OMtPYUkFDZfXR2Ym%2BVPv4YZw%2B6QvVYDr1kwZkhPJC/4%3D","type":"image","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json
index a2c5f860..2e248af4 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"processed_prompt\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"processed_prompt\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately\"\n \" corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": f\"None of the response modes I support: ({','.join(MODES)}) \"\n f\"apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"processed_response\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"processed_response\": state[\"response\"]}\n return result, state.append(chat_history=result[\"processed_response\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl
index e99d59ce..8c2cd9e8 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl
@@ -1,30 +1,30 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:20.272052","action":"prompt","inputs":{"prompt":"Please draw a picture of a philosopher"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:20.272340","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:20.272426","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:20.272494","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:20.272524","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:20.678300","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:20.678629","action":"generate_image","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:29.635931","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"generate_image","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:29.636639","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:29.639630","action":"response","result":{"processed_response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"response","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:29.641600","action":"prompt","inputs":{"prompt":"Please write code to compute the meaning of life (hint, its 42)"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:29.641871","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:29.641939","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:29.642131","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:29.642194","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:30.312609","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:30.312987","action":"generate_code","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:36.017257","action":"generate_code","result":{"response":{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:36.017889","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:36.018121","action":"response","result":{"processed_response":{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:36.018406","action":"prompt","inputs":{"prompt":"What is the meaning of life?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:36.018955","action":"prompt","result":{"processed_prompt":{"role":"user","content":"What is the meaning of life?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:36.019086","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:36.019275","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:36.019342","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:36.492296","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:36.492487","action":"answer_question","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:39.079311","action":"answer_question","result":{"response":{"content":"The meaning of life is a philosophical question that has been debated for centuries and does not have a definitive answer. Many different cultures, religions, and belief systems have offered various interpretations of the meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others argue that life has no inherent meaning and it is up to each individual to create their own purpose. Ultimately, the meaning of life is a highly subjective and personal question that each individual must grapple with and determine for themselves.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that has been debated for centuries and does not have a definitive answer. Many different cultures, religions, and belief systems have offered various interpretations of the meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others argue that life has no inherent meaning and it is up to each individual to create their own purpose. Ultimately, the meaning of life is a highly subjective and personal question that each individual must grapple with and determine for themselves.","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:39.079573","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:39.079859","action":"response","result":{"processed_response":{"content":"The meaning of life is a philosophical question that has been debated for centuries and does not have a definitive answer. Many different cultures, religions, and belief systems have offered various interpretations of the meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others argue that life has no inherent meaning and it is up to each individual to create their own purpose. Ultimately, the meaning of life is a highly subjective and personal question that each individual must grapple with and determine for themselves.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jd0dXUQShCbE8qcSohjlT4Ru.png?st=2024-02-26T22%3A28%3A29Z&se=2024-02-27T00%3A28%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-02-26T06%3A42%3A26Z&ske=2024-02-27T06%3A42%3A26Z&sks=b&skv=2021-08-06&sig=bPoklzYH36Tbs9cXu%2BXSCH0Aq97y%2BzgjjkEbFgqjcVI%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure, here is a simple Python code to compute the meaning of life:\n\n```python\nmeaning_of_life = 21 + 21\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"},{"content":"The meaning of life is a philosophical question that has been debated for centuries and does not have a definitive answer. Many different cultures, religions, and belief systems have offered various interpretations of the meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others argue that life has no inherent meaning and it is up to each individual to create their own purpose. Ultimately, the meaning of life is a highly subjective and personal question that each individual must grapple with and determine for themselves.","type":"text","role":"assistant"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that has been debated for centuries and does not have a definitive answer. Many different cultures, religions, and belief systems have offered various interpretations of the meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others argue that life has no inherent meaning and it is up to each individual to create their own purpose. Ultimately, the meaning of life is a highly subjective and personal question that each individual must grapple with and determine for themselves.","type":"text","role":"assistant"}}}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:54.906441","action":"prompt","inputs":{"prompt":"Please draw a picture of a philosopher"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:04:54.906773","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:54.907085","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:04:54.907217","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:54.907333","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:04:55.431045","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:04:55.431503","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:05:04.252871","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":3,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:04.253701","action":"response","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:05:04.254133","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:04.254639","action":"prompt","inputs":{"prompt":"Please write code to compute the meaning of life (hint, its 42)"},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:05:04.255191","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:04.255853","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:05:04.256166","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:04.256430","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:05:04.867721","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:04.868568","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:05:06.514973","action":"generate_code","result":{"response":{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":8,"safe":true,"mode":"generate_code","response":{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:06.515921","action":"response","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:05:06.516399","action":"response","result":{"chat_item":{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_code","response":{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:06.518083","action":"prompt","inputs":{"prompt":"What is the meaning of life?"},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:05:06.518645","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the meaning of life?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:06.518809","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:05:06.519949","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:06.520244","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:05:07.011642","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:07.011959","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.062571","action":"answer_question","result":{"response":{"content":"The meaning of life is a philosophical question that has been pondered by humans for centuries. Different individuals and cultures have proposed various answers and beliefs about the purpose and significance of life. While some may find meaning in religion, relationships, personal achievements, or contributing to society, others may see life as inherently meaningless or open to personal interpretation. Ultimately, the answer to the question \"What is the meaning of life?\" may vary from person to person based on their beliefs, values, and experiences.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that has been pondered by humans for centuries. Different individuals and cultures have proposed various answers and beliefs about the purpose and significance of life. While some may find meaning in religion, relationships, personal achievements, or contributing to society, others may see life as inherently meaningless or open to personal interpretation. Ultimately, the answer to the question \"What is the meaning of life?\" may vary from person to person based on their beliefs, values, and experiences.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.062866","action":"response","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.063089","action":"response","result":{"chat_item":{"content":"The meaning of life is a philosophical question that has been pondered by humans for centuries. Different individuals and cultures have proposed various answers and beliefs about the purpose and significance of life. While some may find meaning in religion, relationships, personal achievements, or contributing to society, others may see life as inherently meaningless or open to personal interpretation. Ultimately, the answer to the question \"What is the meaning of life?\" may vary from person to person based on their beliefs, values, and experiences.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-88Z0EDn0jK6l1ZzMoE4NIUk2.png?st=2024-03-05T04%3A05%3A04Z&se=2024-03-05T06%3A05%3A04Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A42%3A51Z&ske=2024-03-05T14%3A42%3A51Z&sks=b&skv=2021-08-06&sig=IRHzqOrMhtg1vIAavoheW0wmCPNO0pRzJjtMJmnyvRc%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple code snippet in Python to compute the meaning of life:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"},{"content":"The meaning of life is a philosophical question that has been pondered by humans for centuries. Different individuals and cultures have proposed various answers and beliefs about the purpose and significance of life. While some may find meaning in religion, relationships, personal achievements, or contributing to society, others may see life as inherently meaningless or open to personal interpretation. Ultimately, the answer to the question \"What is the meaning of life?\" may vary from person to person based on their beliefs, values, and experiences.","type":"text","role":"assistant"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that has been pondered by humans for centuries. Different individuals and cultures have proposed various answers and beliefs about the purpose and significance of life. While some may find meaning in religion, relationships, personal achievements, or contributing to society, others may see life as inherently meaningless or open to personal interpretation. Ultimately, the answer to the question \"What is the meaning of life?\" may vary from person to person based on their beliefs, values, and experiences.","type":"text","role":"assistant"}},"sequence_id":14}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json
index a2c5f860..2e248af4 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"processed_prompt\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"processed_prompt\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately\"\n \" corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": f\"None of the response modes I support: ({','.join(MODES)}) \"\n f\"apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"processed_response\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"processed_response\": state[\"response\"]}\n return result, state.append(chat_history=result[\"processed_response\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl
index a6dd4067..93c47e5b 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl
@@ -1,40 +1,40 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:39.097481","action":"prompt","inputs":{"prompt":"Please draw a picture of a good joke joke"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:39.098543","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:39.098996","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:39.099473","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:39.099619","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:40.177417","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:40.177589","action":"prompt_for_more","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:40.177827","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"prompt_for_more","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:40.177925","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:40.181425","action":"response","result":{"processed_response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"response","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:40.181638","action":"prompt","inputs":{"prompt":"Please write code for an interactive knock-knock joke"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:40.182054","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:40.182207","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:40.187958","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:40.188680","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:40.699438","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:40.699663","action":"generate_code","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:42.436473","action":"generate_code","result":{"response":{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:42.436594","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:42.438433","action":"response","result":{"processed_response":{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:42.439009","action":"prompt","inputs":{"prompt":"What is a good joke?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:42.441542","action":"prompt","result":{"processed_prompt":{"role":"user","content":"What is a good joke?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:42.441718","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:42.442008","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:42.442105","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:43.234174","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:43.234596","action":"answer_question","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:43.871826","action":"answer_question","result":{"response":{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:43.872795","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:43.873380","action":"response","result":{"processed_response":{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"}],"prompt":"What is a good joke?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:43.873618","action":"prompt","inputs":{"prompt":"The chicken crossed the road because it was a free-range chicken"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:43.877315","action":"prompt","result":{"processed_prompt":{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:43.877981","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:43.878709","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:43.884971","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.067246","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.067447","action":"prompt_for_more","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.067731","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt_for_more","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.067816","action":"response","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.068077","action":"response","result":{"processed_response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\nprint(\"Knock, knock!\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Boo.\")\ninput()\nprint(\"Boo who?\")\ninput()\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to participate in the knock-knock joke by entering their responses. You can run this code in any Python environment.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a light-hearted joke for you:\n\nWhy don't scientists trust atoms?\n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"},{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"response","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support: (answer_question,generate_image,generate_code,unknown) apply to your question. Please clarify?","type":"text","role":"assistant"}}}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.071520","action":"prompt","inputs":{"prompt":"Please draw a picture of a good joke joke"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.071725","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.072037","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.072163","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.072277","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.587419","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"unknown"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.587988","action":"prompt_for_more","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.588213","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"prompt_for_more","__SEQUENCE_ID":3,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.593459","action":"response","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.593849","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.594092","action":"prompt","inputs":{"prompt":"Please write code for an interactive knock-knock joke"},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.594344","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.594520","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:05:09.594803","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:09.594956","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:05:10.187459","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:10.187856","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:05:12.338491","action":"generate_code","result":{"response":{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":8,"safe":true,"mode":"generate_code","response":{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:12.338964","action":"response","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:05:12.339233","action":"response","result":{"chat_item":{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_code","response":{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:12.339661","action":"prompt","inputs":{"prompt":"What is a good joke?"},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:05:12.340232","action":"prompt","result":{"chat_item":{"role":"user","content":"What is a good joke?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:12.340416","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:05:12.340621","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:12.340794","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:05:12.820220","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:12.820911","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:05:13.938309","action":"answer_question","result":{"response":{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:13.938569","action":"response","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:05:13.939137","action":"response","result":{"chat_item":{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"}],"prompt":"What is a good joke?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:13.939377","action":"prompt","inputs":{"prompt":"The chicken crossed the road because it was a free-range chicken"},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-03-04T21:05:13.939859","action":"prompt","result":{"chat_item":{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:13.940065","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-03-04T21:05:13.940358","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:13.940582","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.411406","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"unknown"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.411755","action":"prompt_for_more","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.412091","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt_for_more","__SEQUENCE_ID":18,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.412266","action":"response","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.412501","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here's a simple interactive knock-knock joke written in Python:\n\n```python\nprint(\"Knock, knock!\")\ninput(\"Who's there? \")\ninput(\"Boo. \")\nprint(\"Why are you crying? It's just a joke!\")\n```\n\nWhen you run this code, it will prompt the user to respond to the knock-knock joke in an interactive manner. Feel free to modify the joke or add more interactions to make it funnier!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here's a joke for you:\n\nWhy don't scientists trust atoms? \n\nBecause they make up everything!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json
index a2c5f860..2e248af4 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"processed_prompt\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"processed_prompt\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately\"\n \" corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": f\"None of the response modes I support: ({','.join(MODES)}) \"\n f\"apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"processed_response\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"processed_response\": state[\"response\"]}\n return result, state.append(chat_history=result[\"processed_response\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State) -> Tuple[dict, State]:\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State) -> Tuple[dict, State]:\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n\n result = _get_openai_client().chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(state: State, model: str = \"dall-e-2\") -> Tuple[dict, State]:\n client = _get_openai_client()\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State, prepend_prompt: str, display_type: str = \"text\", model: str = \"gpt-3.5-turbo\"\n) -> Tuple[dict, State]:\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl
index 45a2271a..f4f821dd 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl
@@ -1,6 +1,6 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.078737","action":"prompt","inputs":{"prompt":"Please draw a giraffe."}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.078909","action":"prompt","result":{"processed_prompt":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.078950","action":"check_safety","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.079008","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.079037","action":"decide_mode","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.230690","action":"decide_mode","result":null,"exception":"Traceback (most recent call last):\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 267, in _step\n raise e\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 258, in _step\n result, new_state = _run_single_step_action(next_action, self._state, inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 174, in _run_single_step_action\n result, new_state = action.run_and_update(state, **inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/action.py\", line 409, in run_and_update\n return self._fn(state, **self._bound_params, **run_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/examples/gpt/application.py\", line 49, in choose_mode\n result = _get_openai_client().chat.completions.create(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_utils/_utils.py\", line 271, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/resources/chat/completions.py\", line 659, in create\n return self._post(\n ^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 1180, in post\n return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 869, in request\n return self._request(\n ^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 960, in _request\n raise self._make_status_error_from_response(err.response) from None\nopenai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: fake. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}\n","state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true}}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.420491","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.420716","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.421023","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.421157","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.421497","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.573693","action":"decide_mode","result":null,"exception":"Traceback (most recent call last):\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 290, in _step\n raise e\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 280, in _step\n result, new_state = _run_single_step_action(next_action, self._state, inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 180, in _run_single_step_action\n result, new_state = action.run_and_update(state, **inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/action.py\", line 409, in run_and_update\n return self._fn(state, **self._bound_params, **run_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/examples/gpt/application.py\", line 49, in choose_mode\n result = _get_openai_client().chat.completions.create(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_utils/_utils.py\", line 271, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/resources/chat/completions.py\", line 659, in create\n return self._post(\n ^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 1180, in post\n return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 869, in request\n return self._request(\n ^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 960, in _request\n raise self._make_status_error_from_response(err.response) from None\nopenai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: fake. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}\n","state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":2,"safe":true},"sequence_id":2}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json
index 4aae6ae4..0f73530d 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl
index 7a94f740..f25edc09 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl
@@ -1,16 +1,16 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.286208","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.286907","action":"human_converse","result":{"question":"What is Elijah's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.287028","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:47.017659","action":"ai_converse","result":{"conversational_rag_response":"Mango"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango"],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:47.018029","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:47.018902","action":"human_converse","result":{"question":"What is Stefan's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:47.019417","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:48.660415","action":"ai_converse","result":{"conversational_rag_response":"Tacos"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos"],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:48.660650","action":"human_converse","inputs":{"user_question":"What is Aaron's favorite food?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:48.660924","action":"human_converse","result":{"question":"What is Aaron's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Aaron's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:48.661237","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:50.031261","action":"ai_converse","result":{"conversational_rag_response":"Based on the information provided, we cannot determine Aaron's favorite food as there is no mention of Aaron's food preferences."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Aaron's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: Based on the information provided, we cannot determine Aaron's favorite food as there is no mention of Aaron's food preferences."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:50.031518","action":"human_converse","inputs":{"user_question":"exit"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:50.031734","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: Based on the information provided, we cannot determine Aaron's favorite food as there is no mention of Aaron's food preferences.","Human: exit"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:50.031894","action":"terminal","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:50.032007","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: Based on the information provided, we cannot determine Aaron's favorite food as there is no mention of Aaron's food preferences.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: Based on the information provided, we cannot determine Aaron's favorite food as there is no mention of Aaron's food preferences.","Human: exit"],"__PRIOR_STEP":"terminal"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.540772","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.540928","action":"human_converse","result":{"question":"What is Elijah's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?"],"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.541028","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:06:45.962137","action":"ai_converse","result":{"conversational_rag_response":"Mango"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango"],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:45.962903","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:06:45.963203","action":"human_converse","result":{"question":"What is Stefan's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:45.963781","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:06:47.682565","action":"ai_converse","result":{"conversational_rag_response":"Tacos"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos"],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:47.691953","action":"human_converse","inputs":{"user_question":"What is Aaron's favorite food?"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:06:47.692488","action":"human_converse","result":{"question":"What is Aaron's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Aaron's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:47.692833","action":"ai_converse","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:06:49.533846","action":"ai_converse","result":{"conversational_rag_response":"There is no information provided about Aaron's favorite food."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Aaron's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:49.534810","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:06:49.535129","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food.","Human: exit"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":6},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:49.535537","action":"terminal","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:06:49.535761","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food.","Human: exit"],"__PRIOR_STEP":"terminal","__SEQUENCE_ID":7},"sequence_id":7}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json
index 4aae6ae4..0f73530d 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl
index 6796f012..d76a0a5a 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl
@@ -1,24 +1,24 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:50.036957","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:50.037178","action":"human_converse","result":{"question":"Where did Elijah work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: Where did Elijah work?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:50.037269","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:51.380099","action":"ai_converse","result":{"conversational_rag_response":"Elijah worked at TwoSigma."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:51.380404","action":"human_converse","inputs":{"user_question":"Where did Stefan work?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:51.380658","action":"human_converse","result":{"question":"Where did Stefan work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:51.380810","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:53.094842","action":"ai_converse","result":{"conversational_rag_response":"Stefan worked at IBM and Stitch Fix."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:53.094982","action":"human_converse","inputs":{"user_question":"Where did Harrison work?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:53.095125","action":"human_converse","result":{"question":"Where did Harrison work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Harrison work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:53.095213","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:54.900927","action":"ai_converse","result":{"conversational_rag_response":"Harrison worked at Kensho."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Harrison work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:54.901163","action":"human_converse","inputs":{"user_question":"Where did Jonathan work?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:54.901507","action":"human_converse","result":{"question":"Where did Jonathan work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Jonathan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:54.901670","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:57.146890","action":"ai_converse","result":{"conversational_rag_response":"We do not have information about where Jonathan worked."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Jonathan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: We do not have information about where Jonathan worked."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:57.147104","action":"human_converse","inputs":{"user_question":"Did Stefan and Harrison work together?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:57.148641","action":"human_converse","result":{"question":"Did Stefan and Harrison work together?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Did Stefan and Harrison work together?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: We do not have information about where Jonathan worked.","Human: Did Stefan and Harrison work together?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:57.148884","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:58.378745","action":"ai_converse","result":{"conversational_rag_response":"No, Stefan and Harrison did not work together."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Did Stefan and Harrison work together?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: We do not have information about where Jonathan worked.","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:58.379943","action":"human_converse","inputs":{"user_question":"exit"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:58.380198","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: We do not have information about where Jonathan worked.","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together.","Human: exit"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:58.380362","action":"terminal","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:58.380479","action":"terminal","result":{"chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: We do not have information about where Jonathan worked.","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: We do not have information about where Jonathan worked.","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together.","Human: exit"],"__PRIOR_STEP":"terminal"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:49.556100","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:49.556336","action":"human_converse","result":{"question":"Where did Elijah work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: Where did Elijah work?"],"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:49.556465","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:06:51.467188","action":"ai_converse","result":{"conversational_rag_response":"Elijah worked at TwoSigma."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:51.468130","action":"human_converse","inputs":{"user_question":"Where did Stefan work?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:06:51.468346","action":"human_converse","result":{"question":"Where did Stefan work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:51.468822","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:06:53.272723","action":"ai_converse","result":{"conversational_rag_response":"Stefan worked at IBM and Stitch Fix."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:53.273506","action":"human_converse","inputs":{"user_question":"Where did Harrison work?"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:06:53.273930","action":"human_converse","result":{"question":"Where did Harrison work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Harrison work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:53.274236","action":"ai_converse","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:06:54.973662","action":"ai_converse","result":{"conversational_rag_response":"Harrison worked at Kensho."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Harrison work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:54.975342","action":"human_converse","inputs":{"user_question":"Where did Jonathan work?"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:06:54.975583","action":"human_converse","result":{"question":"Where did Jonathan work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Jonathan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":6},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:54.975919","action":"ai_converse","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:06:56.824787","action":"ai_converse","result":{"conversational_rag_response":"False"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Jonathan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False"],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":7},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:56.827215","action":"human_converse","inputs":{"user_question":"Did Stefan and Harrison work together?"},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:06:56.827542","action":"human_converse","result":{"question":"Did Stefan and Harrison work together?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Did Stefan and Harrison work together?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":8},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:56.827927","action":"ai_converse","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:06:58.706282","action":"ai_converse","result":{"conversational_rag_response":"No, Stefan worked at different companies than Harrison."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Did Stefan and Harrison work together?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan worked at different companies than Harrison."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":9},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:58.707294","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:06:58.707623","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan worked at different companies than Harrison.","Human: exit"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:58.708037","action":"terminal","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:06:58.708256","action":"terminal","result":{"chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan worked at different companies than Harrison.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at IBM and Stitch Fix.","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan worked at different companies than Harrison.","Human: exit"],"__PRIOR_STEP":"terminal","__SEQUENCE_ID":11},"sequence_id":11}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json
index 4aae6ae4..0f73530d 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl
index a5f01094..4cb957b6 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl
@@ -1,12 +1,12 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:58.398870","action":"human_converse","inputs":{"user_question":"What does Elijah like to do?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:58.399036","action":"human_converse","result":{"question":"What does Elijah like to do?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Elijah like to do?","chat_history":["Human: What does Elijah like to do?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:58.399125","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:00.161466","action":"ai_converse","result":{"conversational_rag_response":"Elijah's hobbies and interests are biking and enjoying mango."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Elijah like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mango."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:00.161700","action":"human_converse","inputs":{"user_question":"What does Stefan like to do?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:00.161973","action":"human_converse","result":{"question":"What does Stefan like to do?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Stefan like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mango.","Human: What does Stefan like to do?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:00.162181","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:03.780285","action":"ai_converse","result":{"conversational_rag_response":"Stefan's hobbies and interests include baking sourdough, enjoying tacos, and possibly working at companies like IBM and Stitch Fix."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Stefan like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include baking sourdough, enjoying tacos, and possibly working at companies like IBM and Stitch Fix."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:03.780581","action":"human_converse","inputs":{"user_question":"exit"}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:03.780790","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include baking sourdough, enjoying tacos, and possibly working at companies like IBM and Stitch Fix.","Human: exit"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:03.780945","action":"terminal","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:03.781098","action":"terminal","result":{"chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include baking sourdough, enjoying tacos, and possibly working at companies like IBM and Stitch Fix.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include baking sourdough, enjoying tacos, and possibly working at companies like IBM and Stitch Fix.","Human: exit"],"__PRIOR_STEP":"terminal"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:58.734536","action":"human_converse","inputs":{"user_question":"What does Elijah like to do?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:58.734667","action":"human_converse","result":{"question":"What does Elijah like to do?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Elijah like to do?","chat_history":["Human: What does Elijah like to do?"],"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:58.734776","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:07:01.272838","action":"ai_converse","result":{"conversational_rag_response":"Elijah's hobbies and interests are biking and enjoying mangoes."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Elijah like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mangoes."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:01.280852","action":"human_converse","inputs":{"user_question":"What does Stefan like to do?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:07:01.282008","action":"human_converse","result":{"question":"What does Stefan like to do?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Stefan like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mangoes.","Human: What does Stefan like to do?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:01.282363","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:07:03.749970","action":"ai_converse","result":{"conversational_rag_response":"Stefan's hobbies and interests are liking tacos, baking sourdough, and working at Stitch Fix."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Stefan like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mangoes.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests are liking tacos, baking sourdough, and working at Stitch Fix."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:03.750671","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:07:03.750978","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mangoes.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests are liking tacos, baking sourdough, and working at Stitch Fix.","Human: exit"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:03.751422","action":"terminal","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:07:03.751594","action":"terminal","result":{"chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mangoes.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests are liking tacos, baking sourdough, and working at Stitch Fix.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests are biking and enjoying mangoes.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests are liking tacos, baking sourdough, and working at Stitch Fix.","Human: exit"],"__PRIOR_STEP":"terminal","__SEQUENCE_ID":5},"sequence_id":5}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json
index 4aae6ae4..0f73530d 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl
index 94fd87e7..3df57de1 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl
@@ -1,20 +1,20 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:29:03.787841","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:03.790930","action":"human_converse","result":{"question":"What is Elijah's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:03.791055","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:05.191861","action":"ai_converse","result":{"conversational_rag_response":"Mango"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango"],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:05.192367","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:05.192654","action":"human_converse","result":{"question":"Where did Elijah work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:05.192905","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:06.847185","action":"ai_converse","result":{"conversational_rag_response":"Elijah worked at TwoSigma."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:06.847352","action":"human_converse","inputs":{"user_question":"Where did Stefan workWhat does Elijah like to do?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:06.847497","action":"human_converse","result":{"question":"Where did Stefan workWhat does Elijah like to do?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan workWhat does Elijah like to do?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:06.847605","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:08.545710","action":"ai_converse","result":{"conversational_rag_response":"Stefan currently works at Stitch Fix. Elijah likes to bake sourdough."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan workWhat does Elijah like to do?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Stefan currently works at Stitch Fix. Elijah likes to bake sourdough."],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:08.546024","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:08.546278","action":"human_converse","result":{"question":"What is Stefan's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Stefan currently works at Stitch Fix. Elijah likes to bake sourdough.","Human: What is Stefan's favorite food?"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:08.546464","action":"ai_converse","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:11.741932","action":"ai_converse","result":{"conversational_rag_response":"Tacos"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Stefan currently works at Stitch Fix. Elijah likes to bake sourdough.","Human: What is Stefan's favorite food?","AI: Tacos"],"__PRIOR_STEP":"ai_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:11.742025","action":"human_converse","inputs":{"user_question":"Whose favorite food is better, Elijah's or Stefan's?exit"}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:11.742106","action":"human_converse","result":{"question":"Whose favorite food is better, Elijah's or Stefan's?exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Whose favorite food is better, Elijah's or Stefan's?exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Stefan currently works at Stitch Fix. Elijah likes to bake sourdough.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__PRIOR_STEP":"human_converse"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:29:11.742237","action":"terminal","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:29:11.742303","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Stefan currently works at Stitch Fix. Elijah likes to bake sourdough.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Whose favorite food is better, Elijah's or Stefan's?exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Stefan currently works at Stitch Fix. Elijah likes to bake sourdough.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__PRIOR_STEP":"terminal"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:03.765746","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:07:03.766016","action":"human_converse","result":{"question":"What is Elijah's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?"],"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:03.766244","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:07:05.512761","action":"ai_converse","result":{"conversational_rag_response":"Mango"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango"],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:05.513190","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:07:05.513395","action":"human_converse","result":{"question":"Where did Elijah work?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:05.513798","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:07:07.553788","action":"ai_converse","result":{"conversational_rag_response":"Elijah worked at TwoSigma."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Elijah work?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:07.555110","action":"human_converse","inputs":{"user_question":"Where did Stefan workWhat does Elijah like to do?"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:07:07.555333","action":"human_converse","result":{"question":"Where did Stefan workWhat does Elijah like to do?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan workWhat does Elijah like to do?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:07.555658","action":"ai_converse","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:07:56.847749","action":"ai_converse","result":{"conversational_rag_response":"Elijah likes to go biking."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan workWhat does Elijah like to do?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking."],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:56.848805","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:07:56.849076","action":"human_converse","result":{"question":"What is Stefan's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":6},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:56.856239","action":"ai_converse","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:07:58.412497","action":"ai_converse","result":{"conversational_rag_response":"Tacos"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos"],"__PRIOR_STEP":"ai_converse","__SEQUENCE_ID":7},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:58.413287","action":"human_converse","inputs":{"user_question":"Whose favorite food is better, Elijah's or Stefan's?exit"},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:07:58.413667","action":"human_converse","result":{"question":"Whose favorite food is better, Elijah's or Stefan's?exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Whose favorite food is better, Elijah's or Stefan's?exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__PRIOR_STEP":"human_converse","__SEQUENCE_ID":8},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:07:58.414182","action":"terminal","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:07:58.414384","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Whose favorite food is better, Elijah's or Stefan's?exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__PRIOR_STEP":"terminal","__SEQUENCE_ID":9},"sequence_id":9}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json
index a3ee5acc..a4792683 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 1"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 1"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl
index 6ebd864b..4ff228a6 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl
@@ -1,4 +1,4 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.244603","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.244753","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.244854","action":"result","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.244919","action":"result","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"result"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.423694","action":"counter","inputs":{},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.423934","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.425636","action":"result","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.425859","action":"result","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"result","__SEQUENCE_ID":1},"sequence_id":1}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json
index c3eeaab5..1e4e3098 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 10"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 10"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl
index ccc7002b..0871a4a9 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl
@@ -1,22 +1,22 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.248461","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.248556","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.248623","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.248673","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.248725","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.248767","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.248810","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.248848","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.248891","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.248927","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.248971","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.249007","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.249050","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.249088","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.249131","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.249166","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.249207","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.249243","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.249286","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.249321","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.249364","action":"result","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.249403","action":"result","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"result"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.511763","action":"counter","inputs":{},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.511863","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.511945","action":"counter","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.511985","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512036","action":"counter","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512069","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512115","action":"counter","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512147","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512189","action":"counter","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512220","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512261","action":"counter","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512291","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512332","action":"counter","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512363","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter","__SEQUENCE_ID":6},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512404","action":"counter","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512433","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter","__SEQUENCE_ID":7},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512474","action":"counter","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512503","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter","__SEQUENCE_ID":8},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512544","action":"counter","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512573","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter","__SEQUENCE_ID":9},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.512611","action":"result","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.512645","action":"result","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"result","__SEQUENCE_ID":10},"sequence_id":10}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json
index d765300d..70332e39 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 100"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 100"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl
index 84aa1e27..6169842f 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl
@@ -1,202 +1,202 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.255361","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.255469","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.255540","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.255591","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.255639","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.255683","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.255729","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.255772","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.255818","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.255858","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.255907","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.255946","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.255991","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256030","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256075","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256114","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256159","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256197","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256242","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256282","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256328","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256368","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256416","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256456","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256501","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256540","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256585","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256624","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256668","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256707","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256752","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256793","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256846","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256882","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.256924","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.256964","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257006","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257042","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257084","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257119","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257162","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257197","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257239","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257275","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257318","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257358","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257400","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257438","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257480","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257516","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257558","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257594","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257636","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257671","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257715","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257751","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257792","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257828","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257872","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257909","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.257959","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.257998","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258052","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258089","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258136","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258205","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258309","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258384","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258444","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258495","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258543","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258586","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258632","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258672","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258716","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258754","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258797","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258834","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258876","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258914","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.258957","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.258997","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259040","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259077","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259122","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259159","action":"counter","result":{"counter":43},"exception":null,"state":{"counter":43,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259202","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259239","action":"counter","result":{"counter":44},"exception":null,"state":{"counter":44,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259282","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259319","action":"counter","result":{"counter":45},"exception":null,"state":{"counter":45,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259362","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259400","action":"counter","result":{"counter":46},"exception":null,"state":{"counter":46,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259443","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259479","action":"counter","result":{"counter":47},"exception":null,"state":{"counter":47,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259537","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259574","action":"counter","result":{"counter":48},"exception":null,"state":{"counter":48,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259618","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259654","action":"counter","result":{"counter":49},"exception":null,"state":{"counter":49,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259697","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259733","action":"counter","result":{"counter":50},"exception":null,"state":{"counter":50,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259775","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259816","action":"counter","result":{"counter":51},"exception":null,"state":{"counter":51,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259859","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259895","action":"counter","result":{"counter":52},"exception":null,"state":{"counter":52,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.259937","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.259976","action":"counter","result":{"counter":53},"exception":null,"state":{"counter":53,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260019","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260055","action":"counter","result":{"counter":54},"exception":null,"state":{"counter":54,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260097","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260133","action":"counter","result":{"counter":55},"exception":null,"state":{"counter":55,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260175","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260211","action":"counter","result":{"counter":56},"exception":null,"state":{"counter":56,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260254","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260290","action":"counter","result":{"counter":57},"exception":null,"state":{"counter":57,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260332","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260369","action":"counter","result":{"counter":58},"exception":null,"state":{"counter":58,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260414","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260450","action":"counter","result":{"counter":59},"exception":null,"state":{"counter":59,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260492","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260531","action":"counter","result":{"counter":60},"exception":null,"state":{"counter":60,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260573","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260609","action":"counter","result":{"counter":61},"exception":null,"state":{"counter":61,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260652","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260689","action":"counter","result":{"counter":62},"exception":null,"state":{"counter":62,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260744","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260781","action":"counter","result":{"counter":63},"exception":null,"state":{"counter":63,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260824","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260860","action":"counter","result":{"counter":64},"exception":null,"state":{"counter":64,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260905","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.260942","action":"counter","result":{"counter":65},"exception":null,"state":{"counter":65,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.260984","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261020","action":"counter","result":{"counter":66},"exception":null,"state":{"counter":66,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261062","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261098","action":"counter","result":{"counter":67},"exception":null,"state":{"counter":67,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261139","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261175","action":"counter","result":{"counter":68},"exception":null,"state":{"counter":68,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261217","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261254","action":"counter","result":{"counter":69},"exception":null,"state":{"counter":69,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261296","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261333","action":"counter","result":{"counter":70},"exception":null,"state":{"counter":70,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261375","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261412","action":"counter","result":{"counter":71},"exception":null,"state":{"counter":71,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261455","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261491","action":"counter","result":{"counter":72},"exception":null,"state":{"counter":72,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261533","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261569","action":"counter","result":{"counter":73},"exception":null,"state":{"counter":73,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261610","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261647","action":"counter","result":{"counter":74},"exception":null,"state":{"counter":74,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261688","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261724","action":"counter","result":{"counter":75},"exception":null,"state":{"counter":75,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261769","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261805","action":"counter","result":{"counter":76},"exception":null,"state":{"counter":76,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261847","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261885","action":"counter","result":{"counter":77},"exception":null,"state":{"counter":77,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.261927","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.261971","action":"counter","result":{"counter":78},"exception":null,"state":{"counter":78,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262012","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262048","action":"counter","result":{"counter":79},"exception":null,"state":{"counter":79,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262089","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262126","action":"counter","result":{"counter":80},"exception":null,"state":{"counter":80,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262168","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262204","action":"counter","result":{"counter":81},"exception":null,"state":{"counter":81,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262249","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262284","action":"counter","result":{"counter":82},"exception":null,"state":{"counter":82,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262326","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262362","action":"counter","result":{"counter":83},"exception":null,"state":{"counter":83,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262405","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262441","action":"counter","result":{"counter":84},"exception":null,"state":{"counter":84,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262482","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262518","action":"counter","result":{"counter":85},"exception":null,"state":{"counter":85,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262560","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262595","action":"counter","result":{"counter":86},"exception":null,"state":{"counter":86,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262636","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262671","action":"counter","result":{"counter":87},"exception":null,"state":{"counter":87,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262711","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262746","action":"counter","result":{"counter":88},"exception":null,"state":{"counter":88,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262787","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262822","action":"counter","result":{"counter":89},"exception":null,"state":{"counter":89,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262863","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262899","action":"counter","result":{"counter":90},"exception":null,"state":{"counter":90,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.262941","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.262976","action":"counter","result":{"counter":91},"exception":null,"state":{"counter":91,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263019","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263056","action":"counter","result":{"counter":92},"exception":null,"state":{"counter":92,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263099","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263135","action":"counter","result":{"counter":93},"exception":null,"state":{"counter":93,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263184","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263220","action":"counter","result":{"counter":94},"exception":null,"state":{"counter":94,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263262","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263298","action":"counter","result":{"counter":95},"exception":null,"state":{"counter":95,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263340","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263375","action":"counter","result":{"counter":96},"exception":null,"state":{"counter":96,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263417","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263452","action":"counter","result":{"counter":97},"exception":null,"state":{"counter":97,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263494","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263530","action":"counter","result":{"counter":98},"exception":null,"state":{"counter":98,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263572","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263607","action":"counter","result":{"counter":99},"exception":null,"state":{"counter":99,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263647","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263681","action":"counter","result":{"counter":100},"exception":null,"state":{"counter":100,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.263725","action":"result","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.263770","action":"result","result":{"counter":100},"exception":null,"state":{"counter":100,"__PRIOR_STEP":"result"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515373","action":"counter","inputs":{},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.515443","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515515","action":"counter","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.515556","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515606","action":"counter","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.515642","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515687","action":"counter","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.515720","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515765","action":"counter","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.515796","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515838","action":"counter","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.515872","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515914","action":"counter","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.515946","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter","__SEQUENCE_ID":6},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.515990","action":"counter","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516024","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter","__SEQUENCE_ID":7},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516065","action":"counter","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516099","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter","__SEQUENCE_ID":8},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516142","action":"counter","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516174","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter","__SEQUENCE_ID":9},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516217","action":"counter","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516249","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__PRIOR_STEP":"counter","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516291","action":"counter","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516323","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__PRIOR_STEP":"counter","__SEQUENCE_ID":11},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516364","action":"counter","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516395","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__PRIOR_STEP":"counter","__SEQUENCE_ID":12},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516437","action":"counter","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516474","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__PRIOR_STEP":"counter","__SEQUENCE_ID":13},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516514","action":"counter","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516544","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__PRIOR_STEP":"counter","__SEQUENCE_ID":14},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516584","action":"counter","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516614","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__PRIOR_STEP":"counter","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516654","action":"counter","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516683","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__PRIOR_STEP":"counter","__SEQUENCE_ID":16},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516722","action":"counter","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516751","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__PRIOR_STEP":"counter","__SEQUENCE_ID":17},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516791","action":"counter","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516820","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__PRIOR_STEP":"counter","__SEQUENCE_ID":18},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516858","action":"counter","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516886","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__PRIOR_STEP":"counter","__SEQUENCE_ID":19},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516924","action":"counter","inputs":{},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.516951","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__PRIOR_STEP":"counter","__SEQUENCE_ID":20},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.516989","action":"counter","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517016","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__PRIOR_STEP":"counter","__SEQUENCE_ID":21},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517055","action":"counter","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517082","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__PRIOR_STEP":"counter","__SEQUENCE_ID":22},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517120","action":"counter","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517148","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__PRIOR_STEP":"counter","__SEQUENCE_ID":23},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517186","action":"counter","inputs":{},"sequence_id":24}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517213","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__PRIOR_STEP":"counter","__SEQUENCE_ID":24},"sequence_id":24}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517252","action":"counter","inputs":{},"sequence_id":25}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517281","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__PRIOR_STEP":"counter","__SEQUENCE_ID":25},"sequence_id":25}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517327","action":"counter","inputs":{},"sequence_id":26}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517358","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__PRIOR_STEP":"counter","__SEQUENCE_ID":26},"sequence_id":26}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517398","action":"counter","inputs":{},"sequence_id":27}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517427","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__PRIOR_STEP":"counter","__SEQUENCE_ID":27},"sequence_id":27}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517467","action":"counter","inputs":{},"sequence_id":28}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517497","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__PRIOR_STEP":"counter","__SEQUENCE_ID":28},"sequence_id":28}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517537","action":"counter","inputs":{},"sequence_id":29}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517567","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__PRIOR_STEP":"counter","__SEQUENCE_ID":29},"sequence_id":29}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517607","action":"counter","inputs":{},"sequence_id":30}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517636","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__PRIOR_STEP":"counter","__SEQUENCE_ID":30},"sequence_id":30}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517677","action":"counter","inputs":{},"sequence_id":31}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517706","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__PRIOR_STEP":"counter","__SEQUENCE_ID":31},"sequence_id":31}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517745","action":"counter","inputs":{},"sequence_id":32}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517774","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__PRIOR_STEP":"counter","__SEQUENCE_ID":32},"sequence_id":32}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517814","action":"counter","inputs":{},"sequence_id":33}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517843","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__PRIOR_STEP":"counter","__SEQUENCE_ID":33},"sequence_id":33}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517882","action":"counter","inputs":{},"sequence_id":34}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517912","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__PRIOR_STEP":"counter","__SEQUENCE_ID":34},"sequence_id":34}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.517951","action":"counter","inputs":{},"sequence_id":35}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.517981","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__PRIOR_STEP":"counter","__SEQUENCE_ID":35},"sequence_id":35}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518020","action":"counter","inputs":{},"sequence_id":36}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518047","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__PRIOR_STEP":"counter","__SEQUENCE_ID":36},"sequence_id":36}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518086","action":"counter","inputs":{},"sequence_id":37}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518114","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__PRIOR_STEP":"counter","__SEQUENCE_ID":37},"sequence_id":37}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518152","action":"counter","inputs":{},"sequence_id":38}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518180","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__PRIOR_STEP":"counter","__SEQUENCE_ID":38},"sequence_id":38}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518224","action":"counter","inputs":{},"sequence_id":39}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518252","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__PRIOR_STEP":"counter","__SEQUENCE_ID":39},"sequence_id":39}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518292","action":"counter","inputs":{},"sequence_id":40}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518322","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__PRIOR_STEP":"counter","__SEQUENCE_ID":40},"sequence_id":40}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518361","action":"counter","inputs":{},"sequence_id":41}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518389","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"counter","__SEQUENCE_ID":41},"sequence_id":41}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518429","action":"counter","inputs":{},"sequence_id":42}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518458","action":"counter","result":{"counter":43},"exception":null,"state":{"counter":43,"__PRIOR_STEP":"counter","__SEQUENCE_ID":42},"sequence_id":42}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518497","action":"counter","inputs":{},"sequence_id":43}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518527","action":"counter","result":{"counter":44},"exception":null,"state":{"counter":44,"__PRIOR_STEP":"counter","__SEQUENCE_ID":43},"sequence_id":43}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518568","action":"counter","inputs":{},"sequence_id":44}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518597","action":"counter","result":{"counter":45},"exception":null,"state":{"counter":45,"__PRIOR_STEP":"counter","__SEQUENCE_ID":44},"sequence_id":44}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518647","action":"counter","inputs":{},"sequence_id":45}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518679","action":"counter","result":{"counter":46},"exception":null,"state":{"counter":46,"__PRIOR_STEP":"counter","__SEQUENCE_ID":45},"sequence_id":45}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518718","action":"counter","inputs":{},"sequence_id":46}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518750","action":"counter","result":{"counter":47},"exception":null,"state":{"counter":47,"__PRIOR_STEP":"counter","__SEQUENCE_ID":46},"sequence_id":46}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518789","action":"counter","inputs":{},"sequence_id":47}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518818","action":"counter","result":{"counter":48},"exception":null,"state":{"counter":48,"__PRIOR_STEP":"counter","__SEQUENCE_ID":47},"sequence_id":47}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518858","action":"counter","inputs":{},"sequence_id":48}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518886","action":"counter","result":{"counter":49},"exception":null,"state":{"counter":49,"__PRIOR_STEP":"counter","__SEQUENCE_ID":48},"sequence_id":48}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518925","action":"counter","inputs":{},"sequence_id":49}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.518953","action":"counter","result":{"counter":50},"exception":null,"state":{"counter":50,"__PRIOR_STEP":"counter","__SEQUENCE_ID":49},"sequence_id":49}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.518991","action":"counter","inputs":{},"sequence_id":50}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519021","action":"counter","result":{"counter":51},"exception":null,"state":{"counter":51,"__PRIOR_STEP":"counter","__SEQUENCE_ID":50},"sequence_id":50}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519059","action":"counter","inputs":{},"sequence_id":51}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519088","action":"counter","result":{"counter":52},"exception":null,"state":{"counter":52,"__PRIOR_STEP":"counter","__SEQUENCE_ID":51},"sequence_id":51}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519137","action":"counter","inputs":{},"sequence_id":52}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519165","action":"counter","result":{"counter":53},"exception":null,"state":{"counter":53,"__PRIOR_STEP":"counter","__SEQUENCE_ID":52},"sequence_id":52}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519204","action":"counter","inputs":{},"sequence_id":53}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519233","action":"counter","result":{"counter":54},"exception":null,"state":{"counter":54,"__PRIOR_STEP":"counter","__SEQUENCE_ID":53},"sequence_id":53}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519272","action":"counter","inputs":{},"sequence_id":54}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519300","action":"counter","result":{"counter":55},"exception":null,"state":{"counter":55,"__PRIOR_STEP":"counter","__SEQUENCE_ID":54},"sequence_id":54}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519340","action":"counter","inputs":{},"sequence_id":55}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519368","action":"counter","result":{"counter":56},"exception":null,"state":{"counter":56,"__PRIOR_STEP":"counter","__SEQUENCE_ID":55},"sequence_id":55}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519407","action":"counter","inputs":{},"sequence_id":56}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519435","action":"counter","result":{"counter":57},"exception":null,"state":{"counter":57,"__PRIOR_STEP":"counter","__SEQUENCE_ID":56},"sequence_id":56}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519474","action":"counter","inputs":{},"sequence_id":57}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519502","action":"counter","result":{"counter":58},"exception":null,"state":{"counter":58,"__PRIOR_STEP":"counter","__SEQUENCE_ID":57},"sequence_id":57}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519540","action":"counter","inputs":{},"sequence_id":58}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519569","action":"counter","result":{"counter":59},"exception":null,"state":{"counter":59,"__PRIOR_STEP":"counter","__SEQUENCE_ID":58},"sequence_id":58}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519608","action":"counter","inputs":{},"sequence_id":59}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519635","action":"counter","result":{"counter":60},"exception":null,"state":{"counter":60,"__PRIOR_STEP":"counter","__SEQUENCE_ID":59},"sequence_id":59}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519673","action":"counter","inputs":{},"sequence_id":60}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519711","action":"counter","result":{"counter":61},"exception":null,"state":{"counter":61,"__PRIOR_STEP":"counter","__SEQUENCE_ID":60},"sequence_id":60}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519753","action":"counter","inputs":{},"sequence_id":61}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519781","action":"counter","result":{"counter":62},"exception":null,"state":{"counter":62,"__PRIOR_STEP":"counter","__SEQUENCE_ID":61},"sequence_id":61}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519820","action":"counter","inputs":{},"sequence_id":62}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519849","action":"counter","result":{"counter":63},"exception":null,"state":{"counter":63,"__PRIOR_STEP":"counter","__SEQUENCE_ID":62},"sequence_id":62}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519891","action":"counter","inputs":{},"sequence_id":63}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519920","action":"counter","result":{"counter":64},"exception":null,"state":{"counter":64,"__PRIOR_STEP":"counter","__SEQUENCE_ID":63},"sequence_id":63}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.519963","action":"counter","inputs":{},"sequence_id":64}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.519992","action":"counter","result":{"counter":65},"exception":null,"state":{"counter":65,"__PRIOR_STEP":"counter","__SEQUENCE_ID":64},"sequence_id":64}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520041","action":"counter","inputs":{},"sequence_id":65}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520070","action":"counter","result":{"counter":66},"exception":null,"state":{"counter":66,"__PRIOR_STEP":"counter","__SEQUENCE_ID":65},"sequence_id":65}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520109","action":"counter","inputs":{},"sequence_id":66}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520138","action":"counter","result":{"counter":67},"exception":null,"state":{"counter":67,"__PRIOR_STEP":"counter","__SEQUENCE_ID":66},"sequence_id":66}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520176","action":"counter","inputs":{},"sequence_id":67}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520208","action":"counter","result":{"counter":68},"exception":null,"state":{"counter":68,"__PRIOR_STEP":"counter","__SEQUENCE_ID":67},"sequence_id":67}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520247","action":"counter","inputs":{},"sequence_id":68}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520277","action":"counter","result":{"counter":69},"exception":null,"state":{"counter":69,"__PRIOR_STEP":"counter","__SEQUENCE_ID":68},"sequence_id":68}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520315","action":"counter","inputs":{},"sequence_id":69}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520344","action":"counter","result":{"counter":70},"exception":null,"state":{"counter":70,"__PRIOR_STEP":"counter","__SEQUENCE_ID":69},"sequence_id":69}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520383","action":"counter","inputs":{},"sequence_id":70}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520414","action":"counter","result":{"counter":71},"exception":null,"state":{"counter":71,"__PRIOR_STEP":"counter","__SEQUENCE_ID":70},"sequence_id":70}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520453","action":"counter","inputs":{},"sequence_id":71}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520480","action":"counter","result":{"counter":72},"exception":null,"state":{"counter":72,"__PRIOR_STEP":"counter","__SEQUENCE_ID":71},"sequence_id":71}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520518","action":"counter","inputs":{},"sequence_id":72}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520546","action":"counter","result":{"counter":73},"exception":null,"state":{"counter":73,"__PRIOR_STEP":"counter","__SEQUENCE_ID":72},"sequence_id":72}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520583","action":"counter","inputs":{},"sequence_id":73}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520650","action":"counter","result":{"counter":74},"exception":null,"state":{"counter":74,"__PRIOR_STEP":"counter","__SEQUENCE_ID":73},"sequence_id":73}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520729","action":"counter","inputs":{},"sequence_id":74}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520763","action":"counter","result":{"counter":75},"exception":null,"state":{"counter":75,"__PRIOR_STEP":"counter","__SEQUENCE_ID":74},"sequence_id":74}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520802","action":"counter","inputs":{},"sequence_id":75}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520831","action":"counter","result":{"counter":76},"exception":null,"state":{"counter":76,"__PRIOR_STEP":"counter","__SEQUENCE_ID":75},"sequence_id":75}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520869","action":"counter","inputs":{},"sequence_id":76}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520897","action":"counter","result":{"counter":77},"exception":null,"state":{"counter":77,"__PRIOR_STEP":"counter","__SEQUENCE_ID":76},"sequence_id":76}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.520936","action":"counter","inputs":{},"sequence_id":77}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.520964","action":"counter","result":{"counter":78},"exception":null,"state":{"counter":78,"__PRIOR_STEP":"counter","__SEQUENCE_ID":77},"sequence_id":77}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521012","action":"counter","inputs":{},"sequence_id":78}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.521141","action":"counter","result":{"counter":79},"exception":null,"state":{"counter":79,"__PRIOR_STEP":"counter","__SEQUENCE_ID":78},"sequence_id":78}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521289","action":"counter","inputs":{},"sequence_id":79}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.521356","action":"counter","result":{"counter":80},"exception":null,"state":{"counter":80,"__PRIOR_STEP":"counter","__SEQUENCE_ID":79},"sequence_id":79}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521426","action":"counter","inputs":{},"sequence_id":80}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.521477","action":"counter","result":{"counter":81},"exception":null,"state":{"counter":81,"__PRIOR_STEP":"counter","__SEQUENCE_ID":80},"sequence_id":80}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521540","action":"counter","inputs":{},"sequence_id":81}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.521588","action":"counter","result":{"counter":82},"exception":null,"state":{"counter":82,"__PRIOR_STEP":"counter","__SEQUENCE_ID":81},"sequence_id":81}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521649","action":"counter","inputs":{},"sequence_id":82}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.521696","action":"counter","result":{"counter":83},"exception":null,"state":{"counter":83,"__PRIOR_STEP":"counter","__SEQUENCE_ID":82},"sequence_id":82}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521758","action":"counter","inputs":{},"sequence_id":83}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.521803","action":"counter","result":{"counter":84},"exception":null,"state":{"counter":84,"__PRIOR_STEP":"counter","__SEQUENCE_ID":83},"sequence_id":83}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521861","action":"counter","inputs":{},"sequence_id":84}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.521907","action":"counter","result":{"counter":85},"exception":null,"state":{"counter":85,"__PRIOR_STEP":"counter","__SEQUENCE_ID":84},"sequence_id":84}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.521966","action":"counter","inputs":{},"sequence_id":85}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522011","action":"counter","result":{"counter":86},"exception":null,"state":{"counter":86,"__PRIOR_STEP":"counter","__SEQUENCE_ID":85},"sequence_id":85}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522072","action":"counter","inputs":{},"sequence_id":86}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522117","action":"counter","result":{"counter":87},"exception":null,"state":{"counter":87,"__PRIOR_STEP":"counter","__SEQUENCE_ID":86},"sequence_id":86}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522177","action":"counter","inputs":{},"sequence_id":87}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522222","action":"counter","result":{"counter":88},"exception":null,"state":{"counter":88,"__PRIOR_STEP":"counter","__SEQUENCE_ID":87},"sequence_id":87}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522281","action":"counter","inputs":{},"sequence_id":88}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522328","action":"counter","result":{"counter":89},"exception":null,"state":{"counter":89,"__PRIOR_STEP":"counter","__SEQUENCE_ID":88},"sequence_id":88}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522387","action":"counter","inputs":{},"sequence_id":89}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522437","action":"counter","result":{"counter":90},"exception":null,"state":{"counter":90,"__PRIOR_STEP":"counter","__SEQUENCE_ID":89},"sequence_id":89}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522495","action":"counter","inputs":{},"sequence_id":90}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522539","action":"counter","result":{"counter":91},"exception":null,"state":{"counter":91,"__PRIOR_STEP":"counter","__SEQUENCE_ID":90},"sequence_id":90}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522611","action":"counter","inputs":{},"sequence_id":91}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522656","action":"counter","result":{"counter":92},"exception":null,"state":{"counter":92,"__PRIOR_STEP":"counter","__SEQUENCE_ID":91},"sequence_id":91}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522712","action":"counter","inputs":{},"sequence_id":92}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522756","action":"counter","result":{"counter":93},"exception":null,"state":{"counter":93,"__PRIOR_STEP":"counter","__SEQUENCE_ID":92},"sequence_id":92}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522813","action":"counter","inputs":{},"sequence_id":93}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522858","action":"counter","result":{"counter":94},"exception":null,"state":{"counter":94,"__PRIOR_STEP":"counter","__SEQUENCE_ID":93},"sequence_id":93}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.522915","action":"counter","inputs":{},"sequence_id":94}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.522967","action":"counter","result":{"counter":95},"exception":null,"state":{"counter":95,"__PRIOR_STEP":"counter","__SEQUENCE_ID":94},"sequence_id":94}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.523029","action":"counter","inputs":{},"sequence_id":95}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.523077","action":"counter","result":{"counter":96},"exception":null,"state":{"counter":96,"__PRIOR_STEP":"counter","__SEQUENCE_ID":95},"sequence_id":95}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.523136","action":"counter","inputs":{},"sequence_id":96}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.523185","action":"counter","result":{"counter":97},"exception":null,"state":{"counter":97,"__PRIOR_STEP":"counter","__SEQUENCE_ID":96},"sequence_id":96}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.523245","action":"counter","inputs":{},"sequence_id":97}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.523289","action":"counter","result":{"counter":98},"exception":null,"state":{"counter":98,"__PRIOR_STEP":"counter","__SEQUENCE_ID":97},"sequence_id":97}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.523346","action":"counter","inputs":{},"sequence_id":98}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.523391","action":"counter","result":{"counter":99},"exception":null,"state":{"counter":99,"__PRIOR_STEP":"counter","__SEQUENCE_ID":98},"sequence_id":98}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.523446","action":"counter","inputs":{},"sequence_id":99}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.523493","action":"counter","result":{"counter":100},"exception":null,"state":{"counter":100,"__PRIOR_STEP":"counter","__SEQUENCE_ID":99},"sequence_id":99}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.523544","action":"result","inputs":{},"sequence_id":100}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.523584","action":"result","result":{"counter":100},"exception":null,"state":{"counter":100,"__PRIOR_STEP":"result","__SEQUENCE_ID":100},"sequence_id":100}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json
index 510e7e4e..5c9dbb1a 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 42"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 42"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl
index dd9c40d8..b7a6e76f 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl
@@ -1,86 +1,86 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278051","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278174","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278260","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278314","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278360","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278403","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278447","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278484","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278524","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278561","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278601","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278636","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278675","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278710","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278748","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278784","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278827","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278861","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278900","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.278934","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.278973","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279008","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279046","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279081","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279119","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279153","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279191","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279309","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279418","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279464","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279505","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279542","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279592","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279625","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279662","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279693","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279728","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279759","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279794","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279825","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279860","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279889","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.279924","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.279954","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280003","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280033","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280067","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280097","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280132","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280160","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280195","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280224","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280258","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280287","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280353","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280463","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280534","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280582","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280625","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280662","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280702","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280736","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280785","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.280855","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.280952","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281007","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281044","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281074","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281109","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281138","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281177","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281209","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281246","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281279","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281317","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281350","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281388","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281420","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281457","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281489","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281526","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281558","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281594","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281626","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.281664","action":"result","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.281702","action":"result","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"result"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.533946","action":"counter","inputs":{},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534133","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534218","action":"counter","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534258","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534306","action":"counter","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534341","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534384","action":"counter","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534417","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534459","action":"counter","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534491","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534533","action":"counter","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534566","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534607","action":"counter","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534637","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter","__SEQUENCE_ID":6},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534677","action":"counter","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534707","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter","__SEQUENCE_ID":7},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534746","action":"counter","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534775","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter","__SEQUENCE_ID":8},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534815","action":"counter","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534844","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter","__SEQUENCE_ID":9},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534884","action":"counter","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534914","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__PRIOR_STEP":"counter","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.534955","action":"counter","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.534986","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__PRIOR_STEP":"counter","__SEQUENCE_ID":11},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535044","action":"counter","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535075","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__PRIOR_STEP":"counter","__SEQUENCE_ID":12},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535117","action":"counter","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535163","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__PRIOR_STEP":"counter","__SEQUENCE_ID":13},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535203","action":"counter","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535241","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__PRIOR_STEP":"counter","__SEQUENCE_ID":14},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535280","action":"counter","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535309","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__PRIOR_STEP":"counter","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535348","action":"counter","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535377","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__PRIOR_STEP":"counter","__SEQUENCE_ID":16},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535416","action":"counter","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535445","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__PRIOR_STEP":"counter","__SEQUENCE_ID":17},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535485","action":"counter","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535514","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__PRIOR_STEP":"counter","__SEQUENCE_ID":18},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535552","action":"counter","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535580","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__PRIOR_STEP":"counter","__SEQUENCE_ID":19},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535619","action":"counter","inputs":{},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535647","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__PRIOR_STEP":"counter","__SEQUENCE_ID":20},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535686","action":"counter","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535714","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__PRIOR_STEP":"counter","__SEQUENCE_ID":21},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535753","action":"counter","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535781","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__PRIOR_STEP":"counter","__SEQUENCE_ID":22},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535820","action":"counter","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535849","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__PRIOR_STEP":"counter","__SEQUENCE_ID":23},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535888","action":"counter","inputs":{},"sequence_id":24}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535918","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__PRIOR_STEP":"counter","__SEQUENCE_ID":24},"sequence_id":24}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.535958","action":"counter","inputs":{},"sequence_id":25}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.535987","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__PRIOR_STEP":"counter","__SEQUENCE_ID":25},"sequence_id":25}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536032","action":"counter","inputs":{},"sequence_id":26}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536061","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__PRIOR_STEP":"counter","__SEQUENCE_ID":26},"sequence_id":26}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536106","action":"counter","inputs":{},"sequence_id":27}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536135","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__PRIOR_STEP":"counter","__SEQUENCE_ID":27},"sequence_id":27}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536173","action":"counter","inputs":{},"sequence_id":28}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536201","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__PRIOR_STEP":"counter","__SEQUENCE_ID":28},"sequence_id":28}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536239","action":"counter","inputs":{},"sequence_id":29}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536265","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__PRIOR_STEP":"counter","__SEQUENCE_ID":29},"sequence_id":29}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536303","action":"counter","inputs":{},"sequence_id":30}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536331","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__PRIOR_STEP":"counter","__SEQUENCE_ID":30},"sequence_id":30}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536368","action":"counter","inputs":{},"sequence_id":31}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536396","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__PRIOR_STEP":"counter","__SEQUENCE_ID":31},"sequence_id":31}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536434","action":"counter","inputs":{},"sequence_id":32}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536461","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__PRIOR_STEP":"counter","__SEQUENCE_ID":32},"sequence_id":32}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536499","action":"counter","inputs":{},"sequence_id":33}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536525","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__PRIOR_STEP":"counter","__SEQUENCE_ID":33},"sequence_id":33}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536564","action":"counter","inputs":{},"sequence_id":34}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536591","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__PRIOR_STEP":"counter","__SEQUENCE_ID":34},"sequence_id":34}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536629","action":"counter","inputs":{},"sequence_id":35}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536657","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__PRIOR_STEP":"counter","__SEQUENCE_ID":35},"sequence_id":35}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536695","action":"counter","inputs":{},"sequence_id":36}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536725","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__PRIOR_STEP":"counter","__SEQUENCE_ID":36},"sequence_id":36}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536782","action":"counter","inputs":{},"sequence_id":37}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536819","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__PRIOR_STEP":"counter","__SEQUENCE_ID":37},"sequence_id":37}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536862","action":"counter","inputs":{},"sequence_id":38}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536892","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__PRIOR_STEP":"counter","__SEQUENCE_ID":38},"sequence_id":38}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.536939","action":"counter","inputs":{},"sequence_id":39}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.536968","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__PRIOR_STEP":"counter","__SEQUENCE_ID":39},"sequence_id":39}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.537008","action":"counter","inputs":{},"sequence_id":40}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.537037","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__PRIOR_STEP":"counter","__SEQUENCE_ID":40},"sequence_id":40}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.537077","action":"counter","inputs":{},"sequence_id":41}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.537105","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"counter","__SEQUENCE_ID":41},"sequence_id":41}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.537140","action":"result","inputs":{},"sequence_id":42}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.537172","action":"result","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"result","__SEQUENCE_ID":42},"sequence_id":42}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json
index 1d0f3b28..51cf6527 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 50"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 50"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl
index c7bf81b6..c7e43edc 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl
@@ -1,102 +1,102 @@
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.269096","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.269393","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.269518","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.269602","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.269678","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.269743","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.269811","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.269872","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.269939","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.269996","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270059","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270114","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270176","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270229","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270289","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270342","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270403","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270455","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270517","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270567","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270628","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270680","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270737","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270785","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270842","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270891","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.270944","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.270984","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271030","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271067","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271109","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271146","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271199","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271234","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271275","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271309","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271350","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271384","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271424","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271458","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271501","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271539","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271583","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271621","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271665","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271702","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271747","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271785","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271826","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271863","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271907","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.271949","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.271993","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272031","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272075","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272114","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272158","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272196","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272241","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272280","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272324","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272362","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272416","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272454","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272498","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272535","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272580","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272618","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272663","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272698","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272742","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272779","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.272823","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.272863","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273139","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273324","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273385","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273429","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273465","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273495","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273529","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273561","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273600","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273633","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273670","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273703","action":"counter","result":{"counter":43},"exception":null,"state":{"counter":43,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273739","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273771","action":"counter","result":{"counter":44},"exception":null,"state":{"counter":44,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273807","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273838","action":"counter","result":{"counter":45},"exception":null,"state":{"counter":45,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273874","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273905","action":"counter","result":{"counter":46},"exception":null,"state":{"counter":46,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.273941","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.273973","action":"counter","result":{"counter":47},"exception":null,"state":{"counter":47,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.274018","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.274051","action":"counter","result":{"counter":48},"exception":null,"state":{"counter":48,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.274088","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.274121","action":"counter","result":{"counter":49},"exception":null,"state":{"counter":49,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.274157","action":"counter","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.274189","action":"counter","result":{"counter":50},"exception":null,"state":{"counter":50,"__PRIOR_STEP":"counter"}}
-{"type":"begin_entry","start_time":"2024-02-26T15:28:45.274228","action":"result","inputs":{}}
-{"type":"end_entry","end_time":"2024-02-26T15:28:45.274271","action":"result","result":{"counter":50},"exception":null,"state":{"counter":50,"__PRIOR_STEP":"result"}}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.526637","action":"counter","inputs":{},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.526722","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__PRIOR_STEP":"counter"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.526794","action":"counter","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.526835","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__PRIOR_STEP":"counter","__SEQUENCE_ID":1},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.526885","action":"counter","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.526925","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__PRIOR_STEP":"counter","__SEQUENCE_ID":2},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.526973","action":"counter","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527008","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__PRIOR_STEP":"counter","__SEQUENCE_ID":3},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527050","action":"counter","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527082","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__PRIOR_STEP":"counter","__SEQUENCE_ID":4},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527126","action":"counter","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527157","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__PRIOR_STEP":"counter","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527202","action":"counter","inputs":{},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527234","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__PRIOR_STEP":"counter","__SEQUENCE_ID":6},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527276","action":"counter","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527307","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__PRIOR_STEP":"counter","__SEQUENCE_ID":7},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527349","action":"counter","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527381","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__PRIOR_STEP":"counter","__SEQUENCE_ID":8},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527423","action":"counter","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527456","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__PRIOR_STEP":"counter","__SEQUENCE_ID":9},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527498","action":"counter","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527530","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__PRIOR_STEP":"counter","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527572","action":"counter","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527605","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__PRIOR_STEP":"counter","__SEQUENCE_ID":11},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527647","action":"counter","inputs":{},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527680","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__PRIOR_STEP":"counter","__SEQUENCE_ID":12},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527723","action":"counter","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527765","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__PRIOR_STEP":"counter","__SEQUENCE_ID":13},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527807","action":"counter","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527836","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__PRIOR_STEP":"counter","__SEQUENCE_ID":14},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527879","action":"counter","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527910","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__PRIOR_STEP":"counter","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.527951","action":"counter","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.527981","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__PRIOR_STEP":"counter","__SEQUENCE_ID":16},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528021","action":"counter","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528052","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__PRIOR_STEP":"counter","__SEQUENCE_ID":17},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528092","action":"counter","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528121","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__PRIOR_STEP":"counter","__SEQUENCE_ID":18},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528162","action":"counter","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528193","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__PRIOR_STEP":"counter","__SEQUENCE_ID":19},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528233","action":"counter","inputs":{},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528263","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__PRIOR_STEP":"counter","__SEQUENCE_ID":20},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528304","action":"counter","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528335","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__PRIOR_STEP":"counter","__SEQUENCE_ID":21},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528376","action":"counter","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528406","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__PRIOR_STEP":"counter","__SEQUENCE_ID":22},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528449","action":"counter","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528478","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__PRIOR_STEP":"counter","__SEQUENCE_ID":23},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528519","action":"counter","inputs":{},"sequence_id":24}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528547","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__PRIOR_STEP":"counter","__SEQUENCE_ID":24},"sequence_id":24}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528590","action":"counter","inputs":{},"sequence_id":25}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528618","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__PRIOR_STEP":"counter","__SEQUENCE_ID":25},"sequence_id":25}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528668","action":"counter","inputs":{},"sequence_id":26}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528696","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__PRIOR_STEP":"counter","__SEQUENCE_ID":26},"sequence_id":26}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528735","action":"counter","inputs":{},"sequence_id":27}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528797","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__PRIOR_STEP":"counter","__SEQUENCE_ID":27},"sequence_id":27}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528845","action":"counter","inputs":{},"sequence_id":28}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528875","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__PRIOR_STEP":"counter","__SEQUENCE_ID":28},"sequence_id":28}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528915","action":"counter","inputs":{},"sequence_id":29}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.528945","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__PRIOR_STEP":"counter","__SEQUENCE_ID":29},"sequence_id":29}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.528985","action":"counter","inputs":{},"sequence_id":30}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529015","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__PRIOR_STEP":"counter","__SEQUENCE_ID":30},"sequence_id":30}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529054","action":"counter","inputs":{},"sequence_id":31}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529083","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__PRIOR_STEP":"counter","__SEQUENCE_ID":31},"sequence_id":31}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529123","action":"counter","inputs":{},"sequence_id":32}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529152","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__PRIOR_STEP":"counter","__SEQUENCE_ID":32},"sequence_id":32}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529191","action":"counter","inputs":{},"sequence_id":33}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529220","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__PRIOR_STEP":"counter","__SEQUENCE_ID":33},"sequence_id":33}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529259","action":"counter","inputs":{},"sequence_id":34}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529288","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__PRIOR_STEP":"counter","__SEQUENCE_ID":34},"sequence_id":34}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529328","action":"counter","inputs":{},"sequence_id":35}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529356","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__PRIOR_STEP":"counter","__SEQUENCE_ID":35},"sequence_id":35}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529395","action":"counter","inputs":{},"sequence_id":36}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529424","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__PRIOR_STEP":"counter","__SEQUENCE_ID":36},"sequence_id":36}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529463","action":"counter","inputs":{},"sequence_id":37}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529491","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__PRIOR_STEP":"counter","__SEQUENCE_ID":37},"sequence_id":37}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529531","action":"counter","inputs":{},"sequence_id":38}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529561","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__PRIOR_STEP":"counter","__SEQUENCE_ID":38},"sequence_id":38}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.529608","action":"counter","inputs":{},"sequence_id":39}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.529653","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__PRIOR_STEP":"counter","__SEQUENCE_ID":39},"sequence_id":39}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530010","action":"counter","inputs":{},"sequence_id":40}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530060","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__PRIOR_STEP":"counter","__SEQUENCE_ID":40},"sequence_id":40}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530112","action":"counter","inputs":{},"sequence_id":41}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530147","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__PRIOR_STEP":"counter","__SEQUENCE_ID":41},"sequence_id":41}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530191","action":"counter","inputs":{},"sequence_id":42}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530224","action":"counter","result":{"counter":43},"exception":null,"state":{"counter":43,"__PRIOR_STEP":"counter","__SEQUENCE_ID":42},"sequence_id":42}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530267","action":"counter","inputs":{},"sequence_id":43}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530299","action":"counter","result":{"counter":44},"exception":null,"state":{"counter":44,"__PRIOR_STEP":"counter","__SEQUENCE_ID":43},"sequence_id":43}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530342","action":"counter","inputs":{},"sequence_id":44}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530372","action":"counter","result":{"counter":45},"exception":null,"state":{"counter":45,"__PRIOR_STEP":"counter","__SEQUENCE_ID":44},"sequence_id":44}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530412","action":"counter","inputs":{},"sequence_id":45}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530441","action":"counter","result":{"counter":46},"exception":null,"state":{"counter":46,"__PRIOR_STEP":"counter","__SEQUENCE_ID":45},"sequence_id":45}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530480","action":"counter","inputs":{},"sequence_id":46}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530508","action":"counter","result":{"counter":47},"exception":null,"state":{"counter":47,"__PRIOR_STEP":"counter","__SEQUENCE_ID":46},"sequence_id":46}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530547","action":"counter","inputs":{},"sequence_id":47}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530574","action":"counter","result":{"counter":48},"exception":null,"state":{"counter":48,"__PRIOR_STEP":"counter","__SEQUENCE_ID":47},"sequence_id":47}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530613","action":"counter","inputs":{},"sequence_id":48}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530640","action":"counter","result":{"counter":49},"exception":null,"state":{"counter":49,"__PRIOR_STEP":"counter","__SEQUENCE_ID":48},"sequence_id":48}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530678","action":"counter","inputs":{},"sequence_id":49}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530708","action":"counter","result":{"counter":50},"exception":null,"state":{"counter":50,"__PRIOR_STEP":"counter","__SEQUENCE_ID":49},"sequence_id":49}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.530747","action":"result","inputs":{},"sequence_id":50}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.530781","action":"result","result":{"counter":50},"exception":null,"state":{"counter":50,"__PRIOR_STEP":"result","__SEQUENCE_ID":50},"sequence_id":50}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/graph.json
new file mode 100644
index 00000000..cdbd9153
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/graph.json
@@ -0,0 +1 @@
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/log.jsonl
new file mode 100644
index 00000000..6a6f8eb7
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/log.jsonl
@@ -0,0 +1,186 @@
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.585446","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-03-04T21:05:14.585835","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:14.585952","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.586144","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.586299","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-03-04T21:05:14.586377","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:14.586420","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:14.586524","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:14.586651","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-03-04T21:05:14.586722","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:14.586768","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:14.586805","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:14.586853","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:14.600820","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:14.601133","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:15.098762","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:15.099054","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:15.099134","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:15.099219","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:15.099461","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:15.099748","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-03-04T21:05:15.099873","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:15.121389","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:15.121785","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.141875","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.142122","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.142185","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:24.142355","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":3,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:24.142641","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.142754","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.142988","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.143026","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.143057","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:24.143190","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:24.143403","action":"prompt","inputs":{"prompt":"Please write a function that queries the internet for the height of a giraffe"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.143512","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.143549","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:24.143717","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:24.143842","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.143904","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.143936","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:24.144053","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:24.144180","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.144241","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.144279","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.144309","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.144343","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.161687","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.161792","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.616960","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.617253","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.617322","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.617408","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:24.617683","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:24.617981","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.618217","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.618282","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.618321","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.618365","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:24.636457","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:24.636614","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.228658","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.228982","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.229071","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.229178","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:26.229555","action":"generate_code","result":{"response":{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":8,"safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:26.230023","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.230159","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.230223","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.230277","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.230318","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:26.230554","action":"response","result":{"chat_item":{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"}],"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:26.231191","action":"prompt","inputs":{"prompt":"OK, just tell me, how tall is a giraffe?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.231329","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.231385","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:26.231708","action":"prompt","result":{"chat_item":{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:26.231930","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.232691","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.232796","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:26.233058","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:26.233334","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.233445","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.233541","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.233602","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.233657","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.254248","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.254570","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.912133","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.912486","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.912573","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.912672","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:26.913089","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:26.913954","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.914124","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.914193","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.914242","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.914310","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:26.936084","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:26.936243","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.368338","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.384842","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.385410","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.388147","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:28.389279","action":"answer_question","result":{"response":{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:28.389757","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.389879","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.389936","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.389977","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.390007","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:28.390195","action":"response","result":{"chat_item":{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"}],"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:28.390528","action":"prompt","inputs":{"prompt":"Please build me a giraffe"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.390602","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.390641","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:28.390905","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:28.391072","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.391149","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.391191","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:28.391399","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:28.391632","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.391710","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.392052","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.392159","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.392226","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.424062","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.424334","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.980901","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.980995","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.981047","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.981104","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:28.981367","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"generate_code"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:28.981822","action":"generate_code","inputs":{},"sequence_id":18}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.981957","action_sequence_id":18,"span_id":"18:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.982005","action_sequence_id":18,"span_id":"18:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.982038","action_sequence_id":18,"span_id":"18:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.982074","action_sequence_id":18,"span_id":"18:1.0","span_name":"create_openai_client","parent_span_id":"18:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:28.999833","action_sequence_id":18,"span_id":"18:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:28.999923","action_sequence_id":18,"span_id":"18:1.1","span_name":"query_openai","parent_span_id":"18:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.438075","action_sequence_id":18,"span_id":"18:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.438706","action_sequence_id":18,"span_id":"18:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.438974","action_sequence_id":18,"span_id":"18:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.439074","action_sequence_id":18,"span_id":"18:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:30.439510","action":"generate_code","result":{"response":{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":18,"safe":true,"mode":"generate_code","response":{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:30.440178","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.440324","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.440381","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.440421","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.440453","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:30.442312","action":"response","result":{"chat_item":{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"}],"prompt":"Please build me a giraffe","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"generate_code","response":{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"}},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:30.442791","action":"prompt","inputs":{"prompt":"If Aaron burr were an animal, would he be a giraffe?"},"sequence_id":20}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.442942","action_sequence_id":20,"span_id":"20:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.442998","action_sequence_id":20,"span_id":"20:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:30.443314","action":"prompt","result":{"chat_item":{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":20},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:30.443497","action":"check_safety","inputs":{},"sequence_id":21}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.443561","action_sequence_id":21,"span_id":"21:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.443599","action_sequence_id":21,"span_id":"21:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:30.443798","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":21,"safe":true},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:30.443996","action":"decide_mode","inputs":{},"sequence_id":22}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.444060","action_sequence_id":22,"span_id":"22:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.444099","action_sequence_id":22,"span_id":"22:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.444130","action_sequence_id":22,"span_id":"22:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.444166","action_sequence_id":22,"span_id":"22:1.0","span_name":"create_openai_client","parent_span_id":"22:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:30.456170","action_sequence_id":22,"span_id":"22:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:30.456283","action_sequence_id":22,"span_id":"22:1.1","span_name":"query_openai","parent_span_id":"22:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:31.112743","action_sequence_id":22,"span_id":"22:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:31.112873","action_sequence_id":22,"span_id":"22:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:31.112943","action_sequence_id":22,"span_id":"22:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:31.112993","action_sequence_id":22,"span_id":"22:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:31.113255","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":22,"safe":true,"mode":"answer_question"},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:31.113743","action":"answer_question","inputs":{},"sequence_id":23}
+{"type":"begin_span","start_time":"2024-03-04T21:05:31.113831","action_sequence_id":23,"span_id":"23:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:31.114040","action_sequence_id":23,"span_id":"23:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:31.114077","action_sequence_id":23,"span_id":"23:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:31.114112","action_sequence_id":23,"span_id":"23:1.0","span_name":"create_openai_client","parent_span_id":"23:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:31.134764","action_sequence_id":23,"span_id":"23:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:31.134886","action_sequence_id":23,"span_id":"23:1.1","span_name":"query_openai","parent_span_id":"23:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.449079","action_sequence_id":23,"span_id":"23:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.449170","action_sequence_id":23,"span_id":"23:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.449213","action_sequence_id":23,"span_id":"23:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.449262","action_sequence_id":23,"span_id":"23:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:33.449550","action":"answer_question","result":{"response":{"content":"Aaron Burr was a historical figure, known for being the third Vice President of the United States. Comparing him to an animal like a giraffe is subjective, as it would depend on the specific traits or characteristics you associate with both Burr and giraffes. Generally, giraffes are known for their height, gracefulness, and often stand out due to their unique appearance, while Aaron Burr is remembered for his political career and his role in the infamous duel with Alexander Hamilton. So, the comparison between Aaron Burr and a giraffe may not be immediate, but it could be interesting to explore further based on personal interpretations.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":23,"safe":true,"mode":"answer_question","response":{"content":"Aaron Burr was a historical figure, known for being the third Vice President of the United States. Comparing him to an animal like a giraffe is subjective, as it would depend on the specific traits or characteristics you associate with both Burr and giraffes. Generally, giraffes are known for their height, gracefulness, and often stand out due to their unique appearance, while Aaron Burr is remembered for his political career and his role in the infamous duel with Alexander Hamilton. So, the comparison between Aaron Burr and a giraffe may not be immediate, but it could be interesting to explore further based on personal interpretations.","type":"text","role":"assistant"}},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:33.449814","action":"response","inputs":{},"sequence_id":24}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.449888","action_sequence_id":24,"span_id":"24:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.449933","action_sequence_id":24,"span_id":"24:0.0","span_name":"safe","parent_span_id":"24:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.449966","action_sequence_id":24,"span_id":"24:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.449993","action_sequence_id":24,"span_id":"24:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:33.450224","action":"response","result":{"chat_item":{"content":"Aaron Burr was a historical figure, known for being the third Vice President of the United States. Comparing him to an animal like a giraffe is subjective, as it would depend on the specific traits or characteristics you associate with both Burr and giraffes. Generally, giraffes are known for their height, gracefulness, and often stand out due to their unique appearance, while Aaron Burr is remembered for his political career and his role in the infamous duel with Alexander Hamilton. So, the comparison between Aaron Burr and a giraffe may not be immediate, but it could be interesting to explore further based on personal interpretations.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ReRHRDsKfUOVCTfdiFUNBmQi.png?st=2024-03-05T04%3A05%3A24Z&se=2024-03-05T06%3A05%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T15%3A24%3A43Z&ske=2024-03-05T15%3A24%3A43Z&sks=b&skv=2021-08-06&sig=l5pK83uN4yLwqF0YtlVoTqjhmY3B5oO8H%2BB3ONxQaXE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to query the internet in real-time to provide the height of a giraffe. You may need to use a programming language and relevant libraries to write a function that queries a specific website or API that provides information on giraffe height. If you have any other questions or need assistance with coding, feel free to ask!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe typically stands between 5.9 to 6.6 meters (16 to 18 feet) tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm unable to physically build a giraffe for you, but I can provide you with instructions on how to create a giraffe using materials like paper, clay, or other craft supplies. Just let me know if you would like me to provide you with step-by-step instructions for a DIY giraffe project!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"},{"content":"Aaron Burr was a historical figure, known for being the third Vice President of the United States. Comparing him to an animal like a giraffe is subjective, as it would depend on the specific traits or characteristics you associate with both Burr and giraffes. Generally, giraffes are known for their height, gracefulness, and often stand out due to their unique appearance, while Aaron Burr is remembered for his political career and his role in the infamous duel with Alexander Hamilton. So, the comparison between Aaron Burr and a giraffe may not be immediate, but it could be interesting to explore further based on personal interpretations.","type":"text","role":"assistant"}],"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"response","__SEQUENCE_ID":24,"safe":true,"mode":"answer_question","response":{"content":"Aaron Burr was a historical figure, known for being the third Vice President of the United States. Comparing him to an animal like a giraffe is subjective, as it would depend on the specific traits or characteristics you associate with both Burr and giraffes. Generally, giraffes are known for their height, gracefulness, and often stand out due to their unique appearance, while Aaron Burr is remembered for his political career and his role in the infamous duel with Alexander Hamilton. So, the comparison between Aaron Burr and a giraffe may not be immediate, but it could be interesting to explore further based on personal interpretations.","type":"text","role":"assistant"}},"sequence_id":24}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/graph.json
new file mode 100644
index 00000000..cdbd9153
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/graph.json
@@ -0,0 +1 @@
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/log.jsonl
new file mode 100644
index 00000000..d6964cb7
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/log.jsonl
@@ -0,0 +1,138 @@
+{"type":"begin_entry","start_time":"2024-03-04T21:05:33.466179","action":"prompt","inputs":{"prompt":"What is the capital of France?"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.466315","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.466352","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:33.466433","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the capital of France?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:33.466509","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.466546","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.466567","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:33.466621","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:33.466685","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.466718","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.466739","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.466757","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.466776","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:33.474988","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:33.475077","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.223412","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.223511","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.223562","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.223614","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:34.223789","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"answer_question"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:34.224092","action":"answer_question","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.224184","action_sequence_id":3,"span_id":"3:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.224228","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.224265","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.224307","action_sequence_id":3,"span_id":"3:1.0","span_name":"create_openai_client","parent_span_id":"3:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.251513","action_sequence_id":3,"span_id":"3:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.251611","action_sequence_id":3,"span_id":"3:1.1","span_name":"query_openai","parent_span_id":"3:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.620623","action_sequence_id":3,"span_id":"3:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.620779","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.620827","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.620884","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:34.621053","action":"answer_question","result":{"response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":3,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:34.621247","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.621326","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.621364","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.621396","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.621423","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:34.621548","action":"response","result":{"chat_item":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"}],"prompt":"What is the capital of France?","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:34.621739","action":"prompt","inputs":{"prompt":"Please draw a map of the world"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.621804","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.621837","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:34.623204","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a map of the world","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:34.623442","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.623524","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.623602","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:34.623735","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:34.623874","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.623939","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.623977","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.624008","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.624043","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:34.637992","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:34.638112","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:35.085507","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:35.085870","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:35.086549","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:35.086645","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:35.087119","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_image"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:35.088162","action":"generate_image","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-03-04T21:05:35.088292","action_sequence_id":8,"span_id":"8:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:35.111010","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:35.111200","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.060000","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.062648","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.063207","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:44.063728","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":8,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:44.064345","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.064484","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.064540","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.064685","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.064995","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:44.065199","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"}],"prompt":"Please draw a map of the world","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:44.065580","action":"prompt","inputs":{"prompt":"Please write code to compute the circumpherence of the earth"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.065673","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.065784","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:44.067339","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:44.071555","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.071684","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.071738","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:44.071949","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:44.072110","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.072180","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.072224","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.072257","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.072293","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.091291","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.091425","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.719040","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.725176","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.725469","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.725564","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:44.725885","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"generate_code"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:44.726307","action":"generate_code","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.726458","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.726645","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.730532","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.730669","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:44.752977","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:44.753151","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.607137","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.607811","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.607894","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.608194","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:47.608624","action":"generate_code","result":{"response":{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":13,"safe":true,"mode":"generate_code","response":{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:47.609007","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.609111","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.609153","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.609190","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.609219","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:47.609436","action":"response","result":{"chat_item":{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"}],"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"generate_code","response":{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:47.609736","action":"prompt","inputs":{"prompt":"Geography! Geography! Geography!"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.609825","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.609994","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:47.610261","action":"prompt","result":{"chat_item":{"role":"user","content":"Geography! Geography! Geography!","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:47.610460","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.610526","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.610563","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:47.610736","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:47.610917","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.610991","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.611052","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.611088","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.611125","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:47.632549","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:47.632676","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.248196","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.248302","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.248345","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.248391","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:48.248613","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"unknown"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:48.248926","action":"prompt_for_more","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:05:48.249169","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt_for_more","__SEQUENCE_ID":18,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:48.249629","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.249705","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.249794","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.249838","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.249889","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:48.250346","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-PnIYgW41YfJkB6xI3ewDkr0V.png?st=2024-03-05T04%3A05%3A44Z&se=2024-03-05T06%3A05%3A44Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T13%3A23%3A02Z&ske=2024-03-05T13%3A23%3A02Z&sks=b&skv=2021-08-06&sig=u607sur3BwQ5LRz09wdHDfy9e5Gv8yGy2aapGgPo4Vs%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we would typically use the formula:\n\nCircumference = 2 * π * radius\n\nThe Earth's equatorial radius is approximately 6,378.1 kilometers (mean radius is around 6,371 km). We'll use the equatorial radius for this calculation.\n\nHere is an example in Python:\n\n```python\nimport math\n\nequatorial_radius_km = 6378.1\ncircumference = 2 * math.pi * equatorial_radius_km\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, you should get an output similar to:\n\n```\nThe circumference of the Earth is approximately 40074.32 kilometers.\n```","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/graph.json
new file mode 100644
index 00000000..cdbd9153
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/graph.json
@@ -0,0 +1 @@
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/log.jsonl
new file mode 100644
index 00000000..946540ca
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/log.jsonl
@@ -0,0 +1,144 @@
+{"type":"begin_entry","start_time":"2024-03-04T21:05:48.261198","action":"prompt","inputs":{"prompt":"Please draw a free-body diagram of a block on a ramp"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.261399","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.261457","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:48.261598","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:48.261744","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.261963","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.262012","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:48.262117","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:48.262242","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.262311","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.262353","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.262390","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.262431","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.273747","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.273847","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.659559","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.659699","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.659746","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.659800","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:48.659960","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:48.660157","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.660242","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:48.676466","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:48.676690","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.685556","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.685899","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.686001","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:57.686267","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":3,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:57.686696","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.686809","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.686856","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.686899","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.686931","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:57.687071","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"}],"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:57.687417","action":"prompt","inputs":{"prompt":"Please write code to compute the force of gravity on the moon"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.687495","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.687533","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:57.687709","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:57.687840","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.687902","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.687938","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:57.688055","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:57.688230","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.688326","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.688366","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.688397","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.688450","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:57.709352","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:57.709540","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:58.168313","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:05:58.168726","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:58.168832","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:05:58.168927","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:05:58.169253","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:05:58.169628","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-03-04T21:05:58.169757","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:58.169810","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:58.169852","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:05:58.169899","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:05:58.189104","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:05:58.189277","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.019895","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.020750","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.020835","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.020936","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:03.021275","action":"generate_code","result":{"response":{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":8,"safe":true,"mode":"generate_code","response":{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:03.027024","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.027223","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.027293","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.027440","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.027481","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:03.027783","action":"response","result":{"chat_item":{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"}],"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_code","response":{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:03.028102","action":"prompt","inputs":{"prompt":"What is the force of gravity on the moon?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.028176","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.028216","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:03.029416","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:03.029861","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.029954","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.030000","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:03.030278","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:03.030655","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.030789","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.030855","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.030896","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.030939","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.047582","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.047725","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.586914","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.587140","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.587545","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.587651","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:03.588066","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:03.588682","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.588849","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.588916","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.588966","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.589020","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:03.608255","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:03.608441","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.425948","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.426314","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.426413","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.426533","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:07.426981","action":"answer_question","result":{"response":{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:07.427484","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.427622","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.427683","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.427738","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.427782","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:07.428060","action":"response","result":{"chat_item":{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"}],"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:07.428462","action":"prompt","inputs":{"prompt":"Please build me a block on a ramp"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.428568","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.428629","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:07.429022","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:07.431557","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.434527","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.435032","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:07.435296","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:07.435665","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.435737","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.435797","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.435830","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.435865","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.452636","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.452821","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.913509","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.913818","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.913948","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.914028","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:07.914392","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"generate_image"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:07.916918","action":"generate_image","inputs":{},"sequence_id":18}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.917269","action_sequence_id":18,"span_id":"18:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:07.937147","action_sequence_id":18,"span_id":"18:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:07.937345","action_sequence_id":18,"span_id":"18:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.509720","action_sequence_id":18,"span_id":"18:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.512199","action_sequence_id":18,"span_id":"18:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.512490","action_sequence_id":18,"span_id":"18:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:18.513302","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jIQCxaG3CvPzAf8qPhartOMp.png?st=2024-03-05T04%3A06%3A18Z&se=2024-03-05T06%3A06%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A51%3A29Z&ske=2024-03-05T14%3A51%3A29Z&sks=b&skv=2021-08-06&sig=grndtMb4iticZhn2rkvjyNB%2ByERvXFmEsx8%2BXPTb0Vg%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":18,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jIQCxaG3CvPzAf8qPhartOMp.png?st=2024-03-05T04%3A06%3A18Z&se=2024-03-05T06%3A06%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A51%3A29Z&ske=2024-03-05T14%3A51%3A29Z&sks=b&skv=2021-08-06&sig=grndtMb4iticZhn2rkvjyNB%2ByERvXFmEsx8%2BXPTb0Vg%3D","type":"image","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:18.514120","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.514254","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.514312","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.514441","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.514493","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:18.514762","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jIQCxaG3CvPzAf8qPhartOMp.png?st=2024-03-05T04%3A06%3A18Z&se=2024-03-05T06%3A06%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A51%3A29Z&ske=2024-03-05T14%3A51%3A29Z&sks=b&skv=2021-08-06&sig=grndtMb4iticZhn2rkvjyNB%2ByERvXFmEsx8%2BXPTb0Vg%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HnKljln0zSHYuAFsmZWM9Gaw.png?st=2024-03-05T04%3A05%3A57Z&se=2024-03-05T06%3A05%3A57Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A12%3A07Z&ske=2024-03-05T14%3A12%3A07Z&sks=b&skv=2021-08-06&sig=VtCwiShNAnww3bMNnZrYuT4fTd9JsHw7hX4/SMvKhsQ%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure! The formula to compute the force of gravity is:\n\nF = G * (m1 * m2) / r^2\n\nWhere:\n- F is the force of gravity\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 and m2 are the masses of the two objects (Earth and the moon in this case)\n- r is the distance between the centers of the two objects\n\nThe mass of the moon is approximately 7.34767309 × 10^22 kg and the distance between the center of the Earth and the center of the moon is approximately 384,400 km (3.844 × 10^8 meters).\n\nHere is the Python code to compute the force of gravity on the moon:\n\n```python\nG = 6.67430 * 10**-11\nm1 = 5.972 * 10**24 # Mass of Earth in kg\nm2 = 7.34767309 * 10**22 # Mass of the moon in kg\nr = 3.844 * 10**8 # Distance between Earth and moon in meters\n\nF_gravity = G * (m1 * m2) / r**2\nprint(\"Force of gravity on the moon:\", F_gravity, \"N\")\n```\n\nWhen you run this code, it will output the force of gravity on the moon in Newtons (N).","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using the formula:\n\nF = G * (m1 * m2) / r^2\n\nwhere:\n- G is the gravitational constant (6.67430 x 10^-11 m^3 kg^-1 s^-2)\n- m1 is the mass of the Earth (5.972 x 10^24 kg)\n- m2 is the mass of the moon (7.34767309 x 10^22 kg)\n- r is the distance between the center of the Earth and the center of the moon (3.844 x 10^8 meters)\n\nPlugging these values into the formula, we can calculate the force of gravity on the moon:\n\nF = (6.67430 x 10^-11) * (5.972 x 10^24) * (7.34767309 x 10^22) / (3.844 x 10^8)^2\n\nF ≈ 1.982 x 10^20 N\n\nTherefore, the force of gravity on the moon is approximately 1.982 x 10^20 Newtons.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jIQCxaG3CvPzAf8qPhartOMp.png?st=2024-03-05T04%3A06%3A18Z&se=2024-03-05T06%3A06%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A51%3A29Z&ske=2024-03-05T14%3A51%3A29Z&sks=b&skv=2021-08-06&sig=grndtMb4iticZhn2rkvjyNB%2ByERvXFmEsx8%2BXPTb0Vg%3D","type":"image","role":"assistant"}],"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-jIQCxaG3CvPzAf8qPhartOMp.png?st=2024-03-05T04%3A06%3A18Z&se=2024-03-05T06%3A06%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-04T14%3A51%3A29Z&ske=2024-03-05T14%3A51%3A29Z&sks=b&skv=2021-08-06&sig=grndtMb4iticZhn2rkvjyNB%2ByERvXFmEsx8%2BXPTb0Vg%3D","type":"image","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/graph.json
new file mode 100644
index 00000000..cdbd9153
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/graph.json
@@ -0,0 +1 @@
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/log.jsonl
new file mode 100644
index 00000000..87866bc9
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/log.jsonl
@@ -0,0 +1,110 @@
+{"type":"begin_entry","start_time":"2024-03-04T21:06:18.538049","action":"prompt","inputs":{"prompt":"Please draw a picture of a philosopher"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.538203","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.538247","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:18.538347","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:18.538431","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.538462","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.538482","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:18.538527","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:18.538587","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.538615","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.538634","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.538654","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.538673","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:18.546223","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:18.546272","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:19.320059","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:19.320398","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:19.320465","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:19.320554","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:19.320810","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:19.321107","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-03-04T21:06:19.321215","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:19.339504","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:19.339703","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.517658","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.519133","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.519355","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:29.520804","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"generate_image","__SEQUENCE_ID":3,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:29.522423","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.522668","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.522759","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.522823","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.522878","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:29.523267","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"}],"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:29.532678","action":"prompt","inputs":{"prompt":"Please write code to compute the meaning of life (hint, its 42)"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.533093","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.533158","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:29.533407","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:29.533577","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.534061","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.534099","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:29.534223","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:29.534380","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.534448","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.534489","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.534520","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.534563","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:29.564564","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:29.564657","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:30.639584","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:30.639925","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:30.639998","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:30.640087","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:30.640416","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:30.640785","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-03-04T21:06:30.640935","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:30.640985","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:30.641023","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:30.641067","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:30.659284","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:30.659469","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.293376","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.293748","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.293833","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.293940","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:32.294334","action":"generate_code","result":{"response":{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":8,"safe":true,"mode":"generate_code","response":{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:32.295298","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.295468","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.295543","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.295600","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.295646","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:32.295905","action":"response","result":{"chat_item":{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}],"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_code","response":{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:32.302248","action":"prompt","inputs":{"prompt":"What is the meaning of life?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.302549","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.302621","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:32.303147","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the meaning of life?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:32.303516","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.303591","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.303632","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:32.303777","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:32.303936","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.304199","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.304249","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.304531","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.304571","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:32.347032","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:32.347151","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:33.225485","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:33.225641","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:33.225726","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:33.225815","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:33.226194","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:33.226680","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-03-04T21:06:33.226885","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:33.226974","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:33.227046","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:33.227119","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:33.247043","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:33.247202","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.539367","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.539819","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.539917","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.540029","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:35.540465","action":"answer_question","result":{"response":{"content":"The meaning of life is a philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals have proposed various interpretations and explanations for the meaning of life. Ultimately, the answer to this question may vary depending on personal beliefs, values, and perspectives. Some believe that the meaning of life is to seek happiness, fulfill one's potential, contribute to society, find spiritual enlightenment, or simply to experience and appreciate the world around us.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals have proposed various interpretations and explanations for the meaning of life. Ultimately, the answer to this question may vary depending on personal beliefs, values, and perspectives. Some believe that the meaning of life is to seek happiness, fulfill one's potential, contribute to society, find spiritual enlightenment, or simply to experience and appreciate the world around us.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:35.540943","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.541089","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.541384","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.541442","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.541485","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:35.548432","action":"response","result":{"chat_item":{"content":"The meaning of life is a philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals have proposed various interpretations and explanations for the meaning of life. Ultimately, the answer to this question may vary depending on personal beliefs, values, and perspectives. Some believe that the meaning of life is to seek happiness, fulfill one's potential, contribute to society, find spiritual enlightenment, or simply to experience and appreciate the world around us.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-t8wiZ8v848kGAWXVsU0slHPq.png?st=2024-03-05T04%3A06%3A29Z&se=2024-03-05T06%3A06%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-05T03%3A01%3A03Z&ske=2024-03-06T03%3A01%3A03Z&sks=b&skv=2021-08-06&sig=pIGKJz0TltW/jSju4V0WSP3cvw0aNwZ5HqnpioXFeWE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code snippet to compute the meaning of life:\n\n```python\nmeaning_of_life = 42\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"},{"content":"The meaning of life is a philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals have proposed various interpretations and explanations for the meaning of life. Ultimately, the answer to this question may vary depending on personal beliefs, values, and perspectives. Some believe that the meaning of life is to seek happiness, fulfill one's potential, contribute to society, find spiritual enlightenment, or simply to experience and appreciate the world around us.","type":"text","role":"assistant"}],"prompt":"What is the meaning of life?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals have proposed various interpretations and explanations for the meaning of life. Ultimately, the answer to this question may vary depending on personal beliefs, values, and perspectives. Some believe that the meaning of life is to seek happiness, fulfill one's potential, contribute to society, find spiritual enlightenment, or simply to experience and appreciate the world around us.","type":"text","role":"assistant"}},"sequence_id":14}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/graph.json
new file mode 100644
index 00000000..cdbd9153
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/graph.json
@@ -0,0 +1 @@
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/log.jsonl
new file mode 100644
index 00000000..77d903cb
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/log.jsonl
@@ -0,0 +1,132 @@
+{"type":"begin_entry","start_time":"2024-03-04T21:06:35.556671","action":"prompt","inputs":{"prompt":"Please draw a picture of a good joke joke"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.556870","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.556925","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:35.557053","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:35.557178","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.557352","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.557402","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:35.557495","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:35.557602","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.557653","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.557685","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.557711","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.557744","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:35.568941","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:35.569073","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.091293","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.091719","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.091839","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.091978","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:36.092361","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":2,"safe":true,"mode":"unknown"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:36.093123","action":"prompt_for_more","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-03-04T21:06:36.094590","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"prompt_for_more","__SEQUENCE_ID":3,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:36.096634","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.097362","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.097444","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.098002","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.098071","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:36.098259","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"Please draw a picture of a good joke joke","__PRIOR_STEP":"response","__SEQUENCE_ID":4,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:36.098553","action":"prompt","inputs":{"prompt":"Please write code for an interactive knock-knock joke"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.098629","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.098671","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:36.099460","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"prompt","__SEQUENCE_ID":5},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:36.100151","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.100588","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.100636","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:36.100972","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":6,"safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:36.101115","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.101178","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.101218","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.101298","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.101338","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.116252","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.116421","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.569492","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.569595","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.569620","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.569670","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:36.569776","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":7,"safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:36.569893","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.569935","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.569964","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.569978","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.569993","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:36.576941","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:36.577002","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.588562","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.588728","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.588797","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.588868","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:38.590676","action":"generate_code","result":{"response":{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"generate_code","__SEQUENCE_ID":8,"safe":true,"mode":"generate_code","response":{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:38.598087","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.598531","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.598595","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.598636","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.598670","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:38.598851","action":"response","result":{"chat_item":{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"}],"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"response","__SEQUENCE_ID":9,"safe":true,"mode":"generate_code","response":{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:38.599312","action":"prompt","inputs":{"prompt":"What is a good joke?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.599386","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.599426","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:38.599647","action":"prompt","result":{"chat_item":{"role":"user","content":"What is a good joke?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"prompt","__SEQUENCE_ID":10},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:38.599819","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.599919","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.599964","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:38.600129","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":11,"safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:38.600308","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.600378","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.600423","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.600458","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.600495","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:38.615475","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:38.615736","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:39.444610","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:39.444899","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:39.444976","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:39.445062","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:39.445426","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":12,"safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:39.445839","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-03-04T21:06:39.445965","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:39.446071","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:39.446134","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:39.446190","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:39.467522","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:39.467669","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.679390","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.679656","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.679709","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.679765","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:40.679989","action":"answer_question","result":{"response":{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"}],"prompt":"What is a good joke?","__PRIOR_STEP":"answer_question","__SEQUENCE_ID":13,"safe":true,"mode":"answer_question","response":{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:40.680249","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.680332","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.680374","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.680410","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.680440","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:40.680619","action":"response","result":{"chat_item":{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"}],"prompt":"What is a good joke?","__PRIOR_STEP":"response","__SEQUENCE_ID":14,"safe":true,"mode":"answer_question","response":{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:40.681740","action":"prompt","inputs":{"prompt":"The chicken crossed the road because it was a free-range chicken"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.682312","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.682474","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:40.682824","action":"prompt","result":{"chat_item":{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt","__SEQUENCE_ID":15},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:40.683130","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.683236","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.683281","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:40.683479","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":16,"safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:40.683694","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.683776","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.683821","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.683891","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.683929","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:40.702882","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:40.703002","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.090419","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.090545","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.090592","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.090645","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.090886","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"decide_mode","__SEQUENCE_ID":17,"safe":true,"mode":"unknown"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.091125","action":"prompt_for_more","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.091373","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt_for_more","__SEQUENCE_ID":18,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.091596","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.091672","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.091715","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.091751","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.091781","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.091992","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's an example of a simple interactive knock-knock joke in Python:\n\n```python\ndef knock_knock():\n input(\"Knock, knock! Who's there? Press Enter to find out.\")\n print(\"Tank.\")\n input(\"Tank who? Press Enter for the punchline.\")\n print(\"You're welcome!\")\n \nknock_knock()\n```\n\nWhen you run this code, it will prompt the user to interact by pressing Enter at the appropriate times to deliver the joke. Feel free to customize the joke or add more complexity to the code if you like!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Sure, here is a classic joke:\n\nWhy couldn't the bicycle find its way home?\n\nBecause it lost its bearings!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"response","__SEQUENCE_ID":19,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/graph.json
new file mode 100644
index 00000000..cdbd9153
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/graph.json
@@ -0,0 +1 @@
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/log.jsonl
new file mode 100644
index 00000000..9edd00b0
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/log.jsonl
@@ -0,0 +1,18 @@
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.102125","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.102282","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.102341","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.102476","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.102611","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.102680","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.102720","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.102820","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":1,"safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-03-04T21:06:41.102942","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.103009","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.103050","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.103087","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.103127","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.112596","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-03-04T21:06:41.112675","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.406525","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-03-04T21:06:41.406594","action_sequence_id":2,"span_id":"2:1"}
+{"type":"end_entry","end_time":"2024-03-04T21:06:41.408735","action":"decide_mode","result":null,"exception":"Traceback (most recent call last):\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 290, in _step\n raise e\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 280, in _step\n result, new_state = _run_single_step_action(next_action, self._state, inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 180, in _run_single_step_action\n result, new_state = action.run_and_update(state, **inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/action.py\", line 409, in run_and_update\n return self._fn(state, **self._bound_params, **run_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/examples/gpt/application_with_traces.py\", line 56, in choose_mode\n result = client.chat.completions.create(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_utils/_utils.py\", line 271, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/resources/chat/completions.py\", line 659, in create\n return self._post(\n ^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 1180, in post\n return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 869, in request\n return self._request(\n ^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 960, in _request\n raise self._make_status_error_from_response(err.response) from None\nopenai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: fake. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}\n","state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","__SEQUENCE_ID":2,"safe":true},"sequence_id":2}