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.

Adds demo data to server + ignores from pre-commit-config.yaml

elijahbenizzy7215e0d1103d
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 462d0e04..d9cb3b61 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,7 +4,7 @@
# $ cd /PATH/TO/REPO
# $ pre-commit install
-exclude: '^telemetry/ui'
+exclude: '^telemetry/ui|^burr/tracking/server/demo_data(/|$)'
repos:
- repo: https://github.com/ambv/black
rev: 23.11.0
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
new file mode 100644
index 00000000..a2c5f860
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/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) -> 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"}]}
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
new file mode 100644
index 00000000..34112d6f
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl
@@ -0,0 +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"}}}
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
new file mode 100644
index 00000000..a2c5f860
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/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) -> 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"}]}
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
new file mode 100644
index 00000000..db4b9509
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl
@@ -0,0 +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"}}}
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
new file mode 100644
index 00000000..a2c5f860
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/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) -> 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"}]}
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
new file mode 100644
index 00000000..eb39bcd4
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl
@@ -0,0 +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"}}}
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
new file mode 100644
index 00000000..a2c5f860
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/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) -> 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"}]}
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
new file mode 100644
index 00000000..e99d59ce
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl
@@ -0,0 +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"}}}
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
new file mode 100644
index 00000000..a2c5f860
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/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) -> 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"}]}
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
new file mode 100644
index 00000000..a6dd4067
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl
@@ -0,0 +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"}}}
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
new file mode 100644
index 00000000..a2c5f860
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/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) -> 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"}]}
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
new file mode 100644
index 00000000..45a2271a
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl
@@ -0,0 +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}}
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
new file mode 100644
index 00000000..4aae6ae4
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..7a94f740
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..4aae6ae4
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..6796f012
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..4aae6ae4
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..a5f01094
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..4aae6ae4
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..94fd87e7
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..a3ee5acc
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..6ebd864b
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..c3eeaab5
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..ccc7002b
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..d765300d
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..84aa1e27
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..510e7e4e
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..dd9c40d8
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl
@@ -0,0 +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"}}
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
new file mode 100644
index 00000000..1d0f3b28
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json
@@ -0,0 +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"}]}
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
new file mode 100644
index 00000000..c7bf81b6
--- /dev/null
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl
@@ -0,0 +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"}}