Skip to content

armgit / burr

Public Imported from GitHub
0

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

Updates demo data

elijahbenizzy57194eba503e
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json
index 1a553976..ca2d0488 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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 = copy.deepcopy(state[\"chat_history\"])\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 = copy.deepcopy(state[\"chat_history\"])\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt"]}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}, {"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", "inputs": []}, {"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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": []}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl
index 9745f9ae..e66f7eac 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-1-giraffe/log.jsonl
@@ -1,60 +1,60 @@
-{"type":"begin_entry","start_time":"2024-03-18T16:50:49.313212","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T16:50:49.324918","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:49.327087","action":"check_openai_key","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T16:50:49.327171","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:49.327236","action":"check_safety","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T16:50:49.327290","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:49.327335","action":"decide_mode","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T16:50:49.962243","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:49.962835","action":"generate_image","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T16:50:58.981005","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":4,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:58.982782","action":"response","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T16:50:58.983046","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"}},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:58.984391","action":"prompt","inputs":{"prompt":"Please write a function that queries the internet for the height of a giraffe"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T16:50:58.984840","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:58.985057","action":"check_openai_key","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T16:50:58.985187","action":"check_openai_key","result":{"has_openai_key":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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:58.985281","action":"check_safety","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T16:50:58.985368","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:58.985458","action":"decide_mode","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T16:50:59.408017","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T16:50:59.409162","action":"generate_code","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T16:51:00.849809","action":"generate_code","result":{"response":{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"}},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:00.850230","action":"response","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T16:51:00.850772","action":"response","result":{"chat_item":{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"}},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:00.859419","action":"prompt","inputs":{"prompt":"OK, just tell me, how tall is a giraffe?"},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T16:51:00.859697","action":"prompt","result":{"chat_item":{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:00.859977","action":"check_openai_key","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T16:51:00.860211","action":"check_openai_key","result":{"has_openai_key":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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:00.860365","action":"check_safety","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T16:51:00.860574","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:00.860737","action":"decide_mode","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T16:51:01.426403","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:01.426763","action":"answer_question","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T16:51:02.561721","action":"answer_question","result":{"response":{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"}},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:02.562023","action":"response","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T16:51:02.562250","action":"response","result":{"chat_item":{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"}},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:02.577824","action":"prompt","inputs":{"prompt":"Please build me a giraffe"},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T16:51:02.578364","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Please build me a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:02.578623","action":"check_openai_key","inputs":{},"sequence_id":19}
-{"type":"end_entry","end_time":"2024-03-18T16:51:02.578810","action":"check_openai_key","result":{"has_openai_key":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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":19,"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:02.578961","action":"check_safety","inputs":{},"sequence_id":20}
-{"type":"end_entry","end_time":"2024-03-18T16:51:02.579116","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":20,"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:02.579223","action":"decide_mode","inputs":{},"sequence_id":21}
-{"type":"end_entry","end_time":"2024-03-18T16:51:03.369492","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":21,"prompt":"Please build me a giraffe","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:03.376860","action":"generate_code","inputs":{},"sequence_id":22}
-{"type":"end_entry","end_time":"2024-03-18T16:51:04.540742","action":"generate_code","result":{"response":{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":22,"prompt":"Please build me a giraffe","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"}},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:04.541138","action":"response","inputs":{},"sequence_id":23}
-{"type":"end_entry","end_time":"2024-03-18T16:51:04.542154","action":"response","result":{"chat_item":{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"Please build me a giraffe","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"}},"sequence_id":23}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:04.558569","action":"prompt","inputs":{"prompt":"If Aaron burr were an animal, would he be a giraffe?"},"sequence_id":24}
-{"type":"end_entry","end_time":"2024-03-18T16:51:04.558827","action":"prompt","result":{"chat_item":{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":24,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":24}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:04.558919","action":"check_openai_key","inputs":{},"sequence_id":25}
-{"type":"end_entry","end_time":"2024-03-18T16:51:04.559070","action":"check_openai_key","result":{"has_openai_key":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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":25,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":25}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:04.559204","action":"check_safety","inputs":{},"sequence_id":26}
-{"type":"end_entry","end_time":"2024-03-18T16:51:04.559326","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":26,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":26}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:04.559406","action":"decide_mode","inputs":{},"sequence_id":27}
-{"type":"end_entry","end_time":"2024-03-18T16:51:05.562795","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":27,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":27}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:05.567698","action":"answer_question","inputs":{},"sequence_id":28}
-{"type":"end_entry","end_time":"2024-03-18T16:51:07.057028","action":"answer_question","result":{"response":{"content":"Comparing historical figures to animals is a subjective and metaphorical exercise, and Aaron Burr, the third Vice President of the United States, is often regarded as a complex and enigmatic character in American history. While each person may have their own interpretation, it is not common to associate Aaron Burr with a giraffe in any meaningful way.","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":28,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"Comparing historical figures to animals is a subjective and metaphorical exercise, and Aaron Burr, the third Vice President of the United States, is often regarded as a complex and enigmatic character in American history. While each person may have their own interpretation, it is not common to associate Aaron Burr with a giraffe in any meaningful way.","type":"text","role":"assistant"}},"sequence_id":28}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:07.060635","action":"response","inputs":{},"sequence_id":29}
-{"type":"end_entry","end_time":"2024-03-18T16:51:07.061862","action":"response","result":{"chat_item":{"content":"Comparing historical figures to animals is a subjective and metaphorical exercise, and Aaron Burr, the third Vice President of the United States, is often regarded as a complex and enigmatic character in American history. While each person may have their own interpretation, it is not common to associate Aaron Burr with a giraffe in any meaningful way.","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-o0mHmAp8Eqg8vRW50b2H4yYt.png?st=2024-03-18T22%3A50%3A58Z&se=2024-03-19T00%3A50%3A58Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A49%3A14Z&ske=2024-03-19T23%3A49%3A14Z&sks=b&skv=2021-08-06&sig=zSvCwuiJ3i%2BLsxXNIgs7QH7UjaHM4G8hNaKC2QV9t3Y%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but as an AI text-based model, I do not have the capability to query the internet in real-time for specific information such as the height of a giraffe. However, you can easily find this information by conducting a quick search on a search engine like Google or by visiting reputable websites that provide information on giraffes.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.5 to 6 meters (18 to 20 feet) tall, with the males being slightly taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"I can guide you in drawing a giraffe or provide you with some facts about giraffes if you'd like. However, physically building a giraffe is not possible through text-based communication. Let me know how else I can assist you!","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"},{"content":"Comparing historical figures to animals is a subjective and metaphorical exercise, and Aaron Burr, the third Vice President of the United States, is often regarded as a complex and enigmatic character in American history. While each person may have their own interpretation, it is not common to associate Aaron Burr with a giraffe in any meaningful way.","type":"text","role":"assistant"}],"__SEQUENCE_ID":29,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"Comparing historical figures to animals is a subjective and metaphorical exercise, and Aaron Burr, the third Vice President of the United States, is often regarded as a complex and enigmatic character in American history. While each person may have their own interpretation, it is not common to associate Aaron Burr with a giraffe in any meaningful way.","type":"text","role":"assistant"}},"sequence_id":29}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:33.493147","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:51:33.493292","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:33.493366","action":"check_openai_key","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:51:33.493428","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:33.493483","action":"check_safety","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:51:33.493535","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:33.493592","action":"decide_mode","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:51:34.455643","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:34.455803","action":"generate_image","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:51:43.712649","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":4,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:43.713394","action":"response","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:51:43.713641","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"}},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:43.713972","action":"prompt","inputs":{"prompt":"Please write a function that queries the internet for the height of a giraffe"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:51:43.714253","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:43.714455","action":"check_openai_key","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:51:43.714651","action":"check_openai_key","result":{"has_openai_key":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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:43.714837","action":"check_safety","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-05-04T22:51:43.715018","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:43.715207","action":"decide_mode","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-05-04T22:51:44.323334","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:44.323679","action":"generate_code","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-05-04T22:51:48.331791","action":"generate_code","result":{"response":{"content":"I'm sorry, but I am not able to directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I am not able to directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"}},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:48.332212","action":"response","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-05-04T22:51:48.332418","action":"response","result":{"chat_item":{"content":"I'm sorry, but I am not able to directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I am not able to directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"}},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:48.332665","action":"prompt","inputs":{"prompt":"OK, just tell me, how tall is a giraffe?"},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-05-04T22:51:48.332914","action":"prompt","result":{"chat_item":{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:48.333078","action":"check_openai_key","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-05-04T22:51:48.333253","action":"check_openai_key","result":{"has_openai_key":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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:48.333408","action":"check_safety","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-05-04T22:51:48.333579","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:48.333750","action":"decide_mode","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-05-04T22:51:48.843691","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:48.844358","action":"answer_question","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-05-04T22:51:49.931611","action":"answer_question","result":{"response":{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"}},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:49.932323","action":"response","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-05-04T22:51:49.932591","action":"response","result":{"chat_item":{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"}},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:49.932907","action":"prompt","inputs":{"prompt":"Please build me a giraffe"},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-05-04T22:51:49.933212","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Please build me a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:49.933391","action":"check_openai_key","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-05-04T22:51:49.933600","action":"check_openai_key","result":{"has_openai_key":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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":19,"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:49.933791","action":"check_safety","inputs":{},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-05-04T22:51:49.933990","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":20,"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:49.934181","action":"decide_mode","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-05-04T22:51:50.578850","action":"decide_mode","result":{"mode":"generate_image"},"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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":21,"prompt":"Please build me a giraffe","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:50.580731","action":"generate_image","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-05-04T22:51:59.619950","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":22,"prompt":"Please build me a giraffe","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"}},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:59.620731","action":"response","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-05-04T22:51:59.621029","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"Please build me a giraffe","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"}},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:59.621518","action":"prompt","inputs":{"prompt":"If Aaron burr were an animal, would he be a giraffe?"},"sequence_id":24}
+{"type":"end_entry","end_time":"2024-05-04T22:51:59.621860","action":"prompt","result":{"chat_item":{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":24,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":24}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:59.622133","action":"check_openai_key","inputs":{},"sequence_id":25}
+{"type":"end_entry","end_time":"2024-05-04T22:51:59.622630","action":"check_openai_key","result":{"has_openai_key":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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":25,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":25}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:59.622945","action":"check_safety","inputs":{},"sequence_id":26}
+{"type":"end_entry","end_time":"2024-05-04T22:51:59.623290","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":26,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":26}
+{"type":"begin_entry","start_time":"2024-05-04T22:51:59.623582","action":"decide_mode","inputs":{},"sequence_id":27}
+{"type":"end_entry","end_time":"2024-05-04T22:52:00.272549","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":27,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":27}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:00.273465","action":"answer_question","inputs":{},"sequence_id":28}
+{"type":"end_entry","end_time":"2024-05-04T22:52:02.562567","action":"answer_question","result":{"response":{"content":"Aaron Burr was an American politician and lawyer, known for serving as the third Vice President of the United States under President Thomas Jefferson. Comparing him to an animal like a giraffe is more of a subjective or metaphorical question rather than a factual one. Giraffes are often associated with characteristics like grace, elegance, and height. \n\nIf we were to think metaphorically, one could say that Aaron Burr's political career and actions could be likened to those of a giraffe in the sense of standing out among his peers, being ambitious, and making bold moves. However, it's important to note that this comparison is purely hypothetical and figurative.","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":28,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"Aaron Burr was an American politician and lawyer, known for serving as the third Vice President of the United States under President Thomas Jefferson. Comparing him to an animal like a giraffe is more of a subjective or metaphorical question rather than a factual one. Giraffes are often associated with characteristics like grace, elegance, and height. \n\nIf we were to think metaphorically, one could say that Aaron Burr's political career and actions could be likened to those of a giraffe in the sense of standing out among his peers, being ambitious, and making bold moves. However, it's important to note that this comparison is purely hypothetical and figurative.","type":"text","role":"assistant"}},"sequence_id":28}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:02.564286","action":"response","inputs":{},"sequence_id":29}
+{"type":"end_entry","end_time":"2024-05-04T22:52:02.566338","action":"response","result":{"chat_item":{"content":"Aaron Burr was an American politician and lawyer, known for serving as the third Vice President of the United States under President Thomas Jefferson. Comparing him to an animal like a giraffe is more of a subjective or metaphorical question rather than a factual one. Giraffes are often associated with characteristics like grace, elegance, and height. \n\nIf we were to think metaphorically, one could say that Aaron Burr's political career and actions could be likened to those of a giraffe in the sense of standing out among his peers, being ambitious, and making bold moves. However, it's important to note that this comparison is purely hypothetical and figurative.","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-0v4ZfMXNkG943lEPRYfu76iZ.png?st=2024-05-05T04%3A51%3A43Z&se=2024-05-05T06%3A51%3A43Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A20%3A16Z&ske=2024-05-05T21%3A20%3A16Z&sks=b&skv=2021-08-06&sig=zzayCjpIH%2BXAhTuenEPGBxZwHdMyONNv5KNWucX/WJY%3D","type":"image","role":"assistant"},{"role":"user","content":"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 directly query the internet or access real-time data. However, I can help you with writing a general function structure that you can use with an external library or API to query the internet for the height of a giraffe. \n\nHere is a simple example using Python and the requests library:\n\n```\nimport requests\n\ndef get_giraffe_height():\n try:\n response = requests.get('https://example.com/api/giraffe_height')\n data = response.json()\n giraffe_height = data['height']\n return giraffe_height\n except requests.exceptions.RequestException:\n print('Unable to retrieve giraffe height')\n return None\n\nheight = get_giraffe_height()\nif height:\n print(f'The height of a giraffe is {height} meters.')\n```\n\nThis is a basic structure, and you would need to replace the placeholder URL 'https://example.com/api/giraffe_height' with a real API endpoint that provides the height of a giraffe. Additionally, you may need to handle errors and edge cases based on the specific API you are using.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 5.9 to 6 meters (19.5 to 20 feet) tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dyVyVERePTFZJvXyOB4w2Tzr.png?st=2024-05-05T04%3A51%3A59Z&se=2024-05-05T06%3A51%3A59Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A52%3A44Z&ske=2024-05-05T21%3A52%3A44Z&sks=b&skv=2021-08-06&sig=FUuTOLqJVIULxt3m8yGkgnTGLRkn9h5wwAGWYppgHiE%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"},{"content":"Aaron Burr was an American politician and lawyer, known for serving as the third Vice President of the United States under President Thomas Jefferson. Comparing him to an animal like a giraffe is more of a subjective or metaphorical question rather than a factual one. Giraffes are often associated with characteristics like grace, elegance, and height. \n\nIf we were to think metaphorically, one could say that Aaron Burr's political career and actions could be likened to those of a giraffe in the sense of standing out among his peers, being ambitious, and making bold moves. However, it's important to note that this comparison is purely hypothetical and figurative.","type":"text","role":"assistant"}],"__SEQUENCE_ID":29,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"Aaron Burr was an American politician and lawyer, known for serving as the third Vice President of the United States under President Thomas Jefferson. Comparing him to an animal like a giraffe is more of a subjective or metaphorical question rather than a factual one. Giraffes are often associated with characteristics like grace, elegance, and height. \n\nIf we were to think metaphorically, one could say that Aaron Burr's political career and actions could be likened to those of a giraffe in the sense of standing out among his peers, being ambitious, and making bold moves. However, it's important to note that this comparison is purely hypothetical and figurative.","type":"text","role":"assistant"}},"sequence_id":29}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json
index 1a553976..ca2d0488 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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 = copy.deepcopy(state[\"chat_history\"])\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 = copy.deepcopy(state[\"chat_history\"])\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt"]}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}, {"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", "inputs": []}, {"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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": []}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl
index dad8d270..3766500d 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-2-geography/log.jsonl
@@ -1,48 +1,48 @@
-{"type":"begin_entry","start_time":"2024-03-18T16:51:07.078076","action":"prompt","inputs":{"prompt":"What is the capital of France?"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T16:51:07.078214","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the capital of France?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":0,"prompt":"What is the capital of France?","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:07.078301","action":"check_openai_key","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T16:51:07.078365","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":1,"prompt":"What is the capital of France?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:07.078414","action":"check_safety","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T16:51:07.078469","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":2,"prompt":"What is the capital of France?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:07.078519","action":"decide_mode","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T16:51:07.521358","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":3,"prompt":"What is the capital of France?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:07.521659","action":"answer_question","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T16:51:08.454271","action":"answer_question","result":{"response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":4,"prompt":"What is the capital of France?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:08.454588","action":"response","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T16:51:08.454776","action":"response","result":{"chat_item":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"What is the capital of France?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:08.454978","action":"prompt","inputs":{"prompt":"Please draw a map of the world"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T16:51:08.455444","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a map of the world","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":6,"prompt":"Please draw a map of the world","__PRIOR_STEP":"prompt"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:08.456235","action":"check_openai_key","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T16:51:08.456476","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":7,"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:08.456764","action":"check_safety","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T16:51:08.457517","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":8,"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:08.458818","action":"decide_mode","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T16:51:08.895812","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":9,"prompt":"Please draw a map of the world","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:08.896054","action":"generate_image","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T16:51:18.597017","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":10,"prompt":"Please draw a map of the world","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"}},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:18.597331","action":"response","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T16:51:18.597540","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please draw a map of the world","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"}},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:18.597791","action":"prompt","inputs":{"prompt":"Please write code to compute the circumpherence of the earth"},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T16:51:18.598235","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":12,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"prompt"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:18.598580","action":"check_openai_key","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T16:51:18.598782","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":13,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:18.598983","action":"check_safety","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T16:51:18.599164","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":14,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:18.600381","action":"decide_mode","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T16:51:19.366199","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":15,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:19.366575","action":"generate_code","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T16:51:21.850010","action":"generate_code","result":{"response":{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":16,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"}},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:21.850390","action":"response","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T16:51:21.851538","action":"response","result":{"chat_item":{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"}},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:21.855399","action":"prompt","inputs":{"prompt":"Geography! Geography! Geography!"},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T16:51:21.856351","action":"prompt","result":{"chat_item":{"role":"user","content":"Geography! Geography! Geography!","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt"},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:21.856601","action":"check_openai_key","inputs":{},"sequence_id":19}
-{"type":"end_entry","end_time":"2024-03-18T16:51:21.856858","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":19,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:21.857070","action":"check_safety","inputs":{},"sequence_id":20}
-{"type":"end_entry","end_time":"2024-03-18T16:51:21.857315","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":20,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:21.857502","action":"decide_mode","inputs":{},"sequence_id":21}
-{"type":"end_entry","end_time":"2024-03-18T16:51:22.290404","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":21,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"unknown"},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:22.290748","action":"prompt_for_more","inputs":{},"sequence_id":22}
-{"type":"end_entry","end_time":"2024-03-18T16:51:22.291056","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":22,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt_for_more","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:22.291428","action":"response","inputs":{},"sequence_id":23}
-{"type":"end_entry","end_time":"2024-03-18T16:51:22.291756","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-d8H3m8K97sx42HvIxJ7NcwZQ.png?st=2024-03-18T22%3A51%3A17Z&se=2024-03-19T00%3A51%3A17Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A51%3A17Z&ske=2024-03-19T23%3A51%3A17Z&sks=b&skv=2021-08-06&sig=QDu119f1p5rj/OKlfrgBqgcfmaAur6BbXoBOqZ7OSYw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple code snippet in Python to compute the circumference of the Earth given its radius:\n\n```python\nimport math\n\n# Radius of the Earth in kilometers\nearth_radius = 6371.0\n\n# Circumference of a circle = 2 * pi * radius\nearth_circumference = 2 * math.pi * earth_radius\n\nprint(f\"The circumference of the Earth is approximately {earth_circumference} kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is around 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:02.571469","action":"prompt","inputs":{"prompt":"What is the capital of France?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:52:02.571623","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the capital of France?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":0,"prompt":"What is the capital of France?","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:02.571710","action":"check_openai_key","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:52:02.571796","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":1,"prompt":"What is the capital of France?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:02.571867","action":"check_safety","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:52:02.571940","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":2,"prompt":"What is the capital of France?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:02.572008","action":"decide_mode","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:52:03.079468","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":3,"prompt":"What is the capital of France?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:03.080102","action":"answer_question","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:52:03.860555","action":"answer_question","result":{"response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":4,"prompt":"What is the capital of France?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:03.860938","action":"response","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:52:03.861236","action":"response","result":{"chat_item":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"What is the capital of France?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:03.861555","action":"prompt","inputs":{"prompt":"Please draw a map of the world"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:52:03.861978","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a map of the world","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":6,"prompt":"Please draw a map of the world","__PRIOR_STEP":"prompt"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:03.862321","action":"check_openai_key","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:52:03.862576","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":7,"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:03.863049","action":"check_safety","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-05-04T22:52:03.863292","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":8,"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:03.864121","action":"decide_mode","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-05-04T22:52:04.519325","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":9,"prompt":"Please draw a map of the world","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:04.519948","action":"generate_image","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-05-04T22:52:13.765107","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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"}],"__SEQUENCE_ID":10,"prompt":"Please draw a map of the world","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"}},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:13.766688","action":"response","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-05-04T22:52:13.766975","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please draw a map of the world","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"}},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:13.767363","action":"prompt","inputs":{"prompt":"Please write code to compute the circumpherence of the earth"},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-05-04T22:52:13.767704","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":12,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"prompt"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:13.767921","action":"check_openai_key","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-05-04T22:52:13.768151","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":13,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:13.768472","action":"check_safety","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-05-04T22:52:13.768965","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":14,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:13.769240","action":"decide_mode","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-05-04T22:52:14.961172","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":15,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:14.961756","action":"generate_code","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.389320","action":"generate_code","result":{"response":{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":16,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"}},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.389778","action":"response","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.390041","action":"response","result":{"chat_item":{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"}},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.390312","action":"prompt","inputs":{"prompt":"Geography! Geography! Geography!"},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.390636","action":"prompt","result":{"chat_item":{"role":"user","content":"Geography! Geography! Geography!","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt"},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.390807","action":"check_openai_key","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.391017","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":19,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.391205","action":"check_safety","inputs":{},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.391412","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":20,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.391575","action":"decide_mode","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.762425","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":21,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"unknown"},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.762780","action":"prompt_for_more","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.763073","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":22,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt_for_more","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.763272","action":"response","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.763514","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"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-URK8KCjTZrZQ2NisEPFS3R70.png?st=2024-05-05T04%3A52%3A13Z&se=2024-05-05T06%3A52%3A13Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A02Z&ske=2024-05-05T21%3A33%3A02Z&sks=b&skv=2021-08-06&sig=v01m0Y%2BcGI5kybfSwPmzmvgKFTajTqKXHvFZenOp6Ls%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"},{"content":"Here is a simple Python code to calculate the circumference of the Earth:\n\n```\nfrom math import pi\n\n# Assume the radius of the Earth is 6371 km (mean radius)\nradius_earth = 6371\n\n# Circumference = 2 * pi * radius\ncircumference_earth = 2 * pi * radius_earth\n\nprint(\"The circumference of the Earth is approximately\", round(circumference_earth, 2), \"kilometers\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers, which is approximately 40,075.52 km.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":23}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json
index 1a553976..ca2d0488 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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 = copy.deepcopy(state[\"chat_history\"])\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 = copy.deepcopy(state[\"chat_history\"])\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt"]}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}, {"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", "inputs": []}, {"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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": []}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl
index 9b7b4abf..d78d6689 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-3-physics/log.jsonl
@@ -1,48 +1,48 @@
-{"type":"begin_entry","start_time":"2024-03-18T16:51:22.312166","action":"prompt","inputs":{"prompt":"Please draw a free-body diagram of a block on a ramp"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T16:51:22.312340","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:22.312440","action":"check_openai_key","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T16:51:22.312541","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:22.312622","action":"check_safety","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T16:51:22.312710","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"}],"__SEQUENCE_ID":2,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:22.312782","action":"decide_mode","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T16:51:22.951587","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"}],"__SEQUENCE_ID":3,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:22.951854","action":"generate_image","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T16:51:31.718543","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%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"}],"__SEQUENCE_ID":4,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:31.724104","action":"response","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T16:51:31.724388","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"}},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:31.724649","action":"prompt","inputs":{"prompt":"Please write code to compute the force of gravity on the moon"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T16:51:31.724791","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"prompt"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:31.724905","action":"check_openai_key","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T16:51:31.725109","action":"check_openai_key","result":{"has_openai_key":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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:31.725261","action":"check_safety","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T16:51:31.725357","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:31.725453","action":"decide_mode","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T16:51:32.474802","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:32.475163","action":"generate_code","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T16:51:36.000727","action":"generate_code","result":{"response":{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"}},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:36.001249","action":"response","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T16:51:36.002459","action":"response","result":{"chat_item":{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"}},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:36.002927","action":"prompt","inputs":{"prompt":"What is the force of gravity on the moon?"},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T16:51:36.006874","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"prompt"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:36.007258","action":"check_openai_key","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T16:51:36.007489","action":"check_openai_key","result":{"has_openai_key":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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:36.007695","action":"check_safety","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T16:51:36.007876","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:36.008714","action":"decide_mode","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T16:51:36.483517","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:36.484627","action":"answer_question","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T16:51:37.306807","action":"answer_question","result":{"response":{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"}},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:37.307754","action":"response","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T16:51:37.308126","action":"response","result":{"chat_item":{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"}},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:37.308570","action":"prompt","inputs":{"prompt":"Please build me a block on a ramp"},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T16:51:37.309229","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:37.310029","action":"check_openai_key","inputs":{},"sequence_id":19}
-{"type":"end_entry","end_time":"2024-03-18T16:51:37.310340","action":"check_openai_key","result":{"has_openai_key":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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":19,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:37.310776","action":"check_safety","inputs":{},"sequence_id":20}
-{"type":"end_entry","end_time":"2024-03-18T16:51:37.311486","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":20,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:37.311898","action":"decide_mode","inputs":{},"sequence_id":21}
-{"type":"end_entry","end_time":"2024-03-18T16:51:37.728520","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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":21,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:37.728956","action":"generate_image","inputs":{},"sequence_id":22}
-{"type":"end_entry","end_time":"2024-03-18T16:51:46.680434","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1GAkCss0qaSZtDdPgBu7msaF.png?st=2024-03-18T22%3A51%3A46Z&se=2024-03-19T00%3A51%3A46Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A37Z&ske=2024-03-19T23%3A48%3A37Z&sks=b&skv=2021-08-06&sig=WVOtDPYXYV8GsnvWy5QZ9BhdWznLrGRfMXUgtciF6FQ%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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":22,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1GAkCss0qaSZtDdPgBu7msaF.png?st=2024-03-18T22%3A51%3A46Z&se=2024-03-19T00%3A51%3A46Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A37Z&ske=2024-03-19T23%3A48%3A37Z&sks=b&skv=2021-08-06&sig=WVOtDPYXYV8GsnvWy5QZ9BhdWznLrGRfMXUgtciF6FQ%3D","type":"image","role":"assistant"}},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:46.686720","action":"response","inputs":{},"sequence_id":23}
-{"type":"end_entry","end_time":"2024-03-18T16:51:46.687740","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1GAkCss0qaSZtDdPgBu7msaF.png?st=2024-03-18T22%3A51%3A46Z&se=2024-03-19T00%3A51%3A46Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A37Z&ske=2024-03-19T23%3A48%3A37Z&sks=b&skv=2021-08-06&sig=WVOtDPYXYV8GsnvWy5QZ9BhdWznLrGRfMXUgtciF6FQ%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-4MEADL5OkN50Df2EWorgATjm.png?st=2024-03-18T22%3A51%3A31Z&se=2024-03-19T00%3A51%3A31Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A47%3A38Z&ske=2024-03-19T23%3A47%3A38Z&sks=b&skv=2021-08-06&sig=zPGTC9WtCl2jVjsT1Ivd9%2BA%2BdnsftJ%2B%2BaZyOAdAHlMY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"Sure, here is a Python code snippet that computes the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # in kilograms\nradius_of_moon = 1.738e6 # in meters\ngravitational_constant = 6.67430e-11 # in m^3 kg^-1 s^-2\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (gravitational_constant * mass_of_moon) / radius_of_moon**2\n\nprint(\"The force of gravity on the moon is: {:.2f} N\".format(force_of_gravity))\n```\n\nPlease note that the force of gravity on the moon can vary slightly depending on the distance between the moon and other celestial bodies, but this code snippet provides an approximate value.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1.62 meters per second squared (m/s^2).","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-1GAkCss0qaSZtDdPgBu7msaF.png?st=2024-03-18T22%3A51%3A46Z&se=2024-03-19T00%3A51%3A46Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A37Z&ske=2024-03-19T23%3A48%3A37Z&sks=b&skv=2021-08-06&sig=WVOtDPYXYV8GsnvWy5QZ9BhdWznLrGRfMXUgtciF6FQ%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1GAkCss0qaSZtDdPgBu7msaF.png?st=2024-03-18T22%3A51%3A46Z&se=2024-03-19T00%3A51%3A46Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A37Z&ske=2024-03-19T23%3A48%3A37Z&sks=b&skv=2021-08-06&sig=WVOtDPYXYV8GsnvWy5QZ9BhdWznLrGRfMXUgtciF6FQ%3D","type":"image","role":"assistant"}},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.770346","action":"prompt","inputs":{"prompt":"Please draw a free-body diagram of a block on a ramp"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.770504","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.770611","action":"check_openai_key","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.770716","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.770812","action":"check_safety","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:52:17.770912","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"}],"__SEQUENCE_ID":2,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:17.771003","action":"decide_mode","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:52:18.230966","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"}],"__SEQUENCE_ID":3,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:18.231240","action":"generate_image","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:52:27.923099","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%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"}],"__SEQUENCE_ID":4,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:27.924077","action":"response","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:52:27.924357","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"}},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:27.924759","action":"prompt","inputs":{"prompt":"Please write code to compute the force of gravity on the moon"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:52:27.924900","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"prompt"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:27.924996","action":"check_openai_key","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:52:27.925077","action":"check_openai_key","result":{"has_openai_key":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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:27.925162","action":"check_safety","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-05-04T22:52:27.925229","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:27.925314","action":"decide_mode","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-05-04T22:52:28.781152","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:28.797480","action":"generate_code","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-05-04T22:52:32.742209","action":"generate_code","result":{"response":{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"}},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:32.742761","action":"response","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-05-04T22:52:32.743155","action":"response","result":{"chat_item":{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"}},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:32.743586","action":"prompt","inputs":{"prompt":"What is the force of gravity on the moon?"},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-05-04T22:52:32.744215","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"prompt"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:32.744493","action":"check_openai_key","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-05-04T22:52:32.744756","action":"check_openai_key","result":{"has_openai_key":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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:32.745114","action":"check_safety","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-05-04T22:52:32.745501","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:32.745888","action":"decide_mode","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-05-04T22:52:33.185956","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:33.186609","action":"answer_question","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-05-04T22:52:38.660275","action":"answer_question","result":{"response":{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"}},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:38.660914","action":"response","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-05-04T22:52:38.661169","action":"response","result":{"chat_item":{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"}},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:38.661548","action":"prompt","inputs":{"prompt":"Please build me a block on a ramp"},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-05-04T22:52:38.662597","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:38.668714","action":"check_openai_key","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-05-04T22:52:38.669455","action":"check_openai_key","result":{"has_openai_key":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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":19,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:38.675342","action":"check_safety","inputs":{},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-05-04T22:52:38.675990","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":20,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:38.676382","action":"decide_mode","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-05-04T22:52:39.060592","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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":21,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:39.061233","action":"generate_image","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-05-04T22:52:53.302957","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2N6cBh2YYlR5yuXglP0PaQB4.png?st=2024-05-05T04%3A52%3A53Z&se=2024-05-05T06%3A52%3A53Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T23%3A18%3A29Z&ske=2024-05-05T23%3A18%3A29Z&sks=b&skv=2021-08-06&sig=9crdM8SxULx0H%2BmSxSXaiMgQpWugMZuC26P8o6g5CfM%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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":22,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2N6cBh2YYlR5yuXglP0PaQB4.png?st=2024-05-05T04%3A52%3A53Z&se=2024-05-05T06%3A52%3A53Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T23%3A18%3A29Z&ske=2024-05-05T23%3A18%3A29Z&sks=b&skv=2021-08-06&sig=9crdM8SxULx0H%2BmSxSXaiMgQpWugMZuC26P8o6g5CfM%3D","type":"image","role":"assistant"}},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:53.305756","action":"response","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-05-04T22:52:53.306220","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2N6cBh2YYlR5yuXglP0PaQB4.png?st=2024-05-05T04%3A52%3A53Z&se=2024-05-05T06%3A52%3A53Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T23%3A18%3A29Z&ske=2024-05-05T23%3A18%3A29Z&sks=b&skv=2021-08-06&sig=9crdM8SxULx0H%2BmSxSXaiMgQpWugMZuC26P8o6g5CfM%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-OFILxqf4nIb3Mma49S00cHKI.png?st=2024-05-05T04%3A52%3A27Z&se=2024-05-05T06%3A52%3A27Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A25%3A12Z&ske=2024-05-05T21%3A25%3A12Z&sks=b&skv=2021-08-06&sig=7p66K48B4GDIxMhDwQsR4mAN8IQBnra1Y6YARkeF/Es%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, we can use the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nHere is an example code snippet in Python to compute the force of gravity on the moon:\n\n```python\n# Constants\nmass_of_moon = 7.35e22 # kg\ngravitational_constant = 6.67e-11 # N m^2/kg^2\nradius_of_moon = 1.74e6 # meters\n\n# Assume the mass of the object\nmass_of_object = 10 # kg\n\n# Compute the force of gravity on the moon\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon**2\n\nprint(f\"The force of gravity on the moon acting on the object is: {force_of_gravity} Newtons\")\n```\n\nThis code snippet assumes a mass of the object and calculates the force of gravity on the moon. Remember to adjust the mass of the object based on your requirements.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon is approximately 1/6th of the force of gravity on Earth. This means that an object on the moon weighs about 1/6th of its weight on Earth. The exact value of the force of gravity on the moon can be calculated using the formula provided in the previous response, taking into account the mass of the moon, the gravitational constant, and the radius of the moon.\n\nUsing the constants for the moon:\n- Mass of the moon = 7.35 x 10^22 kg\n- Gravitational constant = 6.67 x 10^-11 N m^2/kg^2\n- Radius of the moon = 1.74 x 10^6 meters\n\nWe can calculate the force of gravity on the moon using the formula:\n\nforce_of_gravity = (mass_of_object * mass_of_moon * gravitational_constant) / radius_of_moon^2\n\nSubstitute the values:\n- Mass of the object = 1 kg (as an example)\n\nforce_of_gravity = (1 * 7.35e22 * 6.67e-11) / (1.74e6)^2\nforce_of_gravity = (4.92045e12) / (3.0276e12)\nforce_of_gravity ≈ 1.624 N\n\nTherefore, the force of gravity on the moon is approximately 1.624 Newtons for a 1 kg object.","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-2N6cBh2YYlR5yuXglP0PaQB4.png?st=2024-05-05T04%3A52%3A53Z&se=2024-05-05T06%3A52%3A53Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T23%3A18%3A29Z&ske=2024-05-05T23%3A18%3A29Z&sks=b&skv=2021-08-06&sig=9crdM8SxULx0H%2BmSxSXaiMgQpWugMZuC26P8o6g5CfM%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2N6cBh2YYlR5yuXglP0PaQB4.png?st=2024-05-05T04%3A52%3A53Z&se=2024-05-05T06%3A52%3A53Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T23%3A18%3A29Z&ske=2024-05-05T23%3A18%3A29Z&sks=b&skv=2021-08-06&sig=9crdM8SxULx0H%2BmSxSXaiMgQpWugMZuC26P8o6g5CfM%3D","type":"image","role":"assistant"}},"sequence_id":23}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json
index 1a553976..ca2d0488 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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 = copy.deepcopy(state[\"chat_history\"])\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 = copy.deepcopy(state[\"chat_history\"])\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt"]}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}, {"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", "inputs": []}, {"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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": []}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl
index 8b239877..68d89173 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-4-philosophy/log.jsonl
@@ -1,36 +1,36 @@
-{"type":"begin_entry","start_time":"2024-03-18T16:51:46.701236","action":"prompt","inputs":{"prompt":"Please draw a picture of a philosopher"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T16:51:46.701347","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:46.701419","action":"check_openai_key","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T16:51:46.701480","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:46.701529","action":"check_safety","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T16:51:46.701585","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:46.701633","action":"decide_mode","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T16:51:47.122857","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:47.123382","action":"generate_image","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T16:51:56.219357","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":4,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:56.229526","action":"response","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T16:51:56.229877","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"}},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:56.230956","action":"prompt","inputs":{"prompt":"Please write code to compute the meaning of life (hint, its 42)"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T16:51:56.231264","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"prompt"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:56.231497","action":"check_openai_key","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T16:51:56.231716","action":"check_openai_key","result":{"has_openai_key":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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:56.231905","action":"check_safety","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T16:51:56.232087","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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:56.232256","action":"decide_mode","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T16:51:56.723587","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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:56.723952","action":"generate_code","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T16:51:57.850178","action":"generate_code","result":{"response":{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:57.850615","action":"response","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T16:51:57.851028","action":"response","result":{"chat_item":{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:57.851338","action":"prompt","inputs":{"prompt":"What is the meaning of life?"},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T16:51:57.851997","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the meaning of life?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the meaning of life?","__PRIOR_STEP":"prompt"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:57.852286","action":"check_openai_key","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T16:51:57.852504","action":"check_openai_key","result":{"has_openai_key":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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:57.852703","action":"check_safety","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T16:51:57.852910","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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:57.856288","action":"decide_mode","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T16:51:58.296769","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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"What is the meaning of life?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:58.297328","action":"answer_question","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T16:51:59.890345","action":"answer_question","result":{"response":{"content":"The meaning of life is a philosophical question that can vary depending on individual beliefs, values, and experiences. Some people believe that the meaning of life is to seek happiness and fulfillment, others believe it is to fulfill a spiritual purpose or contribute to the greater good of society. Ultimately, the meaning of life is a deeply personal and subjective concept that each person may interpret in their own way.","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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"What is the meaning of life?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that can vary depending on individual beliefs, values, and experiences. Some people believe that the meaning of life is to seek happiness and fulfillment, others believe it is to fulfill a spiritual purpose or contribute to the greater good of society. Ultimately, the meaning of life is a deeply personal and subjective concept that each person may interpret in their own way.","type":"text","role":"assistant"}},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:59.906811","action":"response","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T16:51:59.907172","action":"response","result":{"chat_item":{"content":"The meaning of life is a philosophical question that can vary depending on individual beliefs, values, and experiences. Some people believe that the meaning of life is to seek happiness and fulfillment, others believe it is to fulfill a spiritual purpose or contribute to the greater good of society. Ultimately, the meaning of life is a deeply personal and subjective concept that each person may interpret in their own way.","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-nYTwwbnTlXsRbCa4OXAJ0ORP.png?st=2024-03-18T22%3A51%3A56Z&se=2024-03-19T00%3A51%3A56Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T23%3A48%3A55Z&ske=2024-03-19T23%3A48%3A55Z&sks=b&skv=2021-08-06&sig=Nt0%2B4cplO75MoP%2BlGat7Re1EY5tzjyl2gMBjSaH5Jgk%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Sure! Here is a simple Python code that computes the meaning of life (which is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"},{"content":"The meaning of life is a philosophical question that can vary depending on individual beliefs, values, and experiences. Some people believe that the meaning of life is to seek happiness and fulfillment, others believe it is to fulfill a spiritual purpose or contribute to the greater good of society. Ultimately, the meaning of life is a deeply personal and subjective concept that each person may interpret in their own way.","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"What is the meaning of life?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical question that can vary depending on individual beliefs, values, and experiences. Some people believe that the meaning of life is to seek happiness and fulfillment, others believe it is to fulfill a spiritual purpose or contribute to the greater good of society. Ultimately, the meaning of life is a deeply personal and subjective concept that each person may interpret in their own way.","type":"text","role":"assistant"}},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:53.316339","action":"prompt","inputs":{"prompt":"Please draw a picture of a philosopher"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:52:53.316571","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:53.316685","action":"check_openai_key","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:52:53.316785","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:53.316873","action":"check_safety","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:52:53.316961","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:53.317039","action":"decide_mode","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:52:53.715351","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_image"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:52:53.715941","action":"generate_image","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:53:02.901941","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":4,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"generate_image","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:02.904199","action":"response","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:53:02.904964","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"}},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:02.906224","action":"prompt","inputs":{"prompt":"Please write code to compute the meaning of life (hint, its 42)"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:53:02.906613","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"prompt"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:02.906839","action":"check_openai_key","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:53:02.907075","action":"check_openai_key","result":{"has_openai_key":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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:02.907323","action":"check_safety","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-05-04T22:53:02.907558","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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:02.907776","action":"decide_mode","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-05-04T22:53:03.555595","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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:03.556425","action":"generate_code","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-05-04T22:53:05.355623","action":"generate_code","result":{"response":{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:05.356036","action":"response","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-05-04T22:53:05.356332","action":"response","result":{"chat_item":{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:05.356635","action":"prompt","inputs":{"prompt":"What is the meaning of life?"},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-05-04T22:53:05.357368","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the meaning of life?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the meaning of life?","__PRIOR_STEP":"prompt"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:05.357696","action":"check_openai_key","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-05-04T22:53:05.358174","action":"check_openai_key","result":{"has_openai_key":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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:05.358450","action":"check_safety","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-05-04T22:53:05.358963","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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:05.359218","action":"decide_mode","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-05-04T22:53:06.162386","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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"What is the meaning of life?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:06.162734","action":"answer_question","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-05-04T22:53:08.168348","action":"answer_question","result":{"response":{"content":"The meaning of life is a deeply philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals may have varying beliefs and interpretations about the purpose and meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others may find meaning in personal relationships, accomplishments, or contributing to the greater good of society. Ultimately, the answer to this question may be subjective and unique to each individual's perspective and beliefs.","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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"What is the meaning of life?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a deeply philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals may have varying beliefs and interpretations about the purpose and meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others may find meaning in personal relationships, accomplishments, or contributing to the greater good of society. Ultimately, the answer to this question may be subjective and unique to each individual's perspective and beliefs.","type":"text","role":"assistant"}},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:08.168761","action":"response","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-05-04T22:53:08.169137","action":"response","result":{"chat_item":{"content":"The meaning of life is a deeply philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals may have varying beliefs and interpretations about the purpose and meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others may find meaning in personal relationships, accomplishments, or contributing to the greater good of society. Ultimately, the answer to this question may be subjective and unique to each individual's perspective and beliefs.","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-2eTMbcMIe8B3j7D2WJNtBI82.png?st=2024-05-05T04%3A53%3A02Z&se=2024-05-05T06%3A53%3A02Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A33%3A56Z&ske=2024-05-05T21%3A33%3A56Z&sks=b&skv=2021-08-06&sig=87dOWRe5pBtpSChy9rSEIeCtCQgUFqO1spgJCVirEkw%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here is a simple code snippet in Python that computes the meaning of life, which is famously known to be 42 according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams:\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"},{"content":"The meaning of life is a deeply philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals may have varying beliefs and interpretations about the purpose and meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others may find meaning in personal relationships, accomplishments, or contributing to the greater good of society. Ultimately, the answer to this question may be subjective and unique to each individual's perspective and beliefs.","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"What is the meaning of life?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a deeply philosophical question that has puzzled humanity for centuries. Different cultures, religions, and individuals may have varying beliefs and interpretations about the purpose and meaning of life. Some believe that the meaning of life is to seek happiness, fulfillment, or spiritual enlightenment, while others may find meaning in personal relationships, accomplishments, or contributing to the greater good of society. Ultimately, the answer to this question may be subjective and unique to each individual's perspective and beliefs.","type":"text","role":"assistant"}},"sequence_id":17}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json
index 1a553976..ca2d0488 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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 = copy.deepcopy(state[\"chat_history\"])\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 = copy.deepcopy(state[\"chat_history\"])\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt"]}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}, {"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", "inputs": []}, {"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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": []}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl
index a30a923b..ea1875c7 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-5-jokes/log.jsonl
@@ -1,48 +1,48 @@
-{"type":"begin_entry","start_time":"2024-03-18T16:51:59.922889","action":"prompt","inputs":{"prompt":"Please draw a picture of a good joke"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T16:51:59.923196","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a good joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:59.923420","action":"check_openai_key","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T16:51:59.924388","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:59.924648","action":"check_safety","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T16:51:59.925070","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T16:51:59.925248","action":"decide_mode","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T16:52:00.265919","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"unknown"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:00.266859","action":"prompt_for_more","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T16:52:00.267489","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":4,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt_for_more","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:00.267694","action":"response","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T16:52:00.267933","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:00.268357","action":"prompt","inputs":{"prompt":"Please write code for an interactive knock-knock joke"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T16:52:00.268578","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"prompt"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:00.268756","action":"check_openai_key","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T16:52:00.269127","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:00.269256","action":"check_safety","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T16:52:00.269738","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:00.269883","action":"decide_mode","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T16:52:00.744268","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:00.744579","action":"generate_code","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T16:52:02.714511","action":"generate_code","result":{"response":{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"}},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:02.714916","action":"response","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T16:52:02.715229","action":"response","result":{"chat_item":{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"}},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:02.715726","action":"prompt","inputs":{"prompt":"What is a good joke?"},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T16:52:02.716054","action":"prompt","result":{"chat_item":{"role":"user","content":"What is a good joke?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is a good joke?","__PRIOR_STEP":"prompt"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:02.716255","action":"check_openai_key","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T16:52:02.716784","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is a good joke?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:02.717060","action":"check_safety","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T16:52:02.717253","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"What is a good joke?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:02.717447","action":"decide_mode","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T16:52:03.170654","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"What is a good joke?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:03.171296","action":"answer_question","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T16:52:04.523909","action":"answer_question","result":{"response":{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"What is a good joke?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"}},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:04.524412","action":"response","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T16:52:04.524708","action":"response","result":{"chat_item":{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"What is a good joke?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"}},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:04.526106","action":"prompt","inputs":{"prompt":"The chicken crossed the road because it was a free-range chicken"},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T16:52:04.526547","action":"prompt","result":{"chat_item":{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":18,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt"},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:04.526761","action":"check_openai_key","inputs":{},"sequence_id":19}
-{"type":"end_entry","end_time":"2024-03-18T16:52:04.526979","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":19,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:04.527797","action":"check_safety","inputs":{},"sequence_id":20}
-{"type":"end_entry","end_time":"2024-03-18T16:52:04.528753","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":20,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:04.529007","action":"decide_mode","inputs":{},"sequence_id":21}
-{"type":"end_entry","end_time":"2024-03-18T16:52:05.228996","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":21,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"unknown"},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:05.230910","action":"prompt_for_more","inputs":{},"sequence_id":22}
-{"type":"end_entry","end_time":"2024-03-18T16:52:05.231944","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":22,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt_for_more","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:05.232680","action":"response","inputs":{},"sequence_id":23}
-{"type":"end_entry","end_time":"2024-03-18T16:52:05.233136","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Here's a simple interactive knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput(\"Who's there? \")\nprint(\"Boo.\")\ninput(\"Boo who? \")\nprint(\"Don't cry, it's just a joke!\")\n```\n\nWhen you run this code, it will display the prompt \"Knock, knock.\" and wait for the input \"Who's there?\". Once you enter your response, it will continue with the joke. You can run this code in any Python interpreter or online compiler. Have fun with your interactive knock-knock joke!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"Humor is subjective and what one person finds funny, another might not. However, a good joke is typically one that is clever, witty, and brings a smile or laughter to the audience. It often plays on words, uses unexpected twists, or has a humorous punchline. Ultimately, a good joke is one that brightens someone's day and brings joy or amusement.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:08.181022","action":"prompt","inputs":{"prompt":"Please draw a picture of a good joke"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:53:08.181487","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a good joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:08.181699","action":"check_openai_key","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:53:08.181904","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:08.182083","action":"check_safety","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:53:08.182236","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:08.182384","action":"decide_mode","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:53:09.015970","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"unknown"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:09.016258","action":"prompt_for_more","inputs":{},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:53:09.016445","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":4,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt_for_more","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:09.016616","action":"response","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:53:09.016815","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":5,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:09.017134","action":"prompt","inputs":{"prompt":"Please write code for an interactive knock-knock joke"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:53:09.017406","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"prompt"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:09.017603","action":"check_openai_key","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:53:09.017783","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:09.018075","action":"check_safety","inputs":{},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-05-04T22:53:09.018228","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:09.018369","action":"decide_mode","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-05-04T22:53:09.612642","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":9,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"generate_code"},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:09.613144","action":"generate_code","inputs":{},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-05-04T22:53:11.875490","action":"generate_code","result":{"response":{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"generate_code","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"}},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:11.875856","action":"response","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-05-04T22:53:11.876088","action":"response","result":{"chat_item":{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"}],"__SEQUENCE_ID":11,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"generate_code","response":{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"}},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:11.876377","action":"prompt","inputs":{"prompt":"What is a good joke?"},"sequence_id":12}
+{"type":"end_entry","end_time":"2024-05-04T22:53:11.876647","action":"prompt","result":{"chat_item":{"role":"user","content":"What is a good joke?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is a good joke?","__PRIOR_STEP":"prompt"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:11.876945","action":"check_openai_key","inputs":{},"sequence_id":13}
+{"type":"end_entry","end_time":"2024-05-04T22:53:11.877248","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is a good joke?","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:11.877521","action":"check_safety","inputs":{},"sequence_id":14}
+{"type":"end_entry","end_time":"2024-05-04T22:53:11.877791","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":14,"prompt":"What is a good joke?","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:11.878033","action":"decide_mode","inputs":{},"sequence_id":15}
+{"type":"end_entry","end_time":"2024-05-04T22:53:12.496445","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":15,"prompt":"What is a good joke?","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"answer_question"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:12.496985","action":"answer_question","inputs":{},"sequence_id":16}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.457586","action":"answer_question","result":{"response":{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":16,"prompt":"What is a good joke?","__PRIOR_STEP":"answer_question","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"}},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.458212","action":"response","inputs":{},"sequence_id":17}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.458494","action":"response","result":{"chat_item":{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"}],"__SEQUENCE_ID":17,"prompt":"What is a good joke?","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"answer_question","response":{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"}},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.459187","action":"prompt","inputs":{"prompt":"The chicken crossed the road because it was a free-range chicken"},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.459583","action":"prompt","result":{"chat_item":{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":18,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt"},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.459765","action":"check_openai_key","inputs":{},"sequence_id":19}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.459973","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":19,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.460149","action":"check_safety","inputs":{},"sequence_id":20}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.461080","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":20,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.461342","action":"decide_mode","inputs":{},"sequence_id":21}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.919384","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":21,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"decide_mode","has_openai_key":true,"safe":true,"mode":"unknown"},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.919827","action":"prompt_for_more","inputs":{},"sequence_id":22}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.920208","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":22,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt_for_more","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.920646","action":"response","inputs":{},"sequence_id":23}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.921270","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure, here is a simple knock-knock joke code in Python:\n\n```python\nprint(\"Knock, knock.\")\ninput()\nprint(\"Who's there?\")\ninput()\nprint(\"Lettuce.\")\ninput()\nprint(\"Lettuce who?\")\ninput()\nprint(\"Lettuce in, it's cold out here!\")\n```\n\nWhen you run this code, it will prompt you to enter something at each stage of the knock-knock joke. Just hit enter after each prompt to see the joke unfold.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"},{"content":"A good joke is subjective and can vary from person to person. Generally, a good joke is one that is clever, witty, and makes people laugh. It often plays on word puns, uses clever wordplay or unexpected twists in the punchline. A good joke should be humorous and entertaining, and bring joy or amusement to those who hear or read it. Ultimately, the best jokes are those that resonate with the audience and leave a positive impression.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":23,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"response","has_openai_key":true,"safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":23}
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json
index 1a553976..ca2d0488 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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 = copy.deepcopy(state[\"chat_history\"])\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 = copy.deepcopy(state[\"chat_history\"])\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n client = _get_openai_client()\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n response = result.choices[0].message.content\n result = {\"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}}\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str) -> Tuple[dict, State]:\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt"]}, {"type": "action", "name": "check_openai_key", "reads": [], "writes": ["has_openai_key"], "code": "@action(reads=[], writes=[\"has_openai_key\"])\ndef check_openai_key(state: State) -> Tuple[dict, State]:\n result = {\"has_openai_key\": \"OPENAI_API_KEY\" in os.environ}\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}, {"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", "inputs": []}, {"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 \"\"\"Generates an image response to the prompt. Optional save function to save the image to a URL.\"\"\"\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"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 = copy.deepcopy(state[\"chat_history\"])\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", "inputs": []}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "mode", "safe", "has_openai_key"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"mode\", \"safe\", \"has_openai_key\"], writes=[\"chat_history\"])\ndef response(state: State) -> Tuple[dict, State]:\n if not state[\"has_openai_key\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"You have not set an API key for [OpenAI](https://www.openai.com). Do this \"\n \"by setting the environment variable `OPENAI_API_KEY` to your key. \"\n \"You can get a key at [OpenAI](https://platform.openai.com). \"\n \"You can still look at chat history/examples.\",\n \"type\": \"error\",\n }\n }\n elif not state[\"safe\"]:\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"error\",\n }\n }\n else:\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": []}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_openai_key", "condition": "default"}, {"type": "transition", "from_": "check_openai_key", "to": "check_safety", "condition": "has_openai_key=True"}, {"type": "transition", "from_": "check_openai_key", "to": "response", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl
index 5c5a2afe..f72984ae 100644
--- a/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:chatbot/chat-6-demonstrate-errors/log.jsonl
@@ -1,8 +1,8 @@
-{"type":"begin_entry","start_time":"2024-03-18T16:52:05.241399","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T16:52:05.241524","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:05.241577","action":"check_openai_key","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T16:52:05.241633","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:05.241678","action":"check_safety","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T16:52:05.241719","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T16:52:05.241757","action":"decide_mode","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T16:52:05.377163","action":"decide_mode","result":null,"exception":"Traceback (most recent call last):\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 327, in _step\n raise e\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 317, 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 185, 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 442, 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 56, 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"}],"__SEQUENCE_ID":3,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.930839","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.931346","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.931658","action":"check_openai_key","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.931829","action":"check_openai_key","result":{"has_openai_key":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_openai_key","has_openai_key":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.931986","action":"check_safety","inputs":{},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:53:14.932178","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:14.932351","action":"decide_mode","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:53:15.163543","action":"decide_mode","result":null,"exception":"Traceback (most recent call last):\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 375, in _step\n raise e\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 363, in _step\n result, new_state = _run_single_step_action(next_action, self._state, action_inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 220, 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 442, in run_and_update\n return self._fn(state, **self._bound_params, **run_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/examples/multi-modal-chatbot/application.py\", line 55, 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"}],"__SEQUENCE_ID":3,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","has_openai_key":true,"safe":true},"sequence_id":3}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json
index 0f73530d..58737da2 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State, vector_store: object) -> Tuple[dict, State]:\n \"\"\"AI conversing step. Uses Hamilton to execute the conversational pipeline.\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n # we use overrides here because we want to pass in the vector store\n overrides={\n \"vector_store\": vector_store,\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n", "inputs": []}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- make sure we get input, and store it as state.\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n", "inputs": ["user_question"]}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl
index 8dc1bc1e..6cc8f2dd 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-1-food/log.jsonl
@@ -1,16 +1,16 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.204996","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.205074","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?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.205146","action":"ai_converse","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:01.705183","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"],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:01.705563","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:01.705965","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?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:01.706246","action":"ai_converse","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:03.116610","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."],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:03.117071","action":"human_converse","inputs":{"user_question":"What is Aaron's favorite food?"},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:03.117282","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?"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:03.117738","action":"ai_converse","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:05.132329","action":"ai_converse","result":{"conversational_rag_response":"There is no information provided about Aaron's favorite food. So, there is no way to determine what Aaron's favorite food is based on the context given."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Aaron's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos.","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food. So, there is no way to determine what Aaron's favorite food is based on the context given."],"__SEQUENCE_ID":5,"__PRIOR_STEP":"ai_converse"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:05.147604","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T15:42:05.147772","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos.","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food. So, there is no way to determine what Aaron's favorite food is based on the context given.","Human: exit"],"__SEQUENCE_ID":6,"__PRIOR_STEP":"human_converse"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:05.147894","action":"terminal","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T15:42:05.147968","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos.","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food. So, there is no way to determine what Aaron's favorite food is based on the context given.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: What is Stefan's favorite food?","AI: Tacos.","Human: What is Aaron's favorite food?","AI: There is no information provided about Aaron's favorite food. So, there is no way to determine what Aaron's favorite food is based on the context given.","Human: exit"],"__SEQUENCE_ID":7,"__PRIOR_STEP":"terminal"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:32.369614","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:54:32.369710","action":"human_converse","result":{"question":"What is Elijah's favorite food?"},"exception":null,"state":{"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:32.370873","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:54:33.974280","action":"ai_converse","result":{"conversational_rag_response":"Based on the context, Elijah likes to eat mangoes the most."},"exception":null,"state":{"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most."],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:33.975120","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:54:33.975414","action":"human_converse","result":{"question":"What is Stefan's favorite food?"},"exception":null,"state":{"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most.","Human: What is Stefan's favorite food?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:33.975980","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:54:35.000563","action":"ai_converse","result":{"conversational_rag_response":"Tacos"},"exception":null,"state":{"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most.","Human: What is Stefan's favorite food?","AI: Tacos"],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:35.001632","action":"human_converse","inputs":{"user_question":"What is Aaron's favorite food?"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:54:35.002174","action":"human_converse","result":{"question":"What is Aaron's favorite food?"},"exception":null,"state":{"question":"What is Aaron's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most.","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:35.002635","action":"ai_converse","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:54:36.091051","action":"ai_converse","result":{"conversational_rag_response":"There is no information given about what Aaron likes to eat the most."},"exception":null,"state":{"question":"What is Aaron's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most.","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information given about what Aaron likes to eat the most."],"__SEQUENCE_ID":5,"__PRIOR_STEP":"ai_converse"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:36.091723","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:54:36.093704","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most.","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information given about what Aaron likes to eat the most.","Human: exit"],"__SEQUENCE_ID":6,"__PRIOR_STEP":"human_converse"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:36.094693","action":"terminal","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:54:36.094916","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most.","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information given about what Aaron likes to eat the most.","Human: exit"]},"exception":null,"state":{"question":"exit","chat_history":["Human: What is Elijah's favorite food?","AI: Based on the context, Elijah likes to eat mangoes the most.","Human: What is Stefan's favorite food?","AI: Tacos","Human: What is Aaron's favorite food?","AI: There is no information given about what Aaron likes to eat the most.","Human: exit"],"__SEQUENCE_ID":7,"__PRIOR_STEP":"terminal"},"sequence_id":7}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json
index 0f73530d..58737da2 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State, vector_store: object) -> Tuple[dict, State]:\n \"\"\"AI conversing step. Uses Hamilton to execute the conversational pipeline.\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n # we use overrides here because we want to pass in the vector store\n overrides={\n \"vector_store\": vector_store,\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n", "inputs": []}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- make sure we get input, and store it as state.\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n", "inputs": ["user_question"]}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl
index 65dbc44c..3ce63f2c 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-2-work-history/log.jsonl
@@ -1,24 +1,24 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:05.159368","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:05.159553","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?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:05.159722","action":"ai_converse","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:06.425992","action":"ai_converse","result":{"conversational_rag_response":"Elijah trabajaba en 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 trabajaba en TwoSigma."],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:06.426368","action":"human_converse","inputs":{"user_question":"Where did Stefan work?"},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:06.426805","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 trabajaba en TwoSigma.","Human: Where did Stefan work?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:06.427120","action":"ai_converse","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:07.946710","action":"ai_converse","result":{"conversational_rag_response":"Stefan trabajaba en IBM y en 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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix."],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:07.947173","action":"human_converse","inputs":{"user_question":"Where did Harrison work?"},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:07.947584","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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:07.947936","action":"ai_converse","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:09.180933","action":"ai_converse","result":{"conversational_rag_response":"Harrison trabajaba en 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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho."],"__SEQUENCE_ID":5,"__PRIOR_STEP":"ai_converse"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:09.181344","action":"human_converse","inputs":{"user_question":"Where did Jonathan work?"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T15:42:09.181653","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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho.","Human: Where did Jonathan work?"],"__SEQUENCE_ID":6,"__PRIOR_STEP":"human_converse"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:09.181880","action":"ai_converse","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T15:42:10.708273","action":"ai_converse","result":{"conversational_rag_response":"No se proporciona información sobre dónde trabajó Jonathan."},"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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho.","Human: Where did Jonathan work?","AI: No se proporciona información sobre dónde trabajó Jonathan."],"__SEQUENCE_ID":7,"__PRIOR_STEP":"ai_converse"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:10.708650","action":"human_converse","inputs":{"user_question":"Did Stefan and Harrison work together?"},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T15:42:10.709010","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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho.","Human: Where did Jonathan work?","AI: No se proporciona información sobre dónde trabajó Jonathan.","Human: Did Stefan and Harrison work together?"],"__SEQUENCE_ID":8,"__PRIOR_STEP":"human_converse"},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:10.709273","action":"ai_converse","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T15:42:12.425330","action":"ai_converse","result":{"conversational_rag_response":"No."},"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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho.","Human: Where did Jonathan work?","AI: No se proporciona información sobre dónde trabajó Jonathan.","Human: Did Stefan and Harrison work together?","AI: No."],"__SEQUENCE_ID":9,"__PRIOR_STEP":"ai_converse"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:12.425811","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T15:42:12.426165","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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho.","Human: Where did Jonathan work?","AI: No se proporciona información sobre dónde trabajó Jonathan.","Human: Did Stefan and Harrison work together?","AI: No.","Human: exit"],"__SEQUENCE_ID":10,"__PRIOR_STEP":"human_converse"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:12.426562","action":"terminal","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T15:42:12.426729","action":"terminal","result":{"chat_history":["Human: Where did Elijah work?","AI: Elijah trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho.","Human: Where did Jonathan work?","AI: No se proporciona información sobre dónde trabajó Jonathan.","Human: Did Stefan and Harrison work together?","AI: No.","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 trabajaba en TwoSigma.","Human: Where did Stefan work?","AI: Stefan trabajaba en IBM y en Stitch Fix.","Human: Where did Harrison work?","AI: Harrison trabajaba en Kensho.","Human: Where did Jonathan work?","AI: No se proporciona información sobre dónde trabajó Jonathan.","Human: Did Stefan and Harrison work together?","AI: No.","Human: exit"],"__SEQUENCE_ID":11,"__PRIOR_STEP":"terminal"},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:36.473792","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:54:36.474043","action":"human_converse","result":{"question":"Where did Elijah work?"},"exception":null,"state":{"question":"Where did Elijah work?","chat_history":["Human: Where did Elijah work?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:36.474265","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:54:37.707824","action":"ai_converse","result":{"conversational_rag_response":"Elijah worked at TwoSigma."},"exception":null,"state":{"question":"Where did Elijah work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma."],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:37.708839","action":"human_converse","inputs":{"user_question":"Where did Stefan work?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:54:37.709146","action":"human_converse","result":{"question":"Where did Stefan work?"},"exception":null,"state":{"question":"Where did Stefan work?","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:37.710237","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:54:39.032077","action":"ai_converse","result":{"conversational_rag_response":"Stefan worked at Stitch Fix"},"exception":null,"state":{"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 Stitch Fix"],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:39.032842","action":"human_converse","inputs":{"user_question":"Where did Harrison work?"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:54:39.033531","action":"human_converse","result":{"question":"Where did Harrison work?"},"exception":null,"state":{"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 Stitch Fix","Human: Where did Harrison work?"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:39.034251","action":"ai_converse","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:54:40.312087","action":"ai_converse","result":{"conversational_rag_response":"Harrison worked at Kensho."},"exception":null,"state":{"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 Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho."],"__SEQUENCE_ID":5,"__PRIOR_STEP":"ai_converse"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:40.312590","action":"human_converse","inputs":{"user_question":"Where did Jonathan work?"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:54:40.313076","action":"human_converse","result":{"question":"Where did Jonathan work?"},"exception":null,"state":{"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 Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?"],"__SEQUENCE_ID":6,"__PRIOR_STEP":"human_converse"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:40.313762","action":"ai_converse","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:54:41.701866","action":"ai_converse","result":{"conversational_rag_response":"False"},"exception":null,"state":{"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 Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False"],"__SEQUENCE_ID":7,"__PRIOR_STEP":"ai_converse"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:41.702695","action":"human_converse","inputs":{"user_question":"Did Stefan and Harrison work together?"},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-05-04T22:54:41.702886","action":"human_converse","result":{"question":"Did Stefan and Harrison work together?"},"exception":null,"state":{"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 Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?"],"__SEQUENCE_ID":8,"__PRIOR_STEP":"human_converse"},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:41.703366","action":"ai_converse","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-05-04T22:54:43.229183","action":"ai_converse","result":{"conversational_rag_response":"No, Stefan and Harrison did not work together."},"exception":null,"state":{"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 Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together."],"__SEQUENCE_ID":9,"__PRIOR_STEP":"ai_converse"},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:43.229701","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":10}
+{"type":"end_entry","end_time":"2024-05-04T22:54:43.230198","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"question":"exit","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together.","Human: exit"],"__SEQUENCE_ID":10,"__PRIOR_STEP":"human_converse"},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:43.230561","action":"terminal","inputs":{},"sequence_id":11}
+{"type":"end_entry","end_time":"2024-05-04T22:54:43.230782","action":"terminal","result":{"chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together.","Human: exit"]},"exception":null,"state":{"question":"exit","chat_history":["Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan work?","AI: Stefan worked at Stitch Fix","Human: Where did Harrison work?","AI: Harrison worked at Kensho.","Human: Where did Jonathan work?","AI: False","Human: Did Stefan and Harrison work together?","AI: No, Stefan and Harrison did not work together.","Human: exit"],"__SEQUENCE_ID":11,"__PRIOR_STEP":"terminal"},"sequence_id":11}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json
index 0f73530d..58737da2 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State, vector_store: object) -> Tuple[dict, State]:\n \"\"\"AI conversing step. Uses Hamilton to execute the conversational pipeline.\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n # we use overrides here because we want to pass in the vector store\n overrides={\n \"vector_store\": vector_store,\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n", "inputs": []}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- make sure we get input, and store it as state.\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n", "inputs": ["user_question"]}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl
index 3d9c8bb7..25d43478 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-3-activities/log.jsonl
@@ -1,12 +1,12 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:12.436190","action":"human_converse","inputs":{"user_question":"What does Elijah like to do?"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:12.436400","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?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:12.436587","action":"ai_converse","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:14.577983","action":"ai_converse","result":{"conversational_rag_response":"Elijah's hobbies and interests include 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 include biking and enjoying mango."],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:14.578404","action":"human_converse","inputs":{"user_question":"What does Stefan like to do?"},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:14.578789","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 include biking and enjoying mango.","Human: What does Stefan like to do?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:14.579064","action":"ai_converse","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:16.617142","action":"ai_converse","result":{"conversational_rag_response":"Stefan's hobbies and interests include eating tacos, baking sourdough bread, and working at Stitch Fix."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What does Stefan like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests include biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include eating tacos, baking sourdough bread, and working at Stitch Fix."],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:16.617575","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:16.618006","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 include biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include eating tacos, baking sourdough bread, and working at Stitch Fix.","Human: exit"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:16.618335","action":"terminal","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:16.618499","action":"terminal","result":{"chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests include biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include eating tacos, baking sourdough bread, and working at Stitch Fix.","Human: exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"exit","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies and interests include biking and enjoying mango.","Human: What does Stefan like to do?","AI: Stefan's hobbies and interests include eating tacos, baking sourdough bread, and working at Stitch Fix.","Human: exit"],"__SEQUENCE_ID":5,"__PRIOR_STEP":"terminal"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:43.569975","action":"human_converse","inputs":{"user_question":"What does Elijah like to do?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:54:43.570135","action":"human_converse","result":{"question":"What does Elijah like to do?"},"exception":null,"state":{"question":"What does Elijah like to do?","chat_history":["Human: What does Elijah like to do?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:43.570281","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:54:44.661159","action":"ai_converse","result":{"conversational_rag_response":"Elijah's hobbies are biking and eating mango."},"exception":null,"state":{"question":"What does Elijah like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies are biking and eating mango."],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:44.662059","action":"human_converse","inputs":{"user_question":"What does Stefan like to do?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:54:44.662232","action":"human_converse","result":{"question":"What does Stefan like to do?"},"exception":null,"state":{"question":"What does Stefan like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies are biking and eating mango.","Human: What does Stefan like to do?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:44.663157","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:54:45.846441","action":"ai_converse","result":{"conversational_rag_response":"Based on the context provided, Stefan's hobbies are baking sourdough bread and eating tacos."},"exception":null,"state":{"question":"What does Stefan like to do?","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies are biking and eating mango.","Human: What does Stefan like to do?","AI: Based on the context provided, Stefan's hobbies are baking sourdough bread and eating tacos."],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:45.847744","action":"human_converse","inputs":{"user_question":"exit"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:54:45.848099","action":"human_converse","result":{"question":"exit"},"exception":null,"state":{"question":"exit","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies are biking and eating mango.","Human: What does Stefan like to do?","AI: Based on the context provided, Stefan's hobbies are baking sourdough bread and eating tacos.","Human: exit"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:45.848503","action":"terminal","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:54:45.848702","action":"terminal","result":{"chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies are biking and eating mango.","Human: What does Stefan like to do?","AI: Based on the context provided, Stefan's hobbies are baking sourdough bread and eating tacos.","Human: exit"]},"exception":null,"state":{"question":"exit","chat_history":["Human: What does Elijah like to do?","AI: Elijah's hobbies are biking and eating mango.","Human: What does Stefan like to do?","AI: Based on the context provided, Stefan's hobbies are baking sourdough bread and eating tacos.","Human: exit"],"__SEQUENCE_ID":5,"__PRIOR_STEP":"terminal"},"sequence_id":5}
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json
index 0f73530d..58737da2 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["input_texts", "question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"input_texts\", \"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State) -> Tuple[dict, State]:\n \"\"\"AI conversing step. This calls out to an API on the Hamilton hub (hub.dagworks.io)\n to do basic RAG\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"input_texts\": state[\"input_texts\"],\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n"}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- this simply massages the state to be the right shape\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n"}, {"type": "action", "name": "terminal", "reads": ["chat_history"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "human_converse", "actions": [{"type": "action", "name": "ai_converse", "reads": ["question", "chat_history"], "writes": ["chat_history"], "code": "@action(\n reads=[\"question\", \"chat_history\"],\n writes=[\"chat_history\"],\n)\ndef ai_converse(state: State, vector_store: object) -> Tuple[dict, State]:\n \"\"\"AI conversing step. Uses Hamilton to execute the conversational pipeline.\"\"\"\n result = conversational_rag_driver.execute(\n [\"conversational_rag_response\"],\n inputs={\n \"question\": state[\"question\"],\n \"chat_history\": state[\"chat_history\"],\n },\n # we use overrides here because we want to pass in the vector store\n overrides={\n \"vector_store\": vector_store,\n },\n )\n new_history = f\"AI: {result['conversational_rag_response']}\"\n return result, state.append(chat_history=new_history)\n", "inputs": []}, {"type": "action", "name": "human_converse", "reads": [], "writes": ["question", "chat_history"], "code": "@action(\n reads=[],\n writes=[\"question\", \"chat_history\"],\n)\ndef human_converse(state: State, user_question: str) -> Tuple[dict, State]:\n \"\"\"Human converse step -- make sure we get input, and store it as state.\"\"\"\n state = state.update(question=user_question).append(chat_history=f\"Human: {user_question}\")\n return {\"question\": user_question}, state\n", "inputs": ["user_question"]}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "ai_converse", "to": "human_converse", "condition": "default"}, {"type": "transition", "from_": "human_converse", "to": "terminal", "condition": "'exit' in question"}, {"type": "transition", "from_": "human_converse", "to": "ai_converse", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl
index 85c7329d..bfa93653 100644
--- a/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:conversational-rag/rag-4-everything/log.jsonl
@@ -1,20 +1,20 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:16.631316","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:16.631479","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?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:16.631622","action":"ai_converse","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:18.538811","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"],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:18.539188","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:18.539594","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?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:18.539908","action":"ai_converse","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:19.919917","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."],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:19.920276","action":"human_converse","inputs":{"user_question":"Where did Stefan workWhat does Elijah like to do?"},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:19.920667","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?"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:19.920961","action":"ai_converse","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:21.118738","action":"ai_converse","result":{"conversational_rag_response":"Elijah likes to go biking."},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Where did Stefan workWhat does Elijah like to do?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking."],"__SEQUENCE_ID":5,"__PRIOR_STEP":"ai_converse"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:21.119120","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T15:42:21.119468","action":"human_converse","result":{"question":"What is Stefan's favorite food?"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?"],"__SEQUENCE_ID":6,"__PRIOR_STEP":"human_converse"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:21.119716","action":"ai_converse","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T15:42:22.809422","action":"ai_converse","result":{"conversational_rag_response":"Tacos"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"What is Stefan's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos"],"__SEQUENCE_ID":7,"__PRIOR_STEP":"ai_converse"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:22.809742","action":"human_converse","inputs":{"user_question":"Whose favorite food is better, Elijah's or Stefan's?exit"},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T15:42:22.810060","action":"human_converse","result":{"question":"Whose favorite food is better, Elijah's or Stefan's?exit"},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Whose favorite food is better, Elijah's or Stefan's?exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__SEQUENCE_ID":8,"__PRIOR_STEP":"human_converse"},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:22.810245","action":"terminal","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T15:42:22.810347","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"]},"exception":null,"state":{"input_texts":["harrison worked at kensho","stefan worked at Stitch Fix","stefan likes tacos","elijah worked at TwoSigma","elijah likes mango","stefan used to work at IBM","elijah likes to go biking","stefan likes to bake sourdough"],"question":"Whose favorite food is better, Elijah's or Stefan's?exit","chat_history":["Human: What is Elijah's favorite food?","AI: Mango","Human: Where did Elijah work?","AI: Elijah worked at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__SEQUENCE_ID":9,"__PRIOR_STEP":"terminal"},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:46.134394","action":"human_converse","inputs":{"user_question":"What is Elijah's favorite food?"},"sequence_id":0}
+{"type":"end_entry","end_time":"2024-05-04T22:54:46.134592","action":"human_converse","result":{"question":"What is Elijah's favorite food?"},"exception":null,"state":{"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?"],"__SEQUENCE_ID":0,"__PRIOR_STEP":"human_converse"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:46.135033","action":"ai_converse","inputs":{},"sequence_id":1}
+{"type":"end_entry","end_time":"2024-05-04T22:54:47.428816","action":"ai_converse","result":{"conversational_rag_response":"Mango."},"exception":null,"state":{"question":"What is Elijah's favorite food?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango."],"__SEQUENCE_ID":1,"__PRIOR_STEP":"ai_converse"},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:47.429279","action":"human_converse","inputs":{"user_question":"Where did Elijah work?"},"sequence_id":2}
+{"type":"end_entry","end_time":"2024-05-04T22:54:47.429767","action":"human_converse","result":{"question":"Where did Elijah work?"},"exception":null,"state":{"question":"Where did Elijah work?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango.","Human: Where did Elijah work?"],"__SEQUENCE_ID":2,"__PRIOR_STEP":"human_converse"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:47.430214","action":"ai_converse","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:54:48.760205","action":"ai_converse","result":{"conversational_rag_response":"Elijah works at TwoSigma."},"exception":null,"state":{"question":"Where did Elijah work?","chat_history":["Human: What is Elijah's favorite food?","AI: Mango.","Human: Where did Elijah work?","AI: Elijah works at TwoSigma."],"__SEQUENCE_ID":3,"__PRIOR_STEP":"ai_converse"},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:48.760557","action":"human_converse","inputs":{"user_question":"Where did Stefan workWhat does Elijah like to do?"},"sequence_id":4}
+{"type":"end_entry","end_time":"2024-05-04T22:54:48.760725","action":"human_converse","result":{"question":"Where did Stefan workWhat does Elijah like to do?"},"exception":null,"state":{"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 works at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?"],"__SEQUENCE_ID":4,"__PRIOR_STEP":"human_converse"},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:48.761059","action":"ai_converse","inputs":{},"sequence_id":5}
+{"type":"end_entry","end_time":"2024-05-04T22:54:49.765144","action":"ai_converse","result":{"conversational_rag_response":"Elijah likes to go biking."},"exception":null,"state":{"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 works at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking."],"__SEQUENCE_ID":5,"__PRIOR_STEP":"ai_converse"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:49.765615","action":"human_converse","inputs":{"user_question":"What is Stefan's favorite food?"},"sequence_id":6}
+{"type":"end_entry","end_time":"2024-05-04T22:54:49.766337","action":"human_converse","result":{"question":"What is Stefan's favorite food?"},"exception":null,"state":{"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 works at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?"],"__SEQUENCE_ID":6,"__PRIOR_STEP":"human_converse"},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:49.767015","action":"ai_converse","inputs":{},"sequence_id":7}
+{"type":"end_entry","end_time":"2024-05-04T22:54:50.786034","action":"ai_converse","result":{"conversational_rag_response":"Tacos."},"exception":null,"state":{"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 works at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos."],"__SEQUENCE_ID":7,"__PRIOR_STEP":"ai_converse"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:50.786526","action":"human_converse","inputs":{"user_question":"Whose favorite food is better, Elijah's or Stefan's?exit"},"sequence_id":8}
+{"type":"end_entry","end_time":"2024-05-04T22:54:50.786913","action":"human_converse","result":{"question":"Whose favorite food is better, Elijah's or Stefan's?exit"},"exception":null,"state":{"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 works at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos.","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__SEQUENCE_ID":8,"__PRIOR_STEP":"human_converse"},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:50.787276","action":"terminal","inputs":{},"sequence_id":9}
+{"type":"end_entry","end_time":"2024-05-04T22:54:50.787473","action":"terminal","result":{"chat_history":["Human: What is Elijah's favorite food?","AI: Mango.","Human: Where did Elijah work?","AI: Elijah works at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos.","Human: Whose favorite food is better, Elijah's or Stefan's?exit"]},"exception":null,"state":{"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 works at TwoSigma.","Human: Where did Stefan workWhat does Elijah like to do?","AI: Elijah likes to go biking.","Human: What is Stefan's favorite food?","AI: Tacos.","Human: Whose favorite food is better, Elijah's or Stefan's?exit"],"__SEQUENCE_ID":9,"__PRIOR_STEP":"terminal"},"sequence_id":9}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json
index a4792683..8814dc9e 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-1/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 1"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 1"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl
index 7c5bb681..e69de29b 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-1/log.jsonl
@@ -1,4 +0,0 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.046765","action":"counter","inputs":{},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.048526","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__SEQUENCE_ID":0,"__PRIOR_STEP":"counter"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.049071","action":"result","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.049729","action":"result","result":{"counter":1},"exception":null,"state":{"counter":1,"__SEQUENCE_ID":1,"__PRIOR_STEP":"result"},"sequence_id":1}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json
index 1e4e3098..20319f9c 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-10/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 10"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 10"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl
index 58db6040..e69de29b 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-10/log.jsonl
@@ -1,22 +0,0 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.107962","action":"counter","inputs":{},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.108530","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__SEQUENCE_ID":0,"__PRIOR_STEP":"counter"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.108636","action":"counter","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.109053","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__SEQUENCE_ID":1,"__PRIOR_STEP":"counter"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.109120","action":"counter","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.109497","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__SEQUENCE_ID":2,"__PRIOR_STEP":"counter"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.109580","action":"counter","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.109953","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__SEQUENCE_ID":3,"__PRIOR_STEP":"counter"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.110013","action":"counter","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.110491","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__SEQUENCE_ID":4,"__PRIOR_STEP":"counter"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.110546","action":"counter","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.110881","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__SEQUENCE_ID":5,"__PRIOR_STEP":"counter"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.110932","action":"counter","inputs":{},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.111246","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__SEQUENCE_ID":6,"__PRIOR_STEP":"counter"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.111294","action":"counter","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.111613","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__SEQUENCE_ID":7,"__PRIOR_STEP":"counter"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.111662","action":"counter","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.111973","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__SEQUENCE_ID":8,"__PRIOR_STEP":"counter"},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.112020","action":"counter","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.112424","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__SEQUENCE_ID":9,"__PRIOR_STEP":"counter"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.112470","action":"result","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.112774","action":"result","result":{"counter":10},"exception":null,"state":{"counter":10,"__SEQUENCE_ID":10,"__PRIOR_STEP":"result"},"sequence_id":10}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json
index 70332e39..76493612 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-100/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 100"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 100"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl
index 73b8267e..e69de29b 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-100/log.jsonl
@@ -1,202 +0,0 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.116062","action":"counter","inputs":{},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.116428","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__SEQUENCE_ID":0,"__PRIOR_STEP":"counter"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.116492","action":"counter","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.116827","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__SEQUENCE_ID":1,"__PRIOR_STEP":"counter"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.116880","action":"counter","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.117203","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__SEQUENCE_ID":2,"__PRIOR_STEP":"counter"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.117253","action":"counter","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.117578","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__SEQUENCE_ID":3,"__PRIOR_STEP":"counter"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.117626","action":"counter","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.117945","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__SEQUENCE_ID":4,"__PRIOR_STEP":"counter"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.117995","action":"counter","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.118321","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__SEQUENCE_ID":5,"__PRIOR_STEP":"counter"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.118370","action":"counter","inputs":{},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.118677","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__SEQUENCE_ID":6,"__PRIOR_STEP":"counter"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.118726","action":"counter","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.119071","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__SEQUENCE_ID":7,"__PRIOR_STEP":"counter"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.119131","action":"counter","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.119487","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__SEQUENCE_ID":8,"__PRIOR_STEP":"counter"},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.119577","action":"counter","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.119975","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__SEQUENCE_ID":9,"__PRIOR_STEP":"counter"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.120038","action":"counter","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.120400","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__SEQUENCE_ID":10,"__PRIOR_STEP":"counter"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.120469","action":"counter","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.120866","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__SEQUENCE_ID":11,"__PRIOR_STEP":"counter"},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.120966","action":"counter","inputs":{},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.121444","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__SEQUENCE_ID":12,"__PRIOR_STEP":"counter"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.121518","action":"counter","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.121909","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__SEQUENCE_ID":13,"__PRIOR_STEP":"counter"},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.121974","action":"counter","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.122351","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__SEQUENCE_ID":14,"__PRIOR_STEP":"counter"},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.122406","action":"counter","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.122833","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__SEQUENCE_ID":15,"__PRIOR_STEP":"counter"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.122903","action":"counter","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.123258","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__SEQUENCE_ID":16,"__PRIOR_STEP":"counter"},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.123312","action":"counter","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.123647","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__SEQUENCE_ID":17,"__PRIOR_STEP":"counter"},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.123698","action":"counter","inputs":{},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.124041","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__SEQUENCE_ID":18,"__PRIOR_STEP":"counter"},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.124088","action":"counter","inputs":{},"sequence_id":19}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.124391","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__SEQUENCE_ID":19,"__PRIOR_STEP":"counter"},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.124436","action":"counter","inputs":{},"sequence_id":20}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.124807","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__SEQUENCE_ID":20,"__PRIOR_STEP":"counter"},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.124853","action":"counter","inputs":{},"sequence_id":21}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.125180","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__SEQUENCE_ID":21,"__PRIOR_STEP":"counter"},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.125234","action":"counter","inputs":{},"sequence_id":22}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.125597","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__SEQUENCE_ID":22,"__PRIOR_STEP":"counter"},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.125677","action":"counter","inputs":{},"sequence_id":23}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.126024","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__SEQUENCE_ID":23,"__PRIOR_STEP":"counter"},"sequence_id":23}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.126077","action":"counter","inputs":{},"sequence_id":24}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.126406","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__SEQUENCE_ID":24,"__PRIOR_STEP":"counter"},"sequence_id":24}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.126454","action":"counter","inputs":{},"sequence_id":25}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.126783","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__SEQUENCE_ID":25,"__PRIOR_STEP":"counter"},"sequence_id":25}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.126835","action":"counter","inputs":{},"sequence_id":26}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.127181","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__SEQUENCE_ID":26,"__PRIOR_STEP":"counter"},"sequence_id":26}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.127250","action":"counter","inputs":{},"sequence_id":27}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.127586","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__SEQUENCE_ID":27,"__PRIOR_STEP":"counter"},"sequence_id":27}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.127635","action":"counter","inputs":{},"sequence_id":28}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.127979","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__SEQUENCE_ID":28,"__PRIOR_STEP":"counter"},"sequence_id":28}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.128030","action":"counter","inputs":{},"sequence_id":29}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.128364","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__SEQUENCE_ID":29,"__PRIOR_STEP":"counter"},"sequence_id":29}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.128416","action":"counter","inputs":{},"sequence_id":30}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.128798","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__SEQUENCE_ID":30,"__PRIOR_STEP":"counter"},"sequence_id":30}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.128879","action":"counter","inputs":{},"sequence_id":31}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.129272","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__SEQUENCE_ID":31,"__PRIOR_STEP":"counter"},"sequence_id":31}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.129327","action":"counter","inputs":{},"sequence_id":32}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.129681","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__SEQUENCE_ID":32,"__PRIOR_STEP":"counter"},"sequence_id":32}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.129738","action":"counter","inputs":{},"sequence_id":33}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.130108","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__SEQUENCE_ID":33,"__PRIOR_STEP":"counter"},"sequence_id":33}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.130164","action":"counter","inputs":{},"sequence_id":34}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.130680","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__SEQUENCE_ID":34,"__PRIOR_STEP":"counter"},"sequence_id":34}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.130732","action":"counter","inputs":{},"sequence_id":35}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.131075","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__SEQUENCE_ID":35,"__PRIOR_STEP":"counter"},"sequence_id":35}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.131129","action":"counter","inputs":{},"sequence_id":36}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.131472","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__SEQUENCE_ID":36,"__PRIOR_STEP":"counter"},"sequence_id":36}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.131522","action":"counter","inputs":{},"sequence_id":37}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.131843","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__SEQUENCE_ID":37,"__PRIOR_STEP":"counter"},"sequence_id":37}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.131890","action":"counter","inputs":{},"sequence_id":38}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.132245","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__SEQUENCE_ID":38,"__PRIOR_STEP":"counter"},"sequence_id":38}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.132296","action":"counter","inputs":{},"sequence_id":39}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.132626","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__SEQUENCE_ID":39,"__PRIOR_STEP":"counter"},"sequence_id":39}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.132671","action":"counter","inputs":{},"sequence_id":40}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.132986","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__SEQUENCE_ID":40,"__PRIOR_STEP":"counter"},"sequence_id":40}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.133030","action":"counter","inputs":{},"sequence_id":41}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.133359","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__SEQUENCE_ID":41,"__PRIOR_STEP":"counter"},"sequence_id":41}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.133405","action":"counter","inputs":{},"sequence_id":42}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.133704","action":"counter","result":{"counter":43},"exception":null,"state":{"counter":43,"__SEQUENCE_ID":42,"__PRIOR_STEP":"counter"},"sequence_id":42}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.133750","action":"counter","inputs":{},"sequence_id":43}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.134063","action":"counter","result":{"counter":44},"exception":null,"state":{"counter":44,"__SEQUENCE_ID":43,"__PRIOR_STEP":"counter"},"sequence_id":43}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.134108","action":"counter","inputs":{},"sequence_id":44}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.134419","action":"counter","result":{"counter":45},"exception":null,"state":{"counter":45,"__SEQUENCE_ID":44,"__PRIOR_STEP":"counter"},"sequence_id":44}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.134464","action":"counter","inputs":{},"sequence_id":45}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.134767","action":"counter","result":{"counter":46},"exception":null,"state":{"counter":46,"__SEQUENCE_ID":45,"__PRIOR_STEP":"counter"},"sequence_id":45}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.134811","action":"counter","inputs":{},"sequence_id":46}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.135120","action":"counter","result":{"counter":47},"exception":null,"state":{"counter":47,"__SEQUENCE_ID":46,"__PRIOR_STEP":"counter"},"sequence_id":46}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.135165","action":"counter","inputs":{},"sequence_id":47}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.135489","action":"counter","result":{"counter":48},"exception":null,"state":{"counter":48,"__SEQUENCE_ID":47,"__PRIOR_STEP":"counter"},"sequence_id":47}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.135535","action":"counter","inputs":{},"sequence_id":48}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.135849","action":"counter","result":{"counter":49},"exception":null,"state":{"counter":49,"__SEQUENCE_ID":48,"__PRIOR_STEP":"counter"},"sequence_id":48}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.135897","action":"counter","inputs":{},"sequence_id":49}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.136208","action":"counter","result":{"counter":50},"exception":null,"state":{"counter":50,"__SEQUENCE_ID":49,"__PRIOR_STEP":"counter"},"sequence_id":49}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.136253","action":"counter","inputs":{},"sequence_id":50}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.136569","action":"counter","result":{"counter":51},"exception":null,"state":{"counter":51,"__SEQUENCE_ID":50,"__PRIOR_STEP":"counter"},"sequence_id":50}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.136627","action":"counter","inputs":{},"sequence_id":51}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.137212","action":"counter","result":{"counter":52},"exception":null,"state":{"counter":52,"__SEQUENCE_ID":51,"__PRIOR_STEP":"counter"},"sequence_id":51}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.137290","action":"counter","inputs":{},"sequence_id":52}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.137680","action":"counter","result":{"counter":53},"exception":null,"state":{"counter":53,"__SEQUENCE_ID":52,"__PRIOR_STEP":"counter"},"sequence_id":52}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.137769","action":"counter","inputs":{},"sequence_id":53}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.138194","action":"counter","result":{"counter":54},"exception":null,"state":{"counter":54,"__SEQUENCE_ID":53,"__PRIOR_STEP":"counter"},"sequence_id":53}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.138278","action":"counter","inputs":{},"sequence_id":54}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.138653","action":"counter","result":{"counter":55},"exception":null,"state":{"counter":55,"__SEQUENCE_ID":54,"__PRIOR_STEP":"counter"},"sequence_id":54}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.138710","action":"counter","inputs":{},"sequence_id":55}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.139066","action":"counter","result":{"counter":56},"exception":null,"state":{"counter":56,"__SEQUENCE_ID":55,"__PRIOR_STEP":"counter"},"sequence_id":55}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.139130","action":"counter","inputs":{},"sequence_id":56}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.139481","action":"counter","result":{"counter":57},"exception":null,"state":{"counter":57,"__SEQUENCE_ID":56,"__PRIOR_STEP":"counter"},"sequence_id":56}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.139548","action":"counter","inputs":{},"sequence_id":57}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.139913","action":"counter","result":{"counter":58},"exception":null,"state":{"counter":58,"__SEQUENCE_ID":57,"__PRIOR_STEP":"counter"},"sequence_id":57}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.139970","action":"counter","inputs":{},"sequence_id":58}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.140315","action":"counter","result":{"counter":59},"exception":null,"state":{"counter":59,"__SEQUENCE_ID":58,"__PRIOR_STEP":"counter"},"sequence_id":58}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.140370","action":"counter","inputs":{},"sequence_id":59}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.140701","action":"counter","result":{"counter":60},"exception":null,"state":{"counter":60,"__SEQUENCE_ID":59,"__PRIOR_STEP":"counter"},"sequence_id":59}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.140751","action":"counter","inputs":{},"sequence_id":60}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.141063","action":"counter","result":{"counter":61},"exception":null,"state":{"counter":61,"__SEQUENCE_ID":60,"__PRIOR_STEP":"counter"},"sequence_id":60}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.141110","action":"counter","inputs":{},"sequence_id":61}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.141415","action":"counter","result":{"counter":62},"exception":null,"state":{"counter":62,"__SEQUENCE_ID":61,"__PRIOR_STEP":"counter"},"sequence_id":61}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.141460","action":"counter","inputs":{},"sequence_id":62}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.141776","action":"counter","result":{"counter":63},"exception":null,"state":{"counter":63,"__SEQUENCE_ID":62,"__PRIOR_STEP":"counter"},"sequence_id":62}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.141822","action":"counter","inputs":{},"sequence_id":63}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.142132","action":"counter","result":{"counter":64},"exception":null,"state":{"counter":64,"__SEQUENCE_ID":63,"__PRIOR_STEP":"counter"},"sequence_id":63}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.142176","action":"counter","inputs":{},"sequence_id":64}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.142491","action":"counter","result":{"counter":65},"exception":null,"state":{"counter":65,"__SEQUENCE_ID":64,"__PRIOR_STEP":"counter"},"sequence_id":64}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.142542","action":"counter","inputs":{},"sequence_id":65}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.142857","action":"counter","result":{"counter":66},"exception":null,"state":{"counter":66,"__SEQUENCE_ID":65,"__PRIOR_STEP":"counter"},"sequence_id":65}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.142902","action":"counter","inputs":{},"sequence_id":66}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.143220","action":"counter","result":{"counter":67},"exception":null,"state":{"counter":67,"__SEQUENCE_ID":66,"__PRIOR_STEP":"counter"},"sequence_id":66}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.143264","action":"counter","inputs":{},"sequence_id":67}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.143943","action":"counter","result":{"counter":68},"exception":null,"state":{"counter":68,"__SEQUENCE_ID":67,"__PRIOR_STEP":"counter"},"sequence_id":67}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.143988","action":"counter","inputs":{},"sequence_id":68}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.144304","action":"counter","result":{"counter":69},"exception":null,"state":{"counter":69,"__SEQUENCE_ID":68,"__PRIOR_STEP":"counter"},"sequence_id":68}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.144348","action":"counter","inputs":{},"sequence_id":69}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.144669","action":"counter","result":{"counter":70},"exception":null,"state":{"counter":70,"__SEQUENCE_ID":69,"__PRIOR_STEP":"counter"},"sequence_id":69}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.144715","action":"counter","inputs":{},"sequence_id":70}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.145019","action":"counter","result":{"counter":71},"exception":null,"state":{"counter":71,"__SEQUENCE_ID":70,"__PRIOR_STEP":"counter"},"sequence_id":70}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.145064","action":"counter","inputs":{},"sequence_id":71}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.145371","action":"counter","result":{"counter":72},"exception":null,"state":{"counter":72,"__SEQUENCE_ID":71,"__PRIOR_STEP":"counter"},"sequence_id":71}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.145416","action":"counter","inputs":{},"sequence_id":72}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.145774","action":"counter","result":{"counter":73},"exception":null,"state":{"counter":73,"__SEQUENCE_ID":72,"__PRIOR_STEP":"counter"},"sequence_id":72}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.145820","action":"counter","inputs":{},"sequence_id":73}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.146127","action":"counter","result":{"counter":74},"exception":null,"state":{"counter":74,"__SEQUENCE_ID":73,"__PRIOR_STEP":"counter"},"sequence_id":73}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.146171","action":"counter","inputs":{},"sequence_id":74}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.146498","action":"counter","result":{"counter":75},"exception":null,"state":{"counter":75,"__SEQUENCE_ID":74,"__PRIOR_STEP":"counter"},"sequence_id":74}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.146574","action":"counter","inputs":{},"sequence_id":75}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.146942","action":"counter","result":{"counter":76},"exception":null,"state":{"counter":76,"__SEQUENCE_ID":75,"__PRIOR_STEP":"counter"},"sequence_id":75}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.147009","action":"counter","inputs":{},"sequence_id":76}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.147362","action":"counter","result":{"counter":77},"exception":null,"state":{"counter":77,"__SEQUENCE_ID":76,"__PRIOR_STEP":"counter"},"sequence_id":76}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.147421","action":"counter","inputs":{},"sequence_id":77}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.147806","action":"counter","result":{"counter":78},"exception":null,"state":{"counter":78,"__SEQUENCE_ID":77,"__PRIOR_STEP":"counter"},"sequence_id":77}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.147877","action":"counter","inputs":{},"sequence_id":78}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.148234","action":"counter","result":{"counter":79},"exception":null,"state":{"counter":79,"__SEQUENCE_ID":78,"__PRIOR_STEP":"counter"},"sequence_id":78}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.148296","action":"counter","inputs":{},"sequence_id":79}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.148676","action":"counter","result":{"counter":80},"exception":null,"state":{"counter":80,"__SEQUENCE_ID":79,"__PRIOR_STEP":"counter"},"sequence_id":79}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.148744","action":"counter","inputs":{},"sequence_id":80}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.149120","action":"counter","result":{"counter":81},"exception":null,"state":{"counter":81,"__SEQUENCE_ID":80,"__PRIOR_STEP":"counter"},"sequence_id":80}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.149185","action":"counter","inputs":{},"sequence_id":81}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.149531","action":"counter","result":{"counter":82},"exception":null,"state":{"counter":82,"__SEQUENCE_ID":81,"__PRIOR_STEP":"counter"},"sequence_id":81}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.149582","action":"counter","inputs":{},"sequence_id":82}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.149904","action":"counter","result":{"counter":83},"exception":null,"state":{"counter":83,"__SEQUENCE_ID":82,"__PRIOR_STEP":"counter"},"sequence_id":82}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.149965","action":"counter","inputs":{},"sequence_id":83}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.150291","action":"counter","result":{"counter":84},"exception":null,"state":{"counter":84,"__SEQUENCE_ID":83,"__PRIOR_STEP":"counter"},"sequence_id":83}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.150339","action":"counter","inputs":{},"sequence_id":84}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.150691","action":"counter","result":{"counter":85},"exception":null,"state":{"counter":85,"__SEQUENCE_ID":84,"__PRIOR_STEP":"counter"},"sequence_id":84}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.150738","action":"counter","inputs":{},"sequence_id":85}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.151043","action":"counter","result":{"counter":86},"exception":null,"state":{"counter":86,"__SEQUENCE_ID":85,"__PRIOR_STEP":"counter"},"sequence_id":85}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.151088","action":"counter","inputs":{},"sequence_id":86}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.151431","action":"counter","result":{"counter":87},"exception":null,"state":{"counter":87,"__SEQUENCE_ID":86,"__PRIOR_STEP":"counter"},"sequence_id":86}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.151479","action":"counter","inputs":{},"sequence_id":87}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.151793","action":"counter","result":{"counter":88},"exception":null,"state":{"counter":88,"__SEQUENCE_ID":87,"__PRIOR_STEP":"counter"},"sequence_id":87}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.151837","action":"counter","inputs":{},"sequence_id":88}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.152143","action":"counter","result":{"counter":89},"exception":null,"state":{"counter":89,"__SEQUENCE_ID":88,"__PRIOR_STEP":"counter"},"sequence_id":88}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.152187","action":"counter","inputs":{},"sequence_id":89}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.152504","action":"counter","result":{"counter":90},"exception":null,"state":{"counter":90,"__SEQUENCE_ID":89,"__PRIOR_STEP":"counter"},"sequence_id":89}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.152548","action":"counter","inputs":{},"sequence_id":90}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.152853","action":"counter","result":{"counter":91},"exception":null,"state":{"counter":91,"__SEQUENCE_ID":90,"__PRIOR_STEP":"counter"},"sequence_id":90}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.152897","action":"counter","inputs":{},"sequence_id":91}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.153208","action":"counter","result":{"counter":92},"exception":null,"state":{"counter":92,"__SEQUENCE_ID":91,"__PRIOR_STEP":"counter"},"sequence_id":91}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.153251","action":"counter","inputs":{},"sequence_id":92}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.153564","action":"counter","result":{"counter":93},"exception":null,"state":{"counter":93,"__SEQUENCE_ID":92,"__PRIOR_STEP":"counter"},"sequence_id":92}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.153609","action":"counter","inputs":{},"sequence_id":93}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.153920","action":"counter","result":{"counter":94},"exception":null,"state":{"counter":94,"__SEQUENCE_ID":93,"__PRIOR_STEP":"counter"},"sequence_id":93}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.153963","action":"counter","inputs":{},"sequence_id":94}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.154254","action":"counter","result":{"counter":95},"exception":null,"state":{"counter":95,"__SEQUENCE_ID":94,"__PRIOR_STEP":"counter"},"sequence_id":94}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.154299","action":"counter","inputs":{},"sequence_id":95}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.154610","action":"counter","result":{"counter":96},"exception":null,"state":{"counter":96,"__SEQUENCE_ID":95,"__PRIOR_STEP":"counter"},"sequence_id":95}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.154654","action":"counter","inputs":{},"sequence_id":96}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.154963","action":"counter","result":{"counter":97},"exception":null,"state":{"counter":97,"__SEQUENCE_ID":96,"__PRIOR_STEP":"counter"},"sequence_id":96}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.155011","action":"counter","inputs":{},"sequence_id":97}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.155316","action":"counter","result":{"counter":98},"exception":null,"state":{"counter":98,"__SEQUENCE_ID":97,"__PRIOR_STEP":"counter"},"sequence_id":97}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.155369","action":"counter","inputs":{},"sequence_id":98}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.155679","action":"counter","result":{"counter":99},"exception":null,"state":{"counter":99,"__SEQUENCE_ID":98,"__PRIOR_STEP":"counter"},"sequence_id":98}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.155726","action":"counter","inputs":{},"sequence_id":99}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.156384","action":"counter","result":{"counter":100},"exception":null,"state":{"counter":100,"__SEQUENCE_ID":99,"__PRIOR_STEP":"counter"},"sequence_id":99}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.156455","action":"result","inputs":{},"sequence_id":100}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.156956","action":"result","result":{"counter":100},"exception":null,"state":{"counter":100,"__SEQUENCE_ID":100,"__PRIOR_STEP":"result"},"sequence_id":100}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json
index 5c9dbb1a..be5bcf4d 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-42/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 42"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 42"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl
index 27179717..e69de29b 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-42/log.jsonl
@@ -1,86 +0,0 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.184486","action":"counter","inputs":{},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.184913","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__SEQUENCE_ID":0,"__PRIOR_STEP":"counter"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.184987","action":"counter","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.185342","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__SEQUENCE_ID":1,"__PRIOR_STEP":"counter"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.185400","action":"counter","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.185729","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__SEQUENCE_ID":2,"__PRIOR_STEP":"counter"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.185779","action":"counter","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.186100","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__SEQUENCE_ID":3,"__PRIOR_STEP":"counter"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.186148","action":"counter","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.186486","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__SEQUENCE_ID":4,"__PRIOR_STEP":"counter"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.186533","action":"counter","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.186966","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__SEQUENCE_ID":5,"__PRIOR_STEP":"counter"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.187016","action":"counter","inputs":{},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.187382","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__SEQUENCE_ID":6,"__PRIOR_STEP":"counter"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.187430","action":"counter","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.187759","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__SEQUENCE_ID":7,"__PRIOR_STEP":"counter"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.187806","action":"counter","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.188134","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__SEQUENCE_ID":8,"__PRIOR_STEP":"counter"},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.188181","action":"counter","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.188504","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__SEQUENCE_ID":9,"__PRIOR_STEP":"counter"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.188552","action":"counter","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.188855","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__SEQUENCE_ID":10,"__PRIOR_STEP":"counter"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.188902","action":"counter","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.189219","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__SEQUENCE_ID":11,"__PRIOR_STEP":"counter"},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.189266","action":"counter","inputs":{},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.189610","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__SEQUENCE_ID":12,"__PRIOR_STEP":"counter"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.189658","action":"counter","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.189996","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__SEQUENCE_ID":13,"__PRIOR_STEP":"counter"},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.190041","action":"counter","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.190412","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__SEQUENCE_ID":14,"__PRIOR_STEP":"counter"},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.190459","action":"counter","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.190794","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__SEQUENCE_ID":15,"__PRIOR_STEP":"counter"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.190851","action":"counter","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.191206","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__SEQUENCE_ID":16,"__PRIOR_STEP":"counter"},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.191256","action":"counter","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.191584","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__SEQUENCE_ID":17,"__PRIOR_STEP":"counter"},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.191637","action":"counter","inputs":{},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.191992","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__SEQUENCE_ID":18,"__PRIOR_STEP":"counter"},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.192047","action":"counter","inputs":{},"sequence_id":19}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.192410","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__SEQUENCE_ID":19,"__PRIOR_STEP":"counter"},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.192466","action":"counter","inputs":{},"sequence_id":20}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.192817","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__SEQUENCE_ID":20,"__PRIOR_STEP":"counter"},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.192886","action":"counter","inputs":{},"sequence_id":21}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.193236","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__SEQUENCE_ID":21,"__PRIOR_STEP":"counter"},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.193291","action":"counter","inputs":{},"sequence_id":22}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.193632","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__SEQUENCE_ID":22,"__PRIOR_STEP":"counter"},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.193690","action":"counter","inputs":{},"sequence_id":23}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.194036","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__SEQUENCE_ID":23,"__PRIOR_STEP":"counter"},"sequence_id":23}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.194084","action":"counter","inputs":{},"sequence_id":24}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.194403","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__SEQUENCE_ID":24,"__PRIOR_STEP":"counter"},"sequence_id":24}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.194448","action":"counter","inputs":{},"sequence_id":25}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.194754","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__SEQUENCE_ID":25,"__PRIOR_STEP":"counter"},"sequence_id":25}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.194804","action":"counter","inputs":{},"sequence_id":26}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.195117","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__SEQUENCE_ID":26,"__PRIOR_STEP":"counter"},"sequence_id":26}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.195161","action":"counter","inputs":{},"sequence_id":27}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.195476","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__SEQUENCE_ID":27,"__PRIOR_STEP":"counter"},"sequence_id":27}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.195521","action":"counter","inputs":{},"sequence_id":28}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.195834","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__SEQUENCE_ID":28,"__PRIOR_STEP":"counter"},"sequence_id":28}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.195878","action":"counter","inputs":{},"sequence_id":29}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.196213","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__SEQUENCE_ID":29,"__PRIOR_STEP":"counter"},"sequence_id":29}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.196258","action":"counter","inputs":{},"sequence_id":30}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.196581","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__SEQUENCE_ID":30,"__PRIOR_STEP":"counter"},"sequence_id":30}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.196626","action":"counter","inputs":{},"sequence_id":31}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.196948","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__SEQUENCE_ID":31,"__PRIOR_STEP":"counter"},"sequence_id":31}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.196993","action":"counter","inputs":{},"sequence_id":32}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.197397","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__SEQUENCE_ID":32,"__PRIOR_STEP":"counter"},"sequence_id":32}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.197442","action":"counter","inputs":{},"sequence_id":33}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.197766","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__SEQUENCE_ID":33,"__PRIOR_STEP":"counter"},"sequence_id":33}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.197811","action":"counter","inputs":{},"sequence_id":34}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.198116","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__SEQUENCE_ID":34,"__PRIOR_STEP":"counter"},"sequence_id":34}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.198161","action":"counter","inputs":{},"sequence_id":35}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.198473","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__SEQUENCE_ID":35,"__PRIOR_STEP":"counter"},"sequence_id":35}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.198519","action":"counter","inputs":{},"sequence_id":36}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.198824","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__SEQUENCE_ID":36,"__PRIOR_STEP":"counter"},"sequence_id":36}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.198868","action":"counter","inputs":{},"sequence_id":37}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.199211","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__SEQUENCE_ID":37,"__PRIOR_STEP":"counter"},"sequence_id":37}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.199256","action":"counter","inputs":{},"sequence_id":38}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.199564","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__SEQUENCE_ID":38,"__PRIOR_STEP":"counter"},"sequence_id":38}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.199613","action":"counter","inputs":{},"sequence_id":39}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.199951","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__SEQUENCE_ID":39,"__PRIOR_STEP":"counter"},"sequence_id":39}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.199999","action":"counter","inputs":{},"sequence_id":40}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.200345","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__SEQUENCE_ID":40,"__PRIOR_STEP":"counter"},"sequence_id":40}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.200391","action":"counter","inputs":{},"sequence_id":41}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.200743","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__SEQUENCE_ID":41,"__PRIOR_STEP":"counter"},"sequence_id":41}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.200783","action":"result","inputs":{},"sequence_id":42}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.201166","action":"result","result":{"counter":42},"exception":null,"state":{"counter":42,"__SEQUENCE_ID":42,"__PRIOR_STEP":"result"},"sequence_id":42}
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json b/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json
index 51cf6527..c553f178 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-50/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n"}, {"type": "action", "name": "result", "reads": ["counter"], "writes": [], "code": "class Result(Action):\n def __init__(self, *fields: str):\n \"\"\"Represents a result action. This is purely a convenience class to\n pull data from state and give it out to the result. It does nothing to\n the state itself.\n\n :param fields: Fields to pull from the state and put into results\n \"\"\"\n super(Result, self).__init__()\n self._fields = fields\n\n def run(self, state: State) -> dict:\n return {key: value for key, value in state.get_all().items() if key in self._fields}\n\n def update(self, result: dict, state: State) -> State:\n return state # does not modify state in any way\n\n @property\n def reads(self) -> list[str]:\n return list(self._fields)\n\n @property\n def writes(self) -> list[str]:\n return []\n"}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 50"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "counter", "actions": [{"type": "action", "name": "counter", "reads": ["counter"], "writes": ["counter"], "code": "@action(reads=[\"counter\"], writes=[\"counter\"])\ndef counter(state: State) -> Tuple[dict, State]:\n result = {\"counter\": state[\"counter\"] + 1}\n print(f\"counted to {result['counter']}\")\n return result, state.update(**result)\n", "inputs": []}, {"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", "inputs": []}], "transitions": [{"type": "transition", "from_": "counter", "to": "counter", "condition": "counter < 50"}, {"type": "transition", "from_": "counter", "to": "result", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl b/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl
index 030c56a6..e69de29b 100644
--- a/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:counter/count-to-50/log.jsonl
@@ -1,102 +0,0 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.160726","action":"counter","inputs":{},"sequence_id":0}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.161179","action":"counter","result":{"counter":1},"exception":null,"state":{"counter":1,"__SEQUENCE_ID":0,"__PRIOR_STEP":"counter"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.161252","action":"counter","inputs":{},"sequence_id":1}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.161594","action":"counter","result":{"counter":2},"exception":null,"state":{"counter":2,"__SEQUENCE_ID":1,"__PRIOR_STEP":"counter"},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.161645","action":"counter","inputs":{},"sequence_id":2}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.161964","action":"counter","result":{"counter":3},"exception":null,"state":{"counter":3,"__SEQUENCE_ID":2,"__PRIOR_STEP":"counter"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.162013","action":"counter","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.162360","action":"counter","result":{"counter":4},"exception":null,"state":{"counter":4,"__SEQUENCE_ID":3,"__PRIOR_STEP":"counter"},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.162411","action":"counter","inputs":{},"sequence_id":4}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.162772","action":"counter","result":{"counter":5},"exception":null,"state":{"counter":5,"__SEQUENCE_ID":4,"__PRIOR_STEP":"counter"},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.162837","action":"counter","inputs":{},"sequence_id":5}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.163206","action":"counter","result":{"counter":6},"exception":null,"state":{"counter":6,"__SEQUENCE_ID":5,"__PRIOR_STEP":"counter"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.163267","action":"counter","inputs":{},"sequence_id":6}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.163658","action":"counter","result":{"counter":7},"exception":null,"state":{"counter":7,"__SEQUENCE_ID":6,"__PRIOR_STEP":"counter"},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.163730","action":"counter","inputs":{},"sequence_id":7}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.164105","action":"counter","result":{"counter":8},"exception":null,"state":{"counter":8,"__SEQUENCE_ID":7,"__PRIOR_STEP":"counter"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.164195","action":"counter","inputs":{},"sequence_id":8}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.164587","action":"counter","result":{"counter":9},"exception":null,"state":{"counter":9,"__SEQUENCE_ID":8,"__PRIOR_STEP":"counter"},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.164645","action":"counter","inputs":{},"sequence_id":9}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.165064","action":"counter","result":{"counter":10},"exception":null,"state":{"counter":10,"__SEQUENCE_ID":9,"__PRIOR_STEP":"counter"},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.165141","action":"counter","inputs":{},"sequence_id":10}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.165533","action":"counter","result":{"counter":11},"exception":null,"state":{"counter":11,"__SEQUENCE_ID":10,"__PRIOR_STEP":"counter"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.165590","action":"counter","inputs":{},"sequence_id":11}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.165924","action":"counter","result":{"counter":12},"exception":null,"state":{"counter":12,"__SEQUENCE_ID":11,"__PRIOR_STEP":"counter"},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.165974","action":"counter","inputs":{},"sequence_id":12}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.166301","action":"counter","result":{"counter":13},"exception":null,"state":{"counter":13,"__SEQUENCE_ID":12,"__PRIOR_STEP":"counter"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.166362","action":"counter","inputs":{},"sequence_id":13}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.166724","action":"counter","result":{"counter":14},"exception":null,"state":{"counter":14,"__SEQUENCE_ID":13,"__PRIOR_STEP":"counter"},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.166775","action":"counter","inputs":{},"sequence_id":14}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.167103","action":"counter","result":{"counter":15},"exception":null,"state":{"counter":15,"__SEQUENCE_ID":14,"__PRIOR_STEP":"counter"},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.167150","action":"counter","inputs":{},"sequence_id":15}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.167473","action":"counter","result":{"counter":16},"exception":null,"state":{"counter":16,"__SEQUENCE_ID":15,"__PRIOR_STEP":"counter"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.167520","action":"counter","inputs":{},"sequence_id":16}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.167841","action":"counter","result":{"counter":17},"exception":null,"state":{"counter":17,"__SEQUENCE_ID":16,"__PRIOR_STEP":"counter"},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.167886","action":"counter","inputs":{},"sequence_id":17}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.168213","action":"counter","result":{"counter":18},"exception":null,"state":{"counter":18,"__SEQUENCE_ID":17,"__PRIOR_STEP":"counter"},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.168269","action":"counter","inputs":{},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.168609","action":"counter","result":{"counter":19},"exception":null,"state":{"counter":19,"__SEQUENCE_ID":18,"__PRIOR_STEP":"counter"},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.168657","action":"counter","inputs":{},"sequence_id":19}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.168963","action":"counter","result":{"counter":20},"exception":null,"state":{"counter":20,"__SEQUENCE_ID":19,"__PRIOR_STEP":"counter"},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.169009","action":"counter","inputs":{},"sequence_id":20}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.169351","action":"counter","result":{"counter":21},"exception":null,"state":{"counter":21,"__SEQUENCE_ID":20,"__PRIOR_STEP":"counter"},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.169396","action":"counter","inputs":{},"sequence_id":21}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.169847","action":"counter","result":{"counter":22},"exception":null,"state":{"counter":22,"__SEQUENCE_ID":21,"__PRIOR_STEP":"counter"},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.169893","action":"counter","inputs":{},"sequence_id":22}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.170219","action":"counter","result":{"counter":23},"exception":null,"state":{"counter":23,"__SEQUENCE_ID":22,"__PRIOR_STEP":"counter"},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.170265","action":"counter","inputs":{},"sequence_id":23}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.170565","action":"counter","result":{"counter":24},"exception":null,"state":{"counter":24,"__SEQUENCE_ID":23,"__PRIOR_STEP":"counter"},"sequence_id":23}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.170609","action":"counter","inputs":{},"sequence_id":24}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.170922","action":"counter","result":{"counter":25},"exception":null,"state":{"counter":25,"__SEQUENCE_ID":24,"__PRIOR_STEP":"counter"},"sequence_id":24}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.170966","action":"counter","inputs":{},"sequence_id":25}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.171267","action":"counter","result":{"counter":26},"exception":null,"state":{"counter":26,"__SEQUENCE_ID":25,"__PRIOR_STEP":"counter"},"sequence_id":25}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.171316","action":"counter","inputs":{},"sequence_id":26}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.171629","action":"counter","result":{"counter":27},"exception":null,"state":{"counter":27,"__SEQUENCE_ID":26,"__PRIOR_STEP":"counter"},"sequence_id":26}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.171674","action":"counter","inputs":{},"sequence_id":27}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.171977","action":"counter","result":{"counter":28},"exception":null,"state":{"counter":28,"__SEQUENCE_ID":27,"__PRIOR_STEP":"counter"},"sequence_id":27}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.172021","action":"counter","inputs":{},"sequence_id":28}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.172338","action":"counter","result":{"counter":29},"exception":null,"state":{"counter":29,"__SEQUENCE_ID":28,"__PRIOR_STEP":"counter"},"sequence_id":28}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.172382","action":"counter","inputs":{},"sequence_id":29}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.172689","action":"counter","result":{"counter":30},"exception":null,"state":{"counter":30,"__SEQUENCE_ID":29,"__PRIOR_STEP":"counter"},"sequence_id":29}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.172742","action":"counter","inputs":{},"sequence_id":30}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.173080","action":"counter","result":{"counter":31},"exception":null,"state":{"counter":31,"__SEQUENCE_ID":30,"__PRIOR_STEP":"counter"},"sequence_id":30}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.173128","action":"counter","inputs":{},"sequence_id":31}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.173459","action":"counter","result":{"counter":32},"exception":null,"state":{"counter":32,"__SEQUENCE_ID":31,"__PRIOR_STEP":"counter"},"sequence_id":31}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.173505","action":"counter","inputs":{},"sequence_id":32}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.173821","action":"counter","result":{"counter":33},"exception":null,"state":{"counter":33,"__SEQUENCE_ID":32,"__PRIOR_STEP":"counter"},"sequence_id":32}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.173877","action":"counter","inputs":{},"sequence_id":33}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.174219","action":"counter","result":{"counter":34},"exception":null,"state":{"counter":34,"__SEQUENCE_ID":33,"__PRIOR_STEP":"counter"},"sequence_id":33}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.174274","action":"counter","inputs":{},"sequence_id":34}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.174631","action":"counter","result":{"counter":35},"exception":null,"state":{"counter":35,"__SEQUENCE_ID":34,"__PRIOR_STEP":"counter"},"sequence_id":34}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.174713","action":"counter","inputs":{},"sequence_id":35}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.175068","action":"counter","result":{"counter":36},"exception":null,"state":{"counter":36,"__SEQUENCE_ID":35,"__PRIOR_STEP":"counter"},"sequence_id":35}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.175123","action":"counter","inputs":{},"sequence_id":36}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.175450","action":"counter","result":{"counter":37},"exception":null,"state":{"counter":37,"__SEQUENCE_ID":36,"__PRIOR_STEP":"counter"},"sequence_id":36}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.175498","action":"counter","inputs":{},"sequence_id":37}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.175831","action":"counter","result":{"counter":38},"exception":null,"state":{"counter":38,"__SEQUENCE_ID":37,"__PRIOR_STEP":"counter"},"sequence_id":37}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.175892","action":"counter","inputs":{},"sequence_id":38}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.176261","action":"counter","result":{"counter":39},"exception":null,"state":{"counter":39,"__SEQUENCE_ID":38,"__PRIOR_STEP":"counter"},"sequence_id":38}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.176316","action":"counter","inputs":{},"sequence_id":39}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.176635","action":"counter","result":{"counter":40},"exception":null,"state":{"counter":40,"__SEQUENCE_ID":39,"__PRIOR_STEP":"counter"},"sequence_id":39}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.176681","action":"counter","inputs":{},"sequence_id":40}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.177347","action":"counter","result":{"counter":41},"exception":null,"state":{"counter":41,"__SEQUENCE_ID":40,"__PRIOR_STEP":"counter"},"sequence_id":40}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.177391","action":"counter","inputs":{},"sequence_id":41}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.177712","action":"counter","result":{"counter":42},"exception":null,"state":{"counter":42,"__SEQUENCE_ID":41,"__PRIOR_STEP":"counter"},"sequence_id":41}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.177758","action":"counter","inputs":{},"sequence_id":42}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.178097","action":"counter","result":{"counter":43},"exception":null,"state":{"counter":43,"__SEQUENCE_ID":42,"__PRIOR_STEP":"counter"},"sequence_id":42}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.178157","action":"counter","inputs":{},"sequence_id":43}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.178496","action":"counter","result":{"counter":44},"exception":null,"state":{"counter":44,"__SEQUENCE_ID":43,"__PRIOR_STEP":"counter"},"sequence_id":43}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.178544","action":"counter","inputs":{},"sequence_id":44}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.178855","action":"counter","result":{"counter":45},"exception":null,"state":{"counter":45,"__SEQUENCE_ID":44,"__PRIOR_STEP":"counter"},"sequence_id":44}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.178901","action":"counter","inputs":{},"sequence_id":45}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.179209","action":"counter","result":{"counter":46},"exception":null,"state":{"counter":46,"__SEQUENCE_ID":45,"__PRIOR_STEP":"counter"},"sequence_id":45}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.179254","action":"counter","inputs":{},"sequence_id":46}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.179567","action":"counter","result":{"counter":47},"exception":null,"state":{"counter":47,"__SEQUENCE_ID":46,"__PRIOR_STEP":"counter"},"sequence_id":46}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.179615","action":"counter","inputs":{},"sequence_id":47}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.179918","action":"counter","result":{"counter":48},"exception":null,"state":{"counter":48,"__SEQUENCE_ID":47,"__PRIOR_STEP":"counter"},"sequence_id":47}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.179962","action":"counter","inputs":{},"sequence_id":48}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.180273","action":"counter","result":{"counter":49},"exception":null,"state":{"counter":49,"__SEQUENCE_ID":48,"__PRIOR_STEP":"counter"},"sequence_id":48}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.180316","action":"counter","inputs":{},"sequence_id":49}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.180636","action":"counter","result":{"counter":50},"exception":null,"state":{"counter":50,"__SEQUENCE_ID":49,"__PRIOR_STEP":"counter"},"sequence_id":49}
-{"type":"begin_entry","start_time":"2024-03-18T15:42:00.180676","action":"result","inputs":{},"sequence_id":50}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.180994","action":"result","result":{"counter":50},"exception":null,"state":{"counter":50,"__SEQUENCE_ID":50,"__PRIOR_STEP":"result"},"sequence_id":50}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/graph.json
index cdbd9153..a8ed3d9a 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/graph.json
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt", "__tracer"]}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n", "inputs": ["__tracer"]}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": ["__tracer"]}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/log.jsonl
index 56b22eee..7df26670 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-1-giraffe/log.jsonl
@@ -1,182 +1,186 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:40:31.184625","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
-{"type":"begin_span","start_time":"2024-03-18T15:40:31.184749","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:31.184783","action_sequence_id":0,"span_id":"0:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:31.184848","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:31.184937","action":"check_safety","inputs":{},"sequence_id":1}
-{"type":"begin_span","start_time":"2024-03-18T15:40:31.184966","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:31.185001","action_sequence_id":1,"span_id":"1:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:31.185082","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:31.185154","action":"decide_mode","inputs":{},"sequence_id":2}
-{"type":"begin_span","start_time":"2024-03-18T15:40:31.185187","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:31.185209","action_sequence_id":2,"span_id":"2:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:31.185250","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:31.185282","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:31.206068","action_sequence_id":2,"span_id":"2:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:31.206379","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:32.325370","action_sequence_id":2,"span_id":"2:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:32.325511","action_sequence_id":2,"span_id":"2:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:32.325564","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:32.325615","action_sequence_id":2,"span_id":"2:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:32.325778","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:32.325956","action":"generate_image","inputs":{},"sequence_id":3}
-{"type":"begin_span","start_time":"2024-03-18T15:40:32.326044","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:32.347990","action_sequence_id":3,"span_id":"3:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:32.348090","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.312928","action_sequence_id":3,"span_id":"3:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.314113","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.314192","action_sequence_id":3,"span_id":"3:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:41.314390","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":3,"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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%3D","type":"image","role":"assistant"}},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:41.314742","action":"response","inputs":{},"sequence_id":4}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.314804","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.314837","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.314861","action_sequence_id":4,"span_id":"4:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.314879","action_sequence_id":4,"span_id":"4:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:41.314977","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":4,"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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%3D","type":"image","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:41.315142","action":"prompt","inputs":{"prompt":"Please write a function that queries the internet for the height of a giraffe"},"sequence_id":5}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.315195","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.315220","action_sequence_id":5,"span_id":"5:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:41.315352","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:41.315444","action":"check_safety","inputs":{},"sequence_id":6}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.315483","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.315503","action_sequence_id":6,"span_id":"6:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:41.315588","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:41.315673","action":"decide_mode","inputs":{},"sequence_id":7}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.315708","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.315743","action_sequence_id":7,"span_id":"7:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.315762","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.315782","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.328767","action_sequence_id":7,"span_id":"7:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.328894","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.725548","action_sequence_id":7,"span_id":"7:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.726569","action_sequence_id":7,"span_id":"7:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.726690","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.726754","action_sequence_id":7,"span_id":"7:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:41.726979","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:41.727719","action":"generate_code","inputs":{},"sequence_id":8}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.727853","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.727908","action_sequence_id":8,"span_id":"8:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.727952","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.727992","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:41.736540","action_sequence_id":8,"span_id":"8:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:41.736604","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.227862","action_sequence_id":8,"span_id":"8:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.228047","action_sequence_id":8,"span_id":"8:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.228089","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.228141","action_sequence_id":8,"span_id":"8:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:43.228360","action":"generate_code","result":{"response":{"content":"I'm unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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"}],"__SEQUENCE_ID":8,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"I'm unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"}},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:43.228663","action":"response","inputs":{},"sequence_id":9}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.228743","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.228781","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.228810","action_sequence_id":9,"span_id":"9:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.228831","action_sequence_id":9,"span_id":"9:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:43.228971","action":"response","result":{"chat_item":{"content":"I'm unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"I'm unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"}},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:43.229169","action":"prompt","inputs":{"prompt":"OK, just tell me, how tall is a giraffe?"},"sequence_id":10}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.229225","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.229267","action_sequence_id":10,"span_id":"10:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:43.229469","action":"prompt","result":{"chat_item":{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:43.229599","action":"check_safety","inputs":{},"sequence_id":11}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.229648","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.229676","action_sequence_id":11,"span_id":"11:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:43.229805","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:43.229926","action":"decide_mode","inputs":{},"sequence_id":12}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.229974","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.230001","action_sequence_id":12,"span_id":"12:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.230024","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.230065","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.244134","action_sequence_id":12,"span_id":"12:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.260320","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.701636","action_sequence_id":12,"span_id":"12:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.701704","action_sequence_id":12,"span_id":"12:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.701731","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.701760","action_sequence_id":12,"span_id":"12:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:43.701855","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:43.701957","action":"answer_question","inputs":{},"sequence_id":13}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.701993","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.702012","action_sequence_id":13,"span_id":"13:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.702026","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.702040","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:43.707976","action_sequence_id":13,"span_id":"13:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:43.710184","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.503128","action_sequence_id":13,"span_id":"13:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.503387","action_sequence_id":13,"span_id":"13:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.503430","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.503466","action_sequence_id":13,"span_id":"13:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:44.503620","action":"answer_question","result":{"response":{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"}},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:44.503781","action":"response","inputs":{},"sequence_id":14}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.503828","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.503898","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.503932","action_sequence_id":14,"span_id":"14:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.503950","action_sequence_id":14,"span_id":"14:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:44.504077","action":"response","result":{"chat_item":{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"}},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:44.504253","action":"prompt","inputs":{"prompt":"Please build me a giraffe"},"sequence_id":15}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.504295","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.504315","action_sequence_id":15,"span_id":"15:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:44.504473","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":15,"prompt":"Please build me a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:44.504567","action":"check_safety","inputs":{},"sequence_id":16}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.504600","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.504617","action_sequence_id":16,"span_id":"16:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:44.504715","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":16,"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:44.504811","action":"decide_mode","inputs":{},"sequence_id":17}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.504840","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.504857","action_sequence_id":17,"span_id":"17:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.504871","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.504887","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:44.513216","action_sequence_id":17,"span_id":"17:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:44.513302","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:45.638153","action_sequence_id":17,"span_id":"17:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:45.638273","action_sequence_id":17,"span_id":"17:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:45.638325","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:45.638495","action_sequence_id":17,"span_id":"17:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:45.638819","action":"decide_mode","result":{"mode":"generate_image"},"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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":17,"prompt":"Please build me a giraffe","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:45.639104","action":"generate_image","inputs":{},"sequence_id":18}
-{"type":"begin_span","start_time":"2024-03-18T15:40:45.639201","action_sequence_id":18,"span_id":"18:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:45.653300","action_sequence_id":18,"span_id":"18:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:45.653385","action_sequence_id":18,"span_id":"18:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.516461","action_sequence_id":18,"span_id":"18:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.517650","action_sequence_id":18,"span_id":"18:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.517778","action_sequence_id":18,"span_id":"18:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:54.518113","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Please build me 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-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"}},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:54.518916","action":"response","inputs":{},"sequence_id":19}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.519206","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.519418","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.519466","action_sequence_id":19,"span_id":"19:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.519585","action_sequence_id":19,"span_id":"19:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:54.519701","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":19,"prompt":"Please build me a giraffe","__PRIOR_STEP":"response","safe":true,"mode":"generate_image","response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"}},"sequence_id":19}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:54.519870","action":"prompt","inputs":{"prompt":"If Aaron burr were an animal, would he be a giraffe?"},"sequence_id":20}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.519917","action_sequence_id":20,"span_id":"20:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.519941","action_sequence_id":20,"span_id":"20:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:54.520068","action":"prompt","result":{"chat_item":{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":20,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":20}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:54.520161","action":"check_safety","inputs":{},"sequence_id":21}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.520188","action_sequence_id":21,"span_id":"21:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.520204","action_sequence_id":21,"span_id":"21:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:54.520282","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":21,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":21}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:54.520368","action":"decide_mode","inputs":{},"sequence_id":22}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.520387","action_sequence_id":22,"span_id":"22:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.520403","action_sequence_id":22,"span_id":"22:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.520413","action_sequence_id":22,"span_id":"22:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.520424","action_sequence_id":22,"span_id":"22:1.0","span_name":"create_openai_client","parent_span_id":"22:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:54.526632","action_sequence_id":22,"span_id":"22:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:54.526701","action_sequence_id":22,"span_id":"22:1.1","span_name":"query_openai","parent_span_id":"22:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:55.229497","action_sequence_id":22,"span_id":"22:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:55.229856","action_sequence_id":22,"span_id":"22:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:55.229961","action_sequence_id":22,"span_id":"22:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:55.230072","action_sequence_id":22,"span_id":"22:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:55.230703","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":22,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":22}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:55.231370","action":"answer_question","inputs":{},"sequence_id":23}
-{"type":"begin_span","start_time":"2024-03-18T15:40:55.231559","action_sequence_id":23,"span_id":"23:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:55.231652","action_sequence_id":23,"span_id":"23:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:55.231720","action_sequence_id":23,"span_id":"23:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:55.231792","action_sequence_id":23,"span_id":"23:1.0","span_name":"create_openai_client","parent_span_id":"23:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:55.252230","action_sequence_id":23,"span_id":"23:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:55.252401","action_sequence_id":23,"span_id":"23:1.1","span_name":"query_openai","parent_span_id":"23:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.334797","action_sequence_id":23,"span_id":"23:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.335056","action_sequence_id":23,"span_id":"23:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.335123","action_sequence_id":23,"span_id":"23:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.335197","action_sequence_id":23,"span_id":"23:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:56.335581","action":"answer_question","result":{"response":{"content":"No, Aaron Burr, the American politician and third Vice President of the United States, would not be a giraffe. It's a playful and imaginative question, but Aaron Burr's characteristics and personality traits are not typically associated with those of a giraffe.","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":23,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"No, Aaron Burr, the American politician and third Vice President of the United States, would not be a giraffe. It's a playful and imaginative question, but Aaron Burr's characteristics and personality traits are not typically associated with those of a giraffe.","type":"text","role":"assistant"}},"sequence_id":23}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:56.336112","action":"response","inputs":{},"sequence_id":24}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.336407","action_sequence_id":24,"span_id":"24:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.336482","action_sequence_id":24,"span_id":"24:0.0","span_name":"safe","parent_span_id":"24:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.336525","action_sequence_id":24,"span_id":"24:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.336559","action_sequence_id":24,"span_id":"24:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:56.336875","action":"response","result":{"chat_item":{"content":"No, Aaron Burr, the American politician and third Vice President of the United States, would not be a giraffe. It's a playful and imaginative question, but Aaron Burr's characteristics and personality traits are not typically associated with those of a giraffe.","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-dXQjdwcNSZfzqCkv25AJCYs1.png?st=2024-03-18T21%3A40%3A41Z&se=2024-03-18T23%3A40%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T21%3A54%3A14Z&ske=2024-03-19T21%3A54%3A14Z&sks=b&skv=2021-08-06&sig=BPvos0tYkFThpCBmSLBlG0nZtBd/TCvym0kd5pWG%2BCA%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 unable to fulfill this request as it involves querying external sources in real-time, which is beyond my capabilities. You can write a custom function in a programming language of your choice that utilizes web scraping or an API to retrieve information on the height of a giraffe from the internet.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 16 to 20 feet tall, with the males being taller than the females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-6nadZto3YeShW2Wi5jtj6WAh.png?st=2024-03-18T21%3A40%3A54Z&se=2024-03-18T23%3A40%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A40%3A00Z&ske=2024-03-19T06%3A40%3A00Z&sks=b&skv=2021-08-06&sig=UMOVOHmTJYbYZnaT1Q6GT0HhZ3kN7rfK01QeYxHFv3w%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"},{"content":"No, Aaron Burr, the American politician and third Vice President of the United States, would not be a giraffe. It's a playful and imaginative question, but Aaron Burr's characteristics and personality traits are not typically associated with those of a giraffe.","type":"text","role":"assistant"}],"__SEQUENCE_ID":24,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"No, Aaron Burr, the American politician and third Vice President of the United States, would not be a giraffe. It's a playful and imaginative question, but Aaron Burr's characteristics and personality traits are not typically associated with those of a giraffe.","type":"text","role":"assistant"}},"sequence_id":24}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:15.172140","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.172292","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.172332","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:15.172399","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:15.172462","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.172491","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.172508","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:15.172550","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:15.172601","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.172632","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.172649","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.172663","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.172679","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.178880","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.178920","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.650630","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.650917","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.651006","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.651099","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:15.651347","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:15.652020","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.652190","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:15.670756","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:15.670847","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.500613","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.502925","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.503205","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:24.503523","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":3,"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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:24.504020","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.504137","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.504199","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.504422","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.504467","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:24.504656","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":4,"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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:24.505008","action":"prompt","inputs":{"prompt":"Please write a function that queries the internet for the height of a giraffe"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.505146","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.505236","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:24.505453","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:24.505634","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.505712","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.505756","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:24.505901","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:24.506107","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.506182","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.506232","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.506271","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.506314","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.521976","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.522126","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.962211","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.962556","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.962663","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.962781","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:24.963675","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write a function that queries the internet for the height of a giraffe","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:24.964263","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.964452","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.964539","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.964607","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.964685","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:24.990371","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:24.990590","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.993447","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.993690","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.993775","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.993859","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:25.994144","action":"generate_code","result":{"response":{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%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"}],"__SEQUENCE_ID":8,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:25.994566","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.994697","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.994763","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.994820","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.994866","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:25.995106","action":"response","result":{"chat_item":{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"prompt":"Please write a function that queries the internet for the height of a giraffe","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:25.995444","action":"prompt","inputs":{"prompt":"OK, just tell me, how tall is a giraffe?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.995553","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.995604","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:25.997575","action":"prompt","result":{"chat_item":{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:25.997929","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.998034","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.998107","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:25.998275","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:25.998752","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.998831","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:25.998877","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.998911","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:25.998949","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:26.026504","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:26.026673","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:26.577881","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:26.578009","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:26.578041","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:26.578079","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:26.578228","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:26.578388","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-05-04T22:53:26.578431","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:26.578449","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:26.578461","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:26.578474","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:26.585177","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:26.585249","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.466578","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.466737","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.466780","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.466829","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:27.467041","action":"answer_question","result":{"response":{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:27.467295","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.467357","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.467391","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.467421","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.467442","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:27.467606","action":"response","result":{"chat_item":{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"prompt":"OK, just tell me, how tall is a giraffe?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:27.467837","action":"prompt","inputs":{"prompt":"Please build me a giraffe"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.467890","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.467918","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:27.468165","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a giraffe","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":15,"prompt":"Please build me a giraffe","__PRIOR_STEP":"prompt"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:27.468350","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.468403","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.468428","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:27.468583","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":16,"prompt":"Please build me a giraffe","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:27.468899","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.469134","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.469216","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.469251","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.469283","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.481943","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.482057","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.840787","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.840935","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.840991","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.841039","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:27.841265","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":17,"prompt":"Please build me a giraffe","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:27.841562","action":"generate_code","inputs":{},"sequence_id":18}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.841634","action_sequence_id":18,"span_id":"18:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.841670","action_sequence_id":18,"span_id":"18:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.841693","action_sequence_id":18,"span_id":"18:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.841718","action_sequence_id":18,"span_id":"18:1.0","span_name":"create_openai_client","parent_span_id":"18:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:27.876368","action_sequence_id":18,"span_id":"18:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:27.876441","action_sequence_id":18,"span_id":"18:1.1","span_name":"query_openai","parent_span_id":"18:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.025989","action_sequence_id":18,"span_id":"18:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.026088","action_sequence_id":18,"span_id":"18:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.026115","action_sequence_id":18,"span_id":"18:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.026149","action_sequence_id":18,"span_id":"18:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:29.026302","action":"generate_code","result":{"response":{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Please build me a giraffe","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","type":"code","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:29.026470","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.026510","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.026533","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.026550","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.026563","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:29.026682","action":"response","result":{"chat_item":{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","type":"code","role":"assistant"}],"__SEQUENCE_ID":19,"prompt":"Please build me a giraffe","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","type":"code","role":"assistant"}},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:29.026817","action":"prompt","inputs":{"prompt":"If Aaron burr were an animal, would he be a giraffe?"},"sequence_id":20}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.026861","action_sequence_id":20,"span_id":"20:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.026878","action_sequence_id":20,"span_id":"20:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:29.027058","action":"prompt","result":{"chat_item":{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":20,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"prompt"},"sequence_id":20}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:29.027161","action":"check_safety","inputs":{},"sequence_id":21}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.027189","action_sequence_id":21,"span_id":"21:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.027205","action_sequence_id":21,"span_id":"21:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:29.027316","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":21,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":21}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:29.027430","action":"decide_mode","inputs":{},"sequence_id":22}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.027457","action_sequence_id":22,"span_id":"22:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.027474","action_sequence_id":22,"span_id":"22:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.027488","action_sequence_id":22,"span_id":"22:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.027506","action_sequence_id":22,"span_id":"22:1.0","span_name":"create_openai_client","parent_span_id":"22:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.036935","action_sequence_id":22,"span_id":"22:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.037033","action_sequence_id":22,"span_id":"22:1.1","span_name":"query_openai","parent_span_id":"22:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.468371","action_sequence_id":22,"span_id":"22:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.468633","action_sequence_id":22,"span_id":"22:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.468719","action_sequence_id":22,"span_id":"22:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.468755","action_sequence_id":22,"span_id":"22:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:29.468913","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","type":"code","role":"assistant"},{"role":"user","content":"If Aaron burr were an animal, would he be a giraffe?","type":"text"}],"__SEQUENCE_ID":22,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":22}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:29.469079","action":"answer_question","inputs":{},"sequence_id":23}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.469142","action_sequence_id":23,"span_id":"23:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.469160","action_sequence_id":23,"span_id":"23:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.469173","action_sequence_id":23,"span_id":"23:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.469186","action_sequence_id":23,"span_id":"23:1.0","span_name":"create_openai_client","parent_span_id":"23:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:29.476744","action_sequence_id":23,"span_id":"23:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:29.476833","action_sequence_id":23,"span_id":"23:1.1","span_name":"query_openai","parent_span_id":"23:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.676118","action_sequence_id":23,"span_id":"23:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.678031","action_sequence_id":23,"span_id":"23:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.678158","action_sequence_id":23,"span_id":"23:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.678290","action_sequence_id":23,"span_id":"23:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:31.679509","action":"answer_question","result":{"response":{"content":"Aaron Burr, as a historical figure and politician, would not be considered an animal. Comparing him to a giraffe is a metaphorical or imaginative exercise, and the characteristics of a giraffe do not directly align with those of Aaron Burr. Giraffes are known for their height, gracefulness, and unique appearance, while Aaron Burr is known for his role in American history, particularly his famous duel with Alexander Hamilton. So, in a literal sense, Aaron Burr is not a giraffe.","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","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"}],"__SEQUENCE_ID":23,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"Aaron Burr, as a historical figure and politician, would not be considered an animal. Comparing him to a giraffe is a metaphorical or imaginative exercise, and the characteristics of a giraffe do not directly align with those of Aaron Burr. Giraffes are known for their height, gracefulness, and unique appearance, while Aaron Burr is known for his role in American history, particularly his famous duel with Alexander Hamilton. So, in a literal sense, Aaron Burr is not a giraffe.","type":"text","role":"assistant"}},"sequence_id":23}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:31.680178","action":"response","inputs":{},"sequence_id":24}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.680325","action_sequence_id":24,"span_id":"24:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.680393","action_sequence_id":24,"span_id":"24:0.0","span_name":"safe","parent_span_id":"24:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.680448","action_sequence_id":24,"span_id":"24:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.680491","action_sequence_id":24,"span_id":"24:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:31.680857","action":"response","result":{"chat_item":{"content":"Aaron Burr, as a historical figure and politician, would not be considered an animal. Comparing him to a giraffe is a metaphorical or imaginative exercise, and the characteristics of a giraffe do not directly align with those of Aaron Burr. Giraffes are known for their height, gracefulness, and unique appearance, while Aaron Burr is known for his role in American history, particularly his famous duel with Alexander Hamilton. So, in a literal sense, Aaron Burr is not a giraffe.","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-NrQoOOxjm0USONL5b8PL5eqn.png?st=2024-05-05T04%3A53%3A24Z&se=2024-05-05T06%3A53%3A24Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A41%3A49Z&ske=2024-05-05T21%3A41%3A49Z&sks=b&skv=2021-08-06&sig=Eck1vvJZCJpHystPs1U2AdjVBJdwdgFRyUnjRUnKyOY%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write a function that queries the internet for the height of a giraffe","type":"text"},{"content":"I'm sorry, but I am unable to browse the internet or access real-time data to provide you with the height of a giraffe.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: OK, just tell me, how tall is a giraffe?","type":"text"},{"content":"A giraffe is typically around 15 to 20 feet tall, with males being taller than females.","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please build me a giraffe","type":"text"},{"content":"I'm sorry, but I cannot physically build a giraffe. I can, however, provide you with instructions on how to create a giraffe craft or drawing if that would be helpful! Let me know how I can assist you.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: If Aaron burr were an animal, would he be a giraffe?","type":"text"},{"content":"Aaron Burr, as a historical figure and politician, would not be considered an animal. Comparing him to a giraffe is a metaphorical or imaginative exercise, and the characteristics of a giraffe do not directly align with those of Aaron Burr. Giraffes are known for their height, gracefulness, and unique appearance, while Aaron Burr is known for his role in American history, particularly his famous duel with Alexander Hamilton. So, in a literal sense, Aaron Burr is not a giraffe.","type":"text","role":"assistant"}],"__SEQUENCE_ID":24,"prompt":"If Aaron burr were an animal, would he be a giraffe?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"Aaron Burr, as a historical figure and politician, would not be considered an animal. Comparing him to a giraffe is a metaphorical or imaginative exercise, and the characteristics of a giraffe do not directly align with those of Aaron Burr. Giraffes are known for their height, gracefulness, and unique appearance, while Aaron Burr is known for his role in American history, particularly his famous duel with Alexander Hamilton. So, in a literal sense, Aaron Burr is not a giraffe.","type":"text","role":"assistant"}},"sequence_id":24}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/graph.json
index cdbd9153..a8ed3d9a 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/graph.json
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt", "__tracer"]}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n", "inputs": ["__tracer"]}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": ["__tracer"]}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/log.jsonl
index 7737f524..f950a708 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-2-geography/log.jsonl
@@ -1,138 +1,138 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:40:56.345093","action":"prompt","inputs":{"prompt":"What is the capital of France?"},"sequence_id":0}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.345215","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.345258","action_sequence_id":0,"span_id":"0:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:56.345386","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the capital of France?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":0,"prompt":"What is the capital of France?","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:56.345523","action":"check_safety","inputs":{},"sequence_id":1}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.345581","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.345612","action_sequence_id":1,"span_id":"1:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:56.345698","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":1,"prompt":"What is the capital of France?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:56.345794","action":"decide_mode","inputs":{},"sequence_id":2}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.345843","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.345940","action_sequence_id":2,"span_id":"2:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.346009","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.346070","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.365566","action_sequence_id":2,"span_id":"2:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.365671","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.952068","action_sequence_id":2,"span_id":"2:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.952232","action_sequence_id":2,"span_id":"2:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.952290","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.952341","action_sequence_id":2,"span_id":"2:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:56.952515","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":2,"prompt":"What is the capital of France?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:56.952700","action":"answer_question","inputs":{},"sequence_id":3}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.952766","action_sequence_id":3,"span_id":"3:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.952799","action_sequence_id":3,"span_id":"3:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.952823","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.952849","action_sequence_id":3,"span_id":"3:1.0","span_name":"create_openai_client","parent_span_id":"3:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:56.963222","action_sequence_id":3,"span_id":"3:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:56.963294","action_sequence_id":3,"span_id":"3:1.1","span_name":"query_openai","parent_span_id":"3:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.834887","action_sequence_id":3,"span_id":"3:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.835021","action_sequence_id":3,"span_id":"3:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.835067","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.835122","action_sequence_id":3,"span_id":"3:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:57.835375","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"}],"__SEQUENCE_ID":3,"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"}},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:57.835694","action":"response","inputs":{},"sequence_id":4}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.835802","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.835862","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.835901","action_sequence_id":4,"span_id":"4:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.835933","action_sequence_id":4,"span_id":"4:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:57.836086","action":"response","result":{"chat_item":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"}],"__SEQUENCE_ID":4,"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"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:57.836302","action":"prompt","inputs":{"prompt":"Please draw a map of the world"},"sequence_id":5}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.836376","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.836409","action_sequence_id":5,"span_id":"5:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:57.836576","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a map of the world","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please draw a map of the world","__PRIOR_STEP":"prompt"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:57.836692","action":"check_safety","inputs":{},"sequence_id":6}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.836737","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.836790","action_sequence_id":6,"span_id":"6:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:57.836842","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"}],"__SEQUENCE_ID":6,"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:57.836888","action":"decide_mode","inputs":{},"sequence_id":7}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.836906","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.836919","action_sequence_id":7,"span_id":"7:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.836927","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.836937","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:57.844511","action_sequence_id":7,"span_id":"7:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:57.844560","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:58.571308","action_sequence_id":7,"span_id":"7:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:40:58.571440","action_sequence_id":7,"span_id":"7:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:58.571471","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:40:58.571501","action_sequence_id":7,"span_id":"7:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:40:58.571627","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"}],"__SEQUENCE_ID":7,"prompt":"Please draw a map of the world","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:40:58.571759","action":"generate_image","inputs":{},"sequence_id":8}
-{"type":"begin_span","start_time":"2024-03-18T15:40:58.571809","action_sequence_id":8,"span_id":"8:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:40:58.580567","action_sequence_id":8,"span_id":"8:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:40:58.580622","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.611815","action_sequence_id":8,"span_id":"8:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.612147","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.612300","action_sequence_id":8,"span_id":"8:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:07.612875","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%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"}],"__SEQUENCE_ID":8,"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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"}},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:07.615257","action":"response","inputs":{},"sequence_id":9}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.615464","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.615700","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.615826","action_sequence_id":9,"span_id":"9:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.616218","action_sequence_id":9,"span_id":"9:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:07.616799","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":9,"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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"}},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:07.617429","action":"prompt","inputs":{"prompt":"Please write code to compute the circumpherence of the earth"},"sequence_id":10}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.617705","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.617767","action_sequence_id":10,"span_id":"10:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:07.617992","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"prompt"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:07.618311","action":"check_safety","inputs":{},"sequence_id":11}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.618391","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.618434","action_sequence_id":11,"span_id":"11:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:07.618774","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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":11,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:07.619024","action":"decide_mode","inputs":{},"sequence_id":12}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.619122","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.619188","action_sequence_id":12,"span_id":"12:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.619228","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.619270","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:07.640519","action_sequence_id":12,"span_id":"12:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:07.640625","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:08.922612","action_sequence_id":12,"span_id":"12:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:08.922793","action_sequence_id":12,"span_id":"12:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:08.922864","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:08.922934","action_sequence_id":12,"span_id":"12:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:08.923287","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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":12,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:08.924157","action":"generate_code","inputs":{},"sequence_id":13}
-{"type":"begin_span","start_time":"2024-03-18T15:41:08.924292","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:08.924357","action_sequence_id":13,"span_id":"13:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:08.924410","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:08.924464","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:08.947143","action_sequence_id":13,"span_id":"13:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:08.947302","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.363235","action_sequence_id":13,"span_id":"13:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.363374","action_sequence_id":13,"span_id":"13:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.363431","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.363510","action_sequence_id":13,"span_id":"13:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:11.363789","action":"generate_code","result":{"response":{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%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"}],"__SEQUENCE_ID":13,"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, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:11.366800","action":"response","inputs":{},"sequence_id":14}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.367013","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.367257","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.367343","action_sequence_id":14,"span_id":"14:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.367385","action_sequence_id":14,"span_id":"14:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:11.367755","action":"response","result":{"chat_item":{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}],"__SEQUENCE_ID":14,"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, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"kilometers.\")\n```\n\nWhen you run this code, it will output the approximate circumference of the Earth in kilometers.","type":"code","role":"assistant"}},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:11.368422","action":"prompt","inputs":{"prompt":"Geography! Geography! Geography!"},"sequence_id":15}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.368564","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.368616","action_sequence_id":15,"span_id":"15:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:11.368983","action":"prompt","result":{"chat_item":{"role":"user","content":"Geography! Geography! Geography!","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"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"}],"__SEQUENCE_ID":15,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:11.369271","action":"check_safety","inputs":{},"sequence_id":16}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.369361","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.369407","action_sequence_id":16,"span_id":"16:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:11.369737","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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"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"}],"__SEQUENCE_ID":16,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:11.369993","action":"decide_mode","inputs":{},"sequence_id":17}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.370185","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.370311","action_sequence_id":17,"span_id":"17:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.370366","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.370413","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:11.389693","action_sequence_id":17,"span_id":"17:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:11.389783","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.088703","action_sequence_id":17,"span_id":"17:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.089283","action_sequence_id":17,"span_id":"17:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.089339","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.089419","action_sequence_id":17,"span_id":"17:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:12.089792","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-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"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"}],"__SEQUENCE_ID":17,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:12.090043","action":"prompt_for_more","inputs":{},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T15:41:12.090326","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"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"}],"__SEQUENCE_ID":18,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt_for_more","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:12.090584","action":"response","inputs":{},"sequence_id":19}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.090669","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.090720","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.090850","action_sequence_id":19,"span_id":"19:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.090928","action_sequence_id":19,"span_id":"19:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:12.091418","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-1jIbaIr3Mox3FYoVzWR65MG6.png?st=2024-03-18T21%3A41%3A07Z&se=2024-03-18T23%3A41%3A07Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A56%3A56Z&ske=2024-03-19T06%3A56%3A56Z&sks=b&skv=2021-08-06&sig=2HBydIIwl89TRfG1yveV%2BvOG3py7ecBmsU6sDf71JCU%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle, which is circumference = 2 * π * radius.\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nHere is the Python code to compute the circumference of the Earth:\n\n```python\nimport math\n\nradius = 6371 # radius of the Earth in kilometers\ncircumference = 2 * math.pi * radius\n\nprint(\"The circumference of the Earth is approximately\", round(circumference, 2), \"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 apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":19,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"response","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:31.690684","action":"prompt","inputs":{"prompt":"What is the capital of France?"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.690785","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.690827","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:31.690929","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the capital of France?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":0,"prompt":"What is the capital of France?","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:31.691012","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.691049","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.691069","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:31.691121","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":1,"prompt":"What is the capital of France?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:31.691190","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.691223","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.691242","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.691257","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.691291","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:31.700633","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:31.700703","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.104839","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.105028","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.105120","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.105221","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:32.105415","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"What is the capital of France?","type":"text"}],"__SEQUENCE_ID":2,"prompt":"What is the capital of France?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:32.105634","action":"answer_question","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.105716","action_sequence_id":3,"span_id":"3:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.105758","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.105792","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.105830","action_sequence_id":3,"span_id":"3:1.0","span_name":"create_openai_client","parent_span_id":"3:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.119873","action_sequence_id":3,"span_id":"3:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.120006","action_sequence_id":3,"span_id":"3:1.1","span_name":"query_openai","parent_span_id":"3:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.651600","action_sequence_id":3,"span_id":"3:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.651753","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.651836","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.651925","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:32.652195","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"}],"__SEQUENCE_ID":3,"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"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:32.652550","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.652692","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.652769","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.652839","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.652895","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:32.653157","action":"response","result":{"chat_item":{"content":"The capital of France is Paris.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"}],"__SEQUENCE_ID":4,"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"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:32.653525","action":"prompt","inputs":{"prompt":"Please draw a map of the world"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.653662","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.653733","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:32.654098","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a map of the world","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please draw a map of the world","__PRIOR_STEP":"prompt"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:32.654545","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.654673","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.654807","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:32.655075","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"}],"__SEQUENCE_ID":6,"prompt":"Please draw a map of the world","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:32.655385","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.655660","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.655748","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.655806","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.655859","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:32.670495","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:32.670579","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:33.032299","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:33.032423","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:33.032469","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:33.032518","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:33.032687","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"}],"__SEQUENCE_ID":7,"prompt":"Please draw a map of the world","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:33.032900","action":"generate_image","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-05-04T22:53:33.032978","action_sequence_id":8,"span_id":"8:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:33.048856","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:33.048937","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.125468","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.126374","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.126587","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:42.127078","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%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"}],"__SEQUENCE_ID":8,"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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:42.128019","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.128212","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.128270","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.128309","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.128364","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:42.128555","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":9,"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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:42.129223","action":"prompt","inputs":{"prompt":"Please write code to compute the circumpherence of the earth"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.129322","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.129391","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:42.129686","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":10,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"prompt"},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:42.129923","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.130035","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.130077","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:42.130238","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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":11,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:42.130442","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.130517","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.130585","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.130618","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.130674","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.143803","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.143892","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.532249","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.532381","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.532427","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.532483","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:42.532689","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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the circumpherence of the earth","type":"text"}],"__SEQUENCE_ID":12,"prompt":"Please write code to compute the circumpherence of the earth","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:42.533001","action":"generate_code","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.533091","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.533152","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.533184","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.533217","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:42.550928","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:42.551153","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.556188","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.556378","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.556473","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.556573","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.556982","action":"generate_code","result":{"response":{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%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"}],"__SEQUENCE_ID":13,"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, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.557499","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.557647","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.557729","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.557801","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.557861","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.558233","action":"response","result":{"chat_item":{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"}],"__SEQUENCE_ID":14,"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, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.558713","action":"prompt","inputs":{"prompt":"Geography! Geography! Geography!"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.558852","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.558924","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.559389","action":"prompt","result":{"chat_item":{"role":"user","content":"Geography! Geography! Geography!","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":15,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.559669","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.559761","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.559813","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.560075","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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":16,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.560374","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.560465","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.560517","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.560567","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.560620","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.578490","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.578570","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.912330","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.912443","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.912486","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.912534","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.912906","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-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":17,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.913193","action":"prompt_for_more","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.913418","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"}],"__SEQUENCE_ID":18,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"prompt_for_more","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.913617","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.913679","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.913719","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.913754","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.913782","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.913982","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please answer the following question:: What is the capital of France?","type":"text"},{"content":"The capital of France is Paris.","type":"text","role":"assistant"},{"role":"user","content":"Please draw a map of the world","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-aBqkSVucdJGLaCaoqQC5tGBU.png?st=2024-05-05T04%3A53%3A41Z&se=2024-05-05T06%3A53%3A41Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A29%3A25Z&ske=2024-05-05T21%3A29%3A25Z&sks=b&skv=2021-08-06&sig=vmD6hGw9jQ8gP8HFl4AVaRNqXbMB7scRnQSo00y7%2BLE%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the circumpherence of the earth","type":"text"},{"content":"To compute the circumference of the Earth, we can use the formula for the circumference of a circle:\n\nCircumference = 2 * π * radius\n\nThe average radius of the Earth is approximately 6,371 kilometers.\n\nUsing this radius in the formula:\n\nCircumference = 2 * π * 6371\nCircumference = 2 * 3.14159 * 6371\nCircumference = 40,075.16 kilometers\n\nTherefore, the circumference of the Earth is approximately 40,075.16 kilometers.","type":"code","role":"assistant"},{"role":"user","content":"Geography! Geography! Geography!","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":19,"prompt":"Geography! Geography! Geography!","__PRIOR_STEP":"response","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/graph.json
index cdbd9153..a8ed3d9a 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/graph.json
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt", "__tracer"]}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n", "inputs": ["__tracer"]}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": ["__tracer"]}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/log.jsonl
index fc517936..e44e3c88 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-3-physics/log.jsonl
@@ -1,144 +1,144 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:41:12.098752","action":"prompt","inputs":{"prompt":"Please draw a free-body diagram of a block on a ramp"},"sequence_id":0}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.098825","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.098848","action_sequence_id":0,"span_id":"0:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:12.098902","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:12.098956","action":"check_safety","inputs":{},"sequence_id":1}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.098981","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.098995","action_sequence_id":1,"span_id":"1:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:12.099033","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"}],"__SEQUENCE_ID":1,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:12.099082","action":"decide_mode","inputs":{},"sequence_id":2}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.099103","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.099117","action_sequence_id":2,"span_id":"2:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.099128","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.099149","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.110998","action_sequence_id":2,"span_id":"2:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.111080","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.539208","action_sequence_id":2,"span_id":"2:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.539301","action_sequence_id":2,"span_id":"2:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.539347","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.539394","action_sequence_id":2,"span_id":"2:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:12.539750","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"}],"__SEQUENCE_ID":2,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:12.540000","action":"generate_image","inputs":{},"sequence_id":3}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.540086","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:12.562066","action_sequence_id":3,"span_id":"3:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:12.562157","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.122873","action_sequence_id":3,"span_id":"3:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.123325","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.123431","action_sequence_id":3,"span_id":"3:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:21.123740","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%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"}],"__SEQUENCE_ID":3,"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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"}},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:21.124479","action":"response","inputs":{},"sequence_id":4}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.124816","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.125071","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.125224","action_sequence_id":4,"span_id":"4:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.125269","action_sequence_id":4,"span_id":"4:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:21.125479","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":4,"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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:21.125831","action":"prompt","inputs":{"prompt":"Please write code to compute the force of gravity on the moon"},"sequence_id":5}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.125918","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.125958","action_sequence_id":5,"span_id":"5:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:21.126154","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"prompt"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:21.126305","action":"check_safety","inputs":{},"sequence_id":6}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.126367","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.126405","action_sequence_id":6,"span_id":"6:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:21.126538","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:21.126673","action":"decide_mode","inputs":{},"sequence_id":7}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.126734","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.126772","action_sequence_id":7,"span_id":"7:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.126803","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.126857","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:21.139556","action_sequence_id":7,"span_id":"7:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:21.139698","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:22.103257","action_sequence_id":7,"span_id":"7:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:22.103389","action_sequence_id":7,"span_id":"7:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:22.103428","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:22.103474","action_sequence_id":7,"span_id":"7:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:22.103660","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:22.103861","action":"generate_code","inputs":{},"sequence_id":8}
-{"type":"begin_span","start_time":"2024-03-18T15:41:22.103931","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:22.103964","action_sequence_id":8,"span_id":"8:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:22.103988","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:22.104014","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:22.116032","action_sequence_id":8,"span_id":"8:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:22.116103","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.555381","action_sequence_id":8,"span_id":"8:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.555626","action_sequence_id":8,"span_id":"8:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.555682","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.555747","action_sequence_id":8,"span_id":"8:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:26.556088","action":"generate_code","result":{"response":{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%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"}],"__SEQUENCE_ID":8,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"}},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:26.556620","action":"response","inputs":{},"sequence_id":9}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.556770","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.556837","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.556877","action_sequence_id":9,"span_id":"9:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.556916","action_sequence_id":9,"span_id":"9:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:26.557111","action":"response","result":{"chat_item":{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"}},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:26.557382","action":"prompt","inputs":{"prompt":"What is the force of gravity on the moon?"},"sequence_id":10}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.557455","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.557507","action_sequence_id":10,"span_id":"10:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:26.557759","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"prompt"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:26.557927","action":"check_safety","inputs":{},"sequence_id":11}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.557983","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.558014","action_sequence_id":11,"span_id":"11:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:26.558166","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:26.558334","action":"decide_mode","inputs":{},"sequence_id":12}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.558391","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.558428","action_sequence_id":12,"span_id":"12:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.558459","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.558490","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.572980","action_sequence_id":12,"span_id":"12:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.573049","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.995225","action_sequence_id":12,"span_id":"12:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.995400","action_sequence_id":12,"span_id":"12:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.995451","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.995507","action_sequence_id":12,"span_id":"12:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:26.995764","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:26.996107","action":"answer_question","inputs":{},"sequence_id":13}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.996197","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:26.996250","action_sequence_id":13,"span_id":"13:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.996280","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:26.996312","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:27.008915","action_sequence_id":13,"span_id":"13:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:27.009012","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.145315","action_sequence_id":13,"span_id":"13:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.145406","action_sequence_id":13,"span_id":"13:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.145437","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.145486","action_sequence_id":13,"span_id":"13:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:30.145657","action":"answer_question","result":{"response":{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":13,"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 can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","type":"text","role":"assistant"}},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:30.145876","action":"response","inputs":{},"sequence_id":14}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.145935","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.145963","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.145986","action_sequence_id":14,"span_id":"14:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.146004","action_sequence_id":14,"span_id":"14:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:30.146138","action":"response","result":{"chat_item":{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"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 can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","type":"text","role":"assistant"}},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:30.146322","action":"prompt","inputs":{"prompt":"Please build me a block on a ramp"},"sequence_id":15}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.146367","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.146389","action_sequence_id":15,"span_id":"15:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:30.146588","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":15,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:30.146720","action":"check_safety","inputs":{},"sequence_id":16}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.146761","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.146782","action_sequence_id":16,"span_id":"16:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:30.146908","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":16,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:30.147046","action":"decide_mode","inputs":{},"sequence_id":17}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.147083","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.147105","action_sequence_id":17,"span_id":"17:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.147123","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.147144","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.157015","action_sequence_id":17,"span_id":"17:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.157100","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.549711","action_sequence_id":17,"span_id":"17:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.549814","action_sequence_id":17,"span_id":"17:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.549859","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.549911","action_sequence_id":17,"span_id":"17:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:30.550191","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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":17,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:30.550507","action":"generate_image","inputs":{},"sequence_id":18}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.550596","action_sequence_id":18,"span_id":"18:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:30.563506","action_sequence_id":18,"span_id":"18:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:30.563580","action_sequence_id":18,"span_id":"18:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.412108","action_sequence_id":18,"span_id":"18:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.412403","action_sequence_id":18,"span_id":"18:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.412484","action_sequence_id":18,"span_id":"18:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:39.412853","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ncRBngNJ6DsiLCJWHNipazE4.png?st=2024-03-18T21%3A41%3A39Z&se=2024-03-18T23%3A41%3A39Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A52%3A13Z&ske=2024-03-19T06%3A52%3A13Z&sks=b&skv=2021-08-06&sig=rpOgY06mgOeF7ru0xLp8F%2BzmTiVBBX8dfQiZvhJxp8I%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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":18,"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-ncRBngNJ6DsiLCJWHNipazE4.png?st=2024-03-18T21%3A41%3A39Z&se=2024-03-18T23%3A41%3A39Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A52%3A13Z&ske=2024-03-19T06%3A52%3A13Z&sks=b&skv=2021-08-06&sig=rpOgY06mgOeF7ru0xLp8F%2BzmTiVBBX8dfQiZvhJxp8I%3D","type":"image","role":"assistant"}},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:39.413470","action":"response","inputs":{},"sequence_id":19}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.413604","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.413672","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.413715","action_sequence_id":19,"span_id":"19:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.413755","action_sequence_id":19,"span_id":"19:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:39.414045","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ncRBngNJ6DsiLCJWHNipazE4.png?st=2024-03-18T21%3A41%3A39Z&se=2024-03-18T23%3A41%3A39Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A52%3A13Z&ske=2024-03-19T06%3A52%3A13Z&sks=b&skv=2021-08-06&sig=rpOgY06mgOeF7ru0xLp8F%2BzmTiVBBX8dfQiZvhJxp8I%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-oePFhM1zEqyFlYwtny8nAfly.png?st=2024-03-18T21%3A41%3A21Z&se=2024-03-18T23%3A41%3A21Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A34%3A43Z&ske=2024-03-19T06%3A34%3A43Z&sks=b&skv=2021-08-06&sig=eVlgOABflvdKmfSmu8rutEAmBdzYhqQHnTktmddOHO8%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the force of gravity on the moon","type":"text"},{"content":"To compute the force of gravity on the moon, you can use Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\n\nF is the force of gravity\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2)\nm1 and m2 are the masses of the two objects (moon and an object)\nr is the distance between the centers of the two objects (radius of the moon)\n\nThe mass of the moon (m1) is approximately 7.35 x 10^22 kg and the radius of the moon (r) is approximately 1.738 x 10^6 meters.\n\nLet's assume an object of mass 100 kg. Here is the Python code to compute the force of gravity on the moon for the given object:\n\n```python\n# Constants\nG = 6.674 * 10**-11\nmass_moon = 7.35 * 10**22\nradius_moon = 1.738 * 10**6\nmass_object = 100 # kg\n\n# Calculate force of gravity\nforce_gravity = G * mass_moon * mass_object / radius_moon**2\n\nprint(f\"The force of gravity on the moon acting on a 100 kg object is: {force_gravity} N\")\n```\n\nWhen you run this code, it will output the force of gravity acting on a 100 kg object on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"},{"content":"The force of gravity on the moon can be calculated using Newton's law of universal gravitation formula:\n\nF = G * m1 * m2 / r^2\n\nWhere:\nF is the force of gravity,\nG is the gravitational constant (6.674 x 10^-11 N m^2/kg^2),\nm1 is the mass of the moon (7.35 x 10^22 kg),\nm2 is the mass of an object (let's say 1 kg for simplicity),\nr is the distance between the centers of the two objects (radius of the moon, approximately 1.738 x 10^6 meters).\n\nSubstitute the values into the formula:\n\nF = (6.674 x 10^-11) * (7.35 x 10^22) * (1) / (1.738 x 10^6)^2\n\nCalculating this gives us the force of gravity on the moon, which is approximately 1.623 N (Newton).","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-ncRBngNJ6DsiLCJWHNipazE4.png?st=2024-03-18T21%3A41%3A39Z&se=2024-03-18T23%3A41%3A39Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A52%3A13Z&ske=2024-03-19T06%3A52%3A13Z&sks=b&skv=2021-08-06&sig=rpOgY06mgOeF7ru0xLp8F%2BzmTiVBBX8dfQiZvhJxp8I%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":19,"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-ncRBngNJ6DsiLCJWHNipazE4.png?st=2024-03-18T21%3A41%3A39Z&se=2024-03-18T23%3A41%3A39Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T06%3A52%3A13Z&ske=2024-03-19T06%3A52%3A13Z&sks=b&skv=2021-08-06&sig=rpOgY06mgOeF7ru0xLp8F%2BzmTiVBBX8dfQiZvhJxp8I%3D","type":"image","role":"assistant"}},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.923142","action":"prompt","inputs":{"prompt":"Please draw a free-body diagram of a block on a ramp"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.923314","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.923380","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.923723","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.923907","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.924034","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.924079","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:44.924522","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"}],"__SEQUENCE_ID":1,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:44.924692","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.924761","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.924804","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.924840","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.924878","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:44.944121","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:44.944223","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:45.382214","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:45.382402","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:45.382497","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:45.382594","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:45.382902","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"}],"__SEQUENCE_ID":2,"prompt":"Please draw a free-body diagram of a block on a ramp","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:45.383342","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-05-04T22:53:45.383531","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:45.406220","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:45.406368","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.216986","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.218599","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.218690","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:54.218876","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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"}],"__SEQUENCE_ID":3,"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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:54.219121","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.219187","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.219222","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.219253","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.219277","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:54.219391","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":4,"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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:54.219600","action":"prompt","inputs":{"prompt":"Please write code to compute the force of gravity on the moon"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.219652","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.219680","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:54.219827","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"prompt"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:54.219941","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.219986","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.220013","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:54.220111","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:54.220230","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.220272","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.220299","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.220322","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.220364","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.232866","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.232930","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.628865","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.629094","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.629150","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.629211","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:54.629451","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the force of gravity on the moon","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the force of gravity on the moon","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:54.629778","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.629893","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.629944","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.629981","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.630024","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:54.640963","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:54.641078","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.493302","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.493601","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.493683","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.493760","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:58.494130","action":"generate_code","result":{"response":{"content":"Sure! The force of gravity on an object can be calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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"}],"__SEQUENCE_ID":8,"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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:58.494631","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.494749","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.494805","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.494841","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.494875","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:58.495062","action":"response","result":{"chat_item":{"content":"Sure! The force of gravity on an object can be calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:58.495308","action":"prompt","inputs":{"prompt":"What is the force of gravity on the moon?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.495375","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.495413","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:58.495654","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"prompt"},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:58.495852","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.495909","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.495939","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:58.496094","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:58.496277","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.496331","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.496369","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.496399","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.496449","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.510859","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.510995","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.919067","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.919128","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.919147","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.919167","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:58.919254","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","type":"code","role":"assistant"},{"role":"user","content":"What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the force of gravity on the moon?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:58.919359","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.919391","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.919406","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.919418","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.919430","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:58.925493","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:58.925562","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.638604","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.639233","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.639308","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.639386","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:59.641013","action":"answer_question","result":{"response":{"content":"The force of gravity on the moon is approximately 1.622 m/s^2.","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the force of gravity on the moon?","type":"text"}],"__SEQUENCE_ID":13,"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.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:59.641453","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.641547","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.641592","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.642969","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.643012","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:59.643371","action":"response","result":{"chat_item":{"content":"The force of gravity on the moon is approximately 1.622 m/s^2.","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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.","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"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.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:59.644177","action":"prompt","inputs":{"prompt":"Please build me a block on a ramp"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.644713","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.644766","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:59.645282","action":"prompt","result":{"chat_item":{"role":"user","content":"Please build me a block on a ramp","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a free-body diagram of a block on a ramp","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":15,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"prompt"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:59.645620","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.645720","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.645764","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:53:59.645951","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":16,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:53:59.646147","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.646417","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.646590","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.646783","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.646846","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:53:59.669221","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:53:59.669385","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:00.073813","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:00.074044","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:00.074140","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:00.074242","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:00.074697","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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":17,"prompt":"Please build me a block on a ramp","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:00.075212","action":"generate_image","inputs":{},"sequence_id":18}
+{"type":"begin_span","start_time":"2024-05-04T22:54:00.075378","action_sequence_id":18,"span_id":"18:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:00.100694","action_sequence_id":18,"span_id":"18:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:00.100884","action_sequence_id":18,"span_id":"18:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:08.992064","action_sequence_id":18,"span_id":"18:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:08.993682","action_sequence_id":18,"span_id":"18:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:08.993885","action_sequence_id":18,"span_id":"18:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:08.994372","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-5fvGWfaGkw2Hwscp8WMFc54j.png?st=2024-05-05T04%3A54%3A09Z&se=2024-05-05T06%3A54%3A09Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A17%3A57Z&ske=2024-05-05T21%3A17%3A57Z&sks=b&skv=2021-08-06&sig=hHLREDhd/P3snk8mfq6%2BQdunX23ukxXQhd6Gw/tcim4%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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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.","type":"text","role":"assistant"},{"role":"user","content":"Please build me a block on a ramp","type":"text"}],"__SEQUENCE_ID":18,"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-5fvGWfaGkw2Hwscp8WMFc54j.png?st=2024-05-05T04%3A54%3A09Z&se=2024-05-05T06%3A54%3A09Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A17%3A57Z&ske=2024-05-05T21%3A17%3A57Z&sks=b&skv=2021-08-06&sig=hHLREDhd/P3snk8mfq6%2BQdunX23ukxXQhd6Gw/tcim4%3D","type":"image","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:08.995220","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-05-04T22:54:08.995376","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:08.995444","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:08.995503","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:08.995549","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:08.995875","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-5fvGWfaGkw2Hwscp8WMFc54j.png?st=2024-05-05T04%3A54%3A09Z&se=2024-05-05T06%3A54%3A09Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A17%3A57Z&ske=2024-05-05T21%3A17%3A57Z&sks=b&skv=2021-08-06&sig=hHLREDhd/P3snk8mfq6%2BQdunX23ukxXQhd6Gw/tcim4%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-VjYO0cfliN5QGYsn4PWYAg0R.png?st=2024-05-05T04%3A53%3A54Z&se=2024-05-05T06%3A53%3A54Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A16%3A55Z&ske=2024-05-05T21%3A16%3A55Z&sks=b&skv=2021-08-06&sig=30j3Fq3h2bTSUM6Dn9LqBLH3%2Bt4GOJlJbTpQVLLTxoA%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 calculated using the formula:\n\nF = m * g_moon\n\nWhere:\nF = force of gravity on the moon (in Newtons)\nm = mass of the object (in kilograms)\ng_moon = acceleration due to gravity on the moon (1.62 m/s^2)\n\nHere is an example python code to compute the force of gravity on the moon:\n\n```python\ndef calculate_gravity_force_on_moon(mass):\n g_moon = 1.62 # acceleration due to gravity on the moon in m/s^2\n force = mass * g_moon\n return force\n\nmass = 75 # mass of the object in kilograms\ngravity_force_on_moon = calculate_gravity_force_on_moon(mass)\nprint(f\"The force of gravity on an object with mass {mass} kg on the moon is {gravity_force_on_moon} N\")\n```\n\nThis code will calculate and print the force of gravity on an object with a mass of 75 kg on the moon.","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.","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-5fvGWfaGkw2Hwscp8WMFc54j.png?st=2024-05-05T04%3A54%3A09Z&se=2024-05-05T06%3A54%3A09Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A17%3A57Z&ske=2024-05-05T21%3A17%3A57Z&sks=b&skv=2021-08-06&sig=hHLREDhd/P3snk8mfq6%2BQdunX23ukxXQhd6Gw/tcim4%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":19,"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-5fvGWfaGkw2Hwscp8WMFc54j.png?st=2024-05-05T04%3A54%3A09Z&se=2024-05-05T06%3A54%3A09Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A17%3A57Z&ske=2024-05-05T21%3A17%3A57Z&sks=b&skv=2021-08-06&sig=hHLREDhd/P3snk8mfq6%2BQdunX23ukxXQhd6Gw/tcim4%3D","type":"image","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/graph.json
index cdbd9153..a8ed3d9a 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/graph.json
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt", "__tracer"]}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n", "inputs": ["__tracer"]}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": ["__tracer"]}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/log.jsonl
index 0be8126a..f9d3c5ad 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-4-philosophy/log.jsonl
@@ -1,110 +1,110 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:41:39.421206","action":"prompt","inputs":{"prompt":"Please draw a picture of a philosopher"},"sequence_id":0}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.421310","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.421352","action_sequence_id":0,"span_id":"0:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:39.421462","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:39.421576","action":"check_safety","inputs":{},"sequence_id":1}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.421635","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.421665","action_sequence_id":1,"span_id":"1:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:39.421749","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:39.421841","action":"decide_mode","inputs":{},"sequence_id":2}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.421888","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.421919","action_sequence_id":2,"span_id":"2:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.421946","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.421977","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.433037","action_sequence_id":2,"span_id":"2:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.433114","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.886592","action_sequence_id":2,"span_id":"2:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.886820","action_sequence_id":2,"span_id":"2:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.887079","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.887173","action_sequence_id":2,"span_id":"2:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:39.887400","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:39.887674","action":"generate_image","inputs":{},"sequence_id":3}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.887778","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:39.902145","action_sequence_id":3,"span_id":"3:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:39.902231","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.007185","action_sequence_id":3,"span_id":"3:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.007461","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.007541","action_sequence_id":3,"span_id":"3:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:49.007899","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":3,"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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"}},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:49.008335","action":"response","inputs":{},"sequence_id":4}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.008454","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.008518","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.008565","action_sequence_id":4,"span_id":"4:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.008608","action_sequence_id":4,"span_id":"4:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:49.008777","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":4,"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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:49.009059","action":"prompt","inputs":{"prompt":"Please write code to compute the meaning of life (hint, its 42)"},"sequence_id":5}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.009131","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.009169","action_sequence_id":5,"span_id":"5:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:49.009364","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"prompt"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:49.009497","action":"check_safety","inputs":{},"sequence_id":6}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.009556","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.009589","action_sequence_id":6,"span_id":"6:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:49.009716","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:49.009846","action":"decide_mode","inputs":{},"sequence_id":7}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.009905","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.009940","action_sequence_id":7,"span_id":"7:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.009970","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.010003","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.023263","action_sequence_id":7,"span_id":"7:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.023342","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.475961","action_sequence_id":7,"span_id":"7:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.476142","action_sequence_id":7,"span_id":"7:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.476191","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.476257","action_sequence_id":7,"span_id":"7:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:49.476492","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:49.476739","action":"generate_code","inputs":{},"sequence_id":8}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.476859","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.476957","action_sequence_id":8,"span_id":"8:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.477000","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.477041","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:49.490229","action_sequence_id":8,"span_id":"8:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:49.490303","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.340165","action_sequence_id":8,"span_id":"8:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.340358","action_sequence_id":8,"span_id":"8:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.340409","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.340469","action_sequence_id":8,"span_id":"8:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:51.340709","action":"generate_code","result":{"response":{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%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"}],"__SEQUENCE_ID":8,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"}},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:51.341037","action":"response","inputs":{},"sequence_id":9}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.341127","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.341167","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.341198","action_sequence_id":9,"span_id":"9:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.341223","action_sequence_id":9,"span_id":"9:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:51.341388","action":"response","result":{"chat_item":{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"}},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:51.341631","action":"prompt","inputs":{"prompt":"What is the meaning of life?"},"sequence_id":10}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.341710","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.341746","action_sequence_id":10,"span_id":"10:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:51.341986","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the meaning of life?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"What is the meaning of life?","__PRIOR_STEP":"prompt"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:51.342135","action":"check_safety","inputs":{},"sequence_id":11}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.342192","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.342222","action_sequence_id":11,"span_id":"11:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:51.342373","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:51.342535","action":"decide_mode","inputs":{},"sequence_id":12}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.342587","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.342621","action_sequence_id":12,"span_id":"12:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.342646","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.342676","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.363805","action_sequence_id":12,"span_id":"12:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.363904","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.891182","action_sequence_id":12,"span_id":"12:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.891311","action_sequence_id":12,"span_id":"12:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.891354","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.891405","action_sequence_id":12,"span_id":"12:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:51.891674","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the meaning of life?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:51.891990","action":"answer_question","inputs":{},"sequence_id":13}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.892083","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.892123","action_sequence_id":13,"span_id":"13:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.892151","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.892182","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:51.904777","action_sequence_id":13,"span_id":"13:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:51.904852","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.201738","action_sequence_id":13,"span_id":"13:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.201907","action_sequence_id":13,"span_id":"13:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.201956","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.202010","action_sequence_id":13,"span_id":"13:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:54.202284","action":"answer_question","result":{"response":{"content":"The question of the meaning of life is a philosophical and existential one that has been contemplated by various cultures, religions, and individuals throughout history. Different perspectives offer different interpretations of the meaning of life, with answers ranging from the pursuit of happiness and fulfillment, the fulfillment of a divine purpose, the attainment of personal growth and self-discovery, to the concept of living in accordance with certain values or principles.\n\nOne humorous cultural reference to the meaning of life comes from the science fiction series \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, where a supercomputer named Deep Thought calculates that the answer to the ultimate question of life, the universe, and everything is simply the number 42. This satirical take on the question highlights the complexity and ambiguity often associated with trying to comprehend the true meaning of life.","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is the meaning of life?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"The question of the meaning of life is a philosophical and existential one that has been contemplated by various cultures, religions, and individuals throughout history. Different perspectives offer different interpretations of the meaning of life, with answers ranging from the pursuit of happiness and fulfillment, the fulfillment of a divine purpose, the attainment of personal growth and self-discovery, to the concept of living in accordance with certain values or principles.\n\nOne humorous cultural reference to the meaning of life comes from the science fiction series \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, where a supercomputer named Deep Thought calculates that the answer to the ultimate question of life, the universe, and everything is simply the number 42. This satirical take on the question highlights the complexity and ambiguity often associated with trying to comprehend the true meaning of life.","type":"text","role":"assistant"}},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:54.202587","action":"response","inputs":{},"sequence_id":14}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.202656","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.202690","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.202717","action_sequence_id":14,"span_id":"14:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.202737","action_sequence_id":14,"span_id":"14:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:54.202905","action":"response","result":{"chat_item":{"content":"The question of the meaning of life is a philosophical and existential one that has been contemplated by various cultures, religions, and individuals throughout history. Different perspectives offer different interpretations of the meaning of life, with answers ranging from the pursuit of happiness and fulfillment, the fulfillment of a divine purpose, the attainment of personal growth and self-discovery, to the concept of living in accordance with certain values or principles.\n\nOne humorous cultural reference to the meaning of life comes from the science fiction series \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, where a supercomputer named Deep Thought calculates that the answer to the ultimate question of life, the universe, and everything is simply the number 42. This satirical take on the question highlights the complexity and ambiguity often associated with trying to comprehend the true meaning of life.","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-HjsTuiHXZv2BEOcfBQwnCKoG.png?st=2024-03-18T21%3A41%3A49Z&se=2024-03-18T23%3A41%3A49Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-03-18T07%3A23%3A11Z&ske=2024-03-19T07%3A23%3A11Z&sks=b&skv=2021-08-06&sig=lyFaRFiMO0ien3qspCwYOHkBgnXgL2W5kR1rplSZsJg%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Below is a simple Python code snippet that computes the meaning of life (which, according to \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, is 42):\n\n```python\nmeaning_of_life = 20 + 22\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```\n\nFeel free to try it out!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is the meaning of life?","type":"text"},{"content":"The question of the meaning of life is a philosophical and existential one that has been contemplated by various cultures, religions, and individuals throughout history. Different perspectives offer different interpretations of the meaning of life, with answers ranging from the pursuit of happiness and fulfillment, the fulfillment of a divine purpose, the attainment of personal growth and self-discovery, to the concept of living in accordance with certain values or principles.\n\nOne humorous cultural reference to the meaning of life comes from the science fiction series \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, where a supercomputer named Deep Thought calculates that the answer to the ultimate question of life, the universe, and everything is simply the number 42. This satirical take on the question highlights the complexity and ambiguity often associated with trying to comprehend the true meaning of life.","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"prompt":"What is the meaning of life?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"The question of the meaning of life is a philosophical and existential one that has been contemplated by various cultures, religions, and individuals throughout history. Different perspectives offer different interpretations of the meaning of life, with answers ranging from the pursuit of happiness and fulfillment, the fulfillment of a divine purpose, the attainment of personal growth and self-discovery, to the concept of living in accordance with certain values or principles.\n\nOne humorous cultural reference to the meaning of life comes from the science fiction series \"The Hitchhiker's Guide to the Galaxy\" by Douglas Adams, where a supercomputer named Deep Thought calculates that the answer to the ultimate question of life, the universe, and everything is simply the number 42. This satirical take on the question highlights the complexity and ambiguity often associated with trying to comprehend the true meaning of life.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:09.007967","action":"prompt","inputs":{"prompt":"Please draw a picture of a philosopher"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.008077","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.008128","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:09.008268","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:09.008412","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.008480","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.008517","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:09.008621","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:09.008756","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.008817","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.008859","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.008892","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.008936","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.020247","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.020324","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.503262","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.503569","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.503643","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.503917","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:09.504200","action":"decide_mode","result":{"mode":"generate_image"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a philosopher","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_image"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:09.505557","action":"generate_image","inputs":{},"sequence_id":3}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.505775","action_sequence_id":3,"span_id":"3:0","span_name":"create_openai_client","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:09.528742","action_sequence_id":3,"span_id":"3:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:09.528967","action_sequence_id":3,"span_id":"3:1","span_name":"query_openai_image","parent_span_id":null,"span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.524289","action_sequence_id":3,"span_id":"3:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.524662","action_sequence_id":3,"span_id":"3:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai_image"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.524724","action_sequence_id":3,"span_id":"3:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:18.524876","action":"generate_image","result":{"response":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"}],"__SEQUENCE_ID":3,"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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:18.525134","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.525214","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.525255","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.525326","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.525476","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:18.525618","action":"response","result":{"chat_item":{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"}],"__SEQUENCE_ID":4,"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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:18.526014","action":"prompt","inputs":{"prompt":"Please write code to compute the meaning of life (hint, its 42)"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.526106","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.526416","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:18.526686","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"prompt"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:18.527098","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.527325","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.527365","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:18.530212","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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:18.530545","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.530651","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.530708","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.530746","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.530782","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:18.546834","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:18.546988","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:19.181840","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:19.182000","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:19.182085","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:19.182174","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:19.182495","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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please write code to compute the meaning of life (hint, its 42)","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:19.182917","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-05-04T22:54:19.182995","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:19.183032","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:19.183064","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:19.183097","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:19.201265","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:19.201413","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.880398","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.880583","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.880673","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.880720","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:20.881015","action":"generate_code","result":{"response":{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%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"}],"__SEQUENCE_ID":8,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:20.881302","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.881465","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.881506","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.881540","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.881567","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:20.881899","action":"response","result":{"chat_item":{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"prompt":"Please write code to compute the meaning of life (hint, its 42)","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:20.882211","action":"prompt","inputs":{"prompt":"What is the meaning of life?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.882279","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.882328","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:20.883535","action":"prompt","result":{"chat_item":{"role":"user","content":"What is the meaning of life?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a philosopher","type":"text"},{"content":"https://oaidalleapiprodscus.blob.core.windows.net/private/org-UENfV68Ccazb3rdeYDLRWmoF/user-HZjz1odNshRHOBEBcksSPmPR/img-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"What is the meaning of life?","__PRIOR_STEP":"prompt"},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:20.885484","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.885577","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.885621","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:20.885821","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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"What is the meaning of life?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:20.885994","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.886056","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.886098","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.886152","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.886243","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:20.899913","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:20.900025","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:21.318462","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:21.318579","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:21.318625","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:21.318674","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:21.318873","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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\nThe meaning of life is: 42\n```","type":"code","role":"assistant"},{"role":"user","content":"What is the meaning of life?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is the meaning of life?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:21.319150","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-05-04T22:54:21.319228","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:21.319272","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:21.319303","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:21.319335","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:21.336663","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:21.336798","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.400229","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.400386","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.400454","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.400526","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.400912","action":"answer_question","result":{"response":{"content":"The meaning of life is a philosophical and existential question that has been pondered by humanity for centuries. Different individuals, cultures, and belief systems may have varying interpretations and perspectives on the meaning of life. Some find meaning through personal relationships, accomplishments, creativity, spirituality, or contributing to the greater good of society. Others may seek meaning in experiences, self-discovery, personal growth, or pursuit of knowledge and understanding. Ultimately, the meaning of life is a deeply personal and subjective concept that each individual may perceive and define in their own unique way.","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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\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"}],"__SEQUENCE_ID":13,"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 and existential question that has been pondered by humanity for centuries. Different individuals, cultures, and belief systems may have varying interpretations and perspectives on the meaning of life. Some find meaning through personal relationships, accomplishments, creativity, spirituality, or contributing to the greater good of society. Others may seek meaning in experiences, self-discovery, personal growth, or pursuit of knowledge and understanding. Ultimately, the meaning of life is a deeply personal and subjective concept that each individual may perceive and define in their own unique way.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.401281","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.401440","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.401524","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.401583","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.401629","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.402012","action":"response","result":{"chat_item":{"content":"The meaning of life is a philosophical and existential question that has been pondered by humanity for centuries. Different individuals, cultures, and belief systems may have varying interpretations and perspectives on the meaning of life. Some find meaning through personal relationships, accomplishments, creativity, spirituality, or contributing to the greater good of society. Others may seek meaning in experiences, self-discovery, personal growth, or pursuit of knowledge and understanding. Ultimately, the meaning of life is a deeply personal and subjective concept that each individual may perceive and define in their own unique way.","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-ASLRZxbiQuzhqhjz5s0rOcqy.png?st=2024-05-05T04%3A54%3A18Z&se=2024-05-05T06%3A54%3A18Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-05-04T21%3A31%3A18Z&ske=2024-05-05T21%3A31%3A18Z&sks=b&skv=2021-08-06&sig=iWfHYle8%2ByIxeEr4cmQKyT2aERW9ylNxQIYqSAWecZ4%3D","type":"image","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code to compute the meaning of life (hint, its 42)","type":"text"},{"content":"Certainly! Here's a simple Python code snippet that computes the meaning of life (which, as you correctly hinted, is 42):\n\n```python\nmeaning_of_life = 6 * 7\nprint(\"The meaning of life is:\", meaning_of_life)\n```\n\nWhen you run this code, it will output:\n```\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 and existential question that has been pondered by humanity for centuries. Different individuals, cultures, and belief systems may have varying interpretations and perspectives on the meaning of life. Some find meaning through personal relationships, accomplishments, creativity, spirituality, or contributing to the greater good of society. Others may seek meaning in experiences, self-discovery, personal growth, or pursuit of knowledge and understanding. Ultimately, the meaning of life is a deeply personal and subjective concept that each individual may perceive and define in their own unique way.","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"prompt":"What is the meaning of life?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"The meaning of life is a philosophical and existential question that has been pondered by humanity for centuries. Different individuals, cultures, and belief systems may have varying interpretations and perspectives on the meaning of life. Some find meaning through personal relationships, accomplishments, creativity, spirituality, or contributing to the greater good of society. Others may seek meaning in experiences, self-discovery, personal growth, or pursuit of knowledge and understanding. Ultimately, the meaning of life is a deeply personal and subjective concept that each individual may perceive and define in their own unique way.","type":"text","role":"assistant"}},"sequence_id":14}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/graph.json
index cdbd9153..a8ed3d9a 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/graph.json
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt", "__tracer"]}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n", "inputs": ["__tracer"]}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": ["__tracer"]}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/log.jsonl
index 1ae856e9..a1afaed1 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-5-jokes/log.jsonl
@@ -1,132 +1,132 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:41:54.211235","action":"prompt","inputs":{"prompt":"Please draw a picture of a good joke"},"sequence_id":0}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.211351","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.211391","action_sequence_id":0,"span_id":"0:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:54.211505","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a good joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:54.211614","action":"check_safety","inputs":{},"sequence_id":1}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.211667","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.211699","action_sequence_id":1,"span_id":"1:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:54.211779","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:54.211874","action":"decide_mode","inputs":{},"sequence_id":2}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.211920","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.211950","action_sequence_id":2,"span_id":"2:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.211975","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.212004","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:54.220352","action_sequence_id":2,"span_id":"2:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:54.220429","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.028996","action_sequence_id":2,"span_id":"2:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.046471","action_sequence_id":2,"span_id":"2:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.046904","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.047068","action_sequence_id":2,"span_id":"2:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:55.048893","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"},"sequence_id":2}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:55.067256","action":"prompt_for_more","inputs":{},"sequence_id":3}
-{"type":"end_entry","end_time":"2024-03-18T15:41:55.067522","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt_for_more","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":3}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:55.067708","action":"response","inputs":{},"sequence_id":4}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.067781","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.067833","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.067864","action_sequence_id":4,"span_id":"4:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.067896","action_sequence_id":4,"span_id":"4:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:55.068009","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":4,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"response","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":4}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:55.068180","action":"prompt","inputs":{"prompt":"Please write code for an interactive knock-knock joke"},"sequence_id":5}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.068235","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.068262","action_sequence_id":5,"span_id":"5:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:55.068415","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"prompt"},"sequence_id":5}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:55.068520","action":"check_safety","inputs":{},"sequence_id":6}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.068566","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.068591","action_sequence_id":6,"span_id":"6:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:55.068691","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:55.068793","action":"decide_mode","inputs":{},"sequence_id":7}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.068834","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.068861","action_sequence_id":7,"span_id":"7:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.068885","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.068925","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.079872","action_sequence_id":7,"span_id":"7:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.079959","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.593188","action_sequence_id":7,"span_id":"7:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.593316","action_sequence_id":7,"span_id":"7:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.593366","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.593420","action_sequence_id":7,"span_id":"7:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:55.593651","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:55.593881","action":"generate_code","inputs":{},"sequence_id":8}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.593968","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.594005","action_sequence_id":8,"span_id":"8:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.594032","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.594062","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:55.606768","action_sequence_id":8,"span_id":"8:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:55.606860","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.132015","action_sequence_id":8,"span_id":"8:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.132261","action_sequence_id":8,"span_id":"8:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.132346","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.132400","action_sequence_id":8,"span_id":"8:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:58.132603","action":"generate_code","result":{"response":{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":8,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"generate_code","safe":true,"mode":"generate_code","response":{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"}},"sequence_id":8}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:58.132870","action":"response","inputs":{},"sequence_id":9}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.132942","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.132975","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.133002","action_sequence_id":9,"span_id":"9:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.133027","action_sequence_id":9,"span_id":"9:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:58.133165","action":"response","result":{"chat_item":{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"response","safe":true,"mode":"generate_code","response":{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"}},"sequence_id":9}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:58.133377","action":"prompt","inputs":{"prompt":"What is a good joke?"},"sequence_id":10}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.133436","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.133467","action_sequence_id":10,"span_id":"10:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:58.133665","action":"prompt","result":{"chat_item":{"role":"user","content":"What is a good joke?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"What is a good joke?","__PRIOR_STEP":"prompt"},"sequence_id":10}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:58.133791","action":"check_safety","inputs":{},"sequence_id":11}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.133840","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.133865","action_sequence_id":11,"span_id":"11:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:58.133989","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"What is a good joke?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:58.134322","action":"decide_mode","inputs":{},"sequence_id":12}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.134508","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.134586","action_sequence_id":12,"span_id":"12:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.134626","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.134693","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.146976","action_sequence_id":12,"span_id":"12:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.147119","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.652837","action_sequence_id":12,"span_id":"12:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.652992","action_sequence_id":12,"span_id":"12:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.653040","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.653092","action_sequence_id":12,"span_id":"12:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:58.653345","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is a good joke?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:58.653606","action":"answer_question","inputs":{},"sequence_id":13}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.653695","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.653736","action_sequence_id":13,"span_id":"13:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.653766","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.653798","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:58.667266","action_sequence_id":13,"span_id":"13:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:58.667353","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.458678","action_sequence_id":13,"span_id":"13:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.458835","action_sequence_id":13,"span_id":"13:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.458885","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.458938","action_sequence_id":13,"span_id":"13:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.459193","action":"answer_question","result":{"response":{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is a good joke?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"}},"sequence_id":13}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.459511","action":"response","inputs":{},"sequence_id":14}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.459597","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.459638","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.459671","action_sequence_id":14,"span_id":"14:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.459697","action_sequence_id":14,"span_id":"14:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.459903","action":"response","result":{"chat_item":{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"prompt":"What is a good joke?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"}},"sequence_id":14}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.460151","action":"prompt","inputs":{"prompt":"The chicken crossed the road because it was a free-range chicken"},"sequence_id":15}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.460416","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.460499","action_sequence_id":15,"span_id":"15:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.460857","action":"prompt","result":{"chat_item":{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":15,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt"},"sequence_id":15}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.461088","action":"check_safety","inputs":{},"sequence_id":16}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.461163","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.461200","action_sequence_id":16,"span_id":"16:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.461396","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":16,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.461601","action":"decide_mode","inputs":{},"sequence_id":17}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.461660","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.461694","action_sequence_id":17,"span_id":"17:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.461722","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.461754","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.471417","action_sequence_id":17,"span_id":"17:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.471449","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.879340","action_sequence_id":17,"span_id":"17:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.879458","action_sequence_id":17,"span_id":"17:1"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.879502","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.879546","action_sequence_id":17,"span_id":"17:2"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.879767","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":17,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"},"sequence_id":17}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.879872","action":"prompt_for_more","inputs":{},"sequence_id":18}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.879961","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":18,"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 apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.880049","action":"response","inputs":{},"sequence_id":19}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.880071","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.880086","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.880097","action_sequence_id":19,"span_id":"19:0.0"}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.880106","action_sequence_id":19,"span_id":"19:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.880184","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Certainly! Here is an example of an interactive knock-knock joke code in Python:\n\n```python\n# Define the function for the joke\ndef knock_knock():\n print(\"Knock, knock.\")\n input(\"Who's there? \")\n print(\"Cow says.\")\n input(\"Cow says who? \")\n print(\"No, Cow says mooooo!\")\n\n# Call the function to start the joke\nknock_knock()\n```\n\nWhen you run this code, it will prompt the user by saying \"Knock, knock.\" and wait for a response. The joke will continue as the user provides the correct responses until the punchline is delivered.","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"Here is a joke for you:\n\nWhy couldn't the bicycle stand up by itself?\n\nBecause it was two-tired!","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":19,"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 apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.415361","action":"prompt","inputs":{"prompt":"Please draw a picture of a good joke"},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.415767","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.415845","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.416031","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a picture of a good joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.416238","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.416312","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.416352","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.416456","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.416616","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.416735","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.416796","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.416841","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.416884","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.426497","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.426592","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.760437","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.760592","action_sequence_id":2,"span_id":"2:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.760650","action_sequence_id":2,"span_id":"2:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.760714","action_sequence_id":2,"span_id":"2:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.760886","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.761107","action":"prompt_for_more","inputs":{},"sequence_id":3}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.761287","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"}],"__SEQUENCE_ID":3,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"prompt_for_more","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":3}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.761498","action":"response","inputs":{},"sequence_id":4}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.761586","action_sequence_id":4,"span_id":"4:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.761659","action_sequence_id":4,"span_id":"4:0.0","span_name":"safe","parent_span_id":"4:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.761707","action_sequence_id":4,"span_id":"4:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.761741","action_sequence_id":4,"span_id":"4:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.761890","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":4,"prompt":"Please draw a picture of a good joke","__PRIOR_STEP":"response","safe":true,"mode":"unknown","response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":4}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.762105","action":"prompt","inputs":{"prompt":"Please write code for an interactive knock-knock joke"},"sequence_id":5}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.762182","action_sequence_id":5,"span_id":"5:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.762222","action_sequence_id":5,"span_id":"5:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.762426","action":"prompt","result":{"chat_item":{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":5,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"prompt"},"sequence_id":5}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.762594","action":"check_safety","inputs":{},"sequence_id":6}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.762665","action_sequence_id":6,"span_id":"6:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.762703","action_sequence_id":6,"span_id":"6:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:23.762844","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":6,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":6}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:23.763015","action":"decide_mode","inputs":{},"sequence_id":7}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.763085","action_sequence_id":7,"span_id":"7:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.763137","action_sequence_id":7,"span_id":"7:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.763174","action_sequence_id":7,"span_id":"7:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.763231","action_sequence_id":7,"span_id":"7:1.0","span_name":"create_openai_client","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:23.779829","action_sequence_id":7,"span_id":"7:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:23.779923","action_sequence_id":7,"span_id":"7:1.1","span_name":"query_openai","parent_span_id":"7:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:24.280870","action_sequence_id":7,"span_id":"7:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:24.281009","action_sequence_id":7,"span_id":"7:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:24.281065","action_sequence_id":7,"span_id":"7:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:24.281121","action_sequence_id":7,"span_id":"7:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:24.281328","action":"decide_mode","result":{"mode":"generate_code"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":7,"prompt":"Please write code for an interactive knock-knock joke","__PRIOR_STEP":"decide_mode","safe":true,"mode":"generate_code"},"sequence_id":7}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:24.281646","action":"generate_code","inputs":{},"sequence_id":8}
+{"type":"begin_span","start_time":"2024-05-04T22:54:24.281760","action_sequence_id":8,"span_id":"8:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:24.281814","action_sequence_id":8,"span_id":"8:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:24.281856","action_sequence_id":8,"span_id":"8:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:24.282050","action_sequence_id":8,"span_id":"8:1.0","span_name":"create_openai_client","parent_span_id":"8:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:24.303483","action_sequence_id":8,"span_id":"8:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:24.303592","action_sequence_id":8,"span_id":"8:1.1","span_name":"query_openai","parent_span_id":"8:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.540113","action_sequence_id":8,"span_id":"8:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.540469","action_sequence_id":8,"span_id":"8:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.540561","action_sequence_id":8,"span_id":"8:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.540669","action_sequence_id":8,"span_id":"8:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:26.541039","action":"generate_code","result":{"response":{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"}],"__SEQUENCE_ID":8,"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\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"}},"sequence_id":8}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:26.541538","action":"response","inputs":{},"sequence_id":9}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.541681","action_sequence_id":9,"span_id":"9:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.541742","action_sequence_id":9,"span_id":"9:0.0","span_name":"safe","parent_span_id":"9:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.541804","action_sequence_id":9,"span_id":"9:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.541849","action_sequence_id":9,"span_id":"9:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:26.542215","action":"response","result":{"chat_item":{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"}],"__SEQUENCE_ID":9,"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\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"}},"sequence_id":9}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:26.542652","action":"prompt","inputs":{"prompt":"What is a good joke?"},"sequence_id":10}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.543347","action_sequence_id":10,"span_id":"10:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.543429","action_sequence_id":10,"span_id":"10:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:26.543820","action":"prompt","result":{"chat_item":{"role":"user","content":"What is a good joke?","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":10,"prompt":"What is a good joke?","__PRIOR_STEP":"prompt"},"sequence_id":10}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:26.544050","action":"check_safety","inputs":{},"sequence_id":11}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.544132","action_sequence_id":11,"span_id":"11:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.544177","action_sequence_id":11,"span_id":"11:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:26.544354","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":11,"prompt":"What is a good joke?","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":11}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:26.544559","action":"decide_mode","inputs":{},"sequence_id":12}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.544634","action_sequence_id":12,"span_id":"12:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.544686","action_sequence_id":12,"span_id":"12:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.544748","action_sequence_id":12,"span_id":"12:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.544795","action_sequence_id":12,"span_id":"12:1.0","span_name":"create_openai_client","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:26.562490","action_sequence_id":12,"span_id":"12:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:26.562645","action_sequence_id":12,"span_id":"12:1.1","span_name":"query_openai","parent_span_id":"12:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:27.086150","action_sequence_id":12,"span_id":"12:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:27.086440","action_sequence_id":12,"span_id":"12:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:27.086507","action_sequence_id":12,"span_id":"12:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:27.086589","action_sequence_id":12,"span_id":"12:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:27.086990","action":"decide_mode","result":{"mode":"answer_question"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"What is a good joke?","type":"text"}],"__SEQUENCE_ID":12,"prompt":"What is a good joke?","__PRIOR_STEP":"decide_mode","safe":true,"mode":"answer_question"},"sequence_id":12}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:27.087454","action":"answer_question","inputs":{},"sequence_id":13}
+{"type":"begin_span","start_time":"2024-05-04T22:54:27.087576","action_sequence_id":13,"span_id":"13:0","span_name":"process_chat_history","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:27.087629","action_sequence_id":13,"span_id":"13:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:27.087670","action_sequence_id":13,"span_id":"13:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["change_chat_history"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:27.087714","action_sequence_id":13,"span_id":"13:1.0","span_name":"create_openai_client","parent_span_id":"13:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:27.108569","action_sequence_id":13,"span_id":"13:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:27.108677","action_sequence_id":13,"span_id":"13:1.1","span_name":"query_openai","parent_span_id":"13:1","span_dependencies":["create_openai_client"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.086455","action_sequence_id":13,"span_id":"13:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.086775","action_sequence_id":13,"span_id":"13:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.086847","action_sequence_id":13,"span_id":"13:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.087083","action_sequence_id":13,"span_id":"13:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.087399","action":"answer_question","result":{"response":{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"}],"__SEQUENCE_ID":13,"prompt":"What is a good joke?","__PRIOR_STEP":"answer_question","safe":true,"mode":"answer_question","response":{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"}},"sequence_id":13}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.087819","action":"response","inputs":{},"sequence_id":14}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.087913","action_sequence_id":14,"span_id":"14:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.087952","action_sequence_id":14,"span_id":"14:0.0","span_name":"safe","parent_span_id":"14:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.087990","action_sequence_id":14,"span_id":"14:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.088017","action_sequence_id":14,"span_id":"14:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.088201","action":"response","result":{"chat_item":{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"}],"__SEQUENCE_ID":14,"prompt":"What is a good joke?","__PRIOR_STEP":"response","safe":true,"mode":"answer_question","response":{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"}},"sequence_id":14}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.088598","action":"prompt","inputs":{"prompt":"The chicken crossed the road because it was a free-range chicken"},"sequence_id":15}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.088697","action_sequence_id":15,"span_id":"15:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.088735","action_sequence_id":15,"span_id":"15:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.089179","action":"prompt","result":{"chat_item":{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":15,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"prompt"},"sequence_id":15}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.089359","action":"check_safety","inputs":{},"sequence_id":16}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.089421","action_sequence_id":16,"span_id":"16:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.089455","action_sequence_id":16,"span_id":"16:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.089626","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":16,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":16}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.092400","action":"decide_mode","inputs":{},"sequence_id":17}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.092674","action_sequence_id":17,"span_id":"17:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.092740","action_sequence_id":17,"span_id":"17:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.092782","action_sequence_id":17,"span_id":"17:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.092820","action_sequence_id":17,"span_id":"17:1.0","span_name":"create_openai_client","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.113283","action_sequence_id":17,"span_id":"17:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.113429","action_sequence_id":17,"span_id":"17:1.1","span_name":"query_openai","parent_span_id":"17:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.506177","action_sequence_id":17,"span_id":"17:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.506496","action_sequence_id":17,"span_id":"17:1"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.506561","action_sequence_id":17,"span_id":"17:2","span_name":"process_openai_response","parent_span_id":null,"span_dependencies":["query_openai"]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.506646","action_sequence_id":17,"span_id":"17:2"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.506983","action":"decide_mode","result":{"mode":"unknown"},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":17,"prompt":"The chicken crossed the road because it was a free-range chicken","__PRIOR_STEP":"decide_mode","safe":true,"mode":"unknown"},"sequence_id":17}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.507444","action":"prompt_for_more","inputs":{},"sequence_id":18}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.507740","action":"prompt_for_more","result":{"response":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"}],"__SEQUENCE_ID":18,"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 apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":18}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.507988","action":"response","inputs":{},"sequence_id":19}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.508064","action_sequence_id":19,"span_id":"19:0","span_name":"process_response","parent_span_id":null,"span_dependencies":[]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.508113","action_sequence_id":19,"span_id":"19:0.0","span_name":"safe","parent_span_id":"19:0","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.508162","action_sequence_id":19,"span_id":"19:0.0"}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.508196","action_sequence_id":19,"span_id":"19:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.508442","action":"response","result":{"chat_item":{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a picture of a good joke","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"},{"role":"user","content":"Please answer the following question:: Please write code for an interactive knock-knock joke","type":"text"},{"content":"Sure! Here's a simple Python code for an interactive knock-knock joke:\n\n```python\ndef knock_knock_joke():\n print(\"Knock, knock!\")\n input()\n print(\"Who's there?\")\n input()\n print(\"Boo.\")\n input()\n print(\"Boo who?\")\n input()\n print(\"Don't cry, it's just a joke!\")\n\nknock_knock_joke()\n```\n\nWhen you run this code, it will simulate the classic knock-knock joke interaction. Just hit Enter after each prompt to proceed to the next part of the joke. Enjoy!","type":"code","role":"assistant"},{"role":"user","content":"Please answer the following question:: What is a good joke?","type":"text"},{"content":"A good joke is one that is clever, funny, and makes people laugh. Humor is subjective, so what one person finds funny, another might not. Some common elements of a good joke include wordplay, puns, irony, exaggeration, or a unexpected twist in the punchline. The best jokes often surprise the audience and leave them chuckling or laughing out loud. Ultimately, a good joke is one that brings joy and entertainment to those who hear it.","type":"text","role":"assistant"},{"role":"user","content":"The chicken crossed the road because it was a free-range chicken","type":"text"},{"content":"None of the response modes I support apply to your question. Please clarify?","type":"text","role":"assistant"}],"__SEQUENCE_ID":19,"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 apply to your question. Please clarify?","type":"text","role":"assistant"}},"sequence_id":19}
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/graph.json b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/graph.json
index cdbd9153..a8ed3d9a 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/graph.json
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/graph.json
@@ -1 +1 @@
-{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n"}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n"}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n"}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n"}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
+{"type": "application", "entrypoint": "prompt", "actions": [{"type": "action", "name": "prompt", "reads": [], "writes": ["chat_history", "prompt"], "code": "@action(reads=[], writes=[\"chat_history\", \"prompt\"])\ndef process_prompt(state: State, prompt: str, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_prompt\"):\n result = {\"chat_item\": {\"role\": \"user\", \"content\": prompt, \"type\": \"text\"}}\n return result, state.wipe(keep=[\"prompt\", \"chat_history\"]).append(\n chat_history=result[\"chat_item\"]\n ).update(prompt=prompt)\n", "inputs": ["prompt", "__tracer"]}, {"type": "action", "name": "check_safety", "reads": ["prompt"], "writes": ["safe"], "code": "@action(reads=[\"prompt\"], writes=[\"safe\"])\ndef check_safety(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"check_safety\"):\n result = {\"safe\": \"unsafe\" not in state[\"prompt\"]} # quick hack to demonstrate\n return result, state.update(safe=result[\"safe\"])\n", "inputs": ["__tracer"]}, {"type": "action", "name": "decide_mode", "reads": ["prompt"], "writes": ["mode"], "code": "@action(reads=[\"prompt\"], writes=[\"mode\"])\ndef choose_mode(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"generate_prompt\"):\n prompt = (\n f\"You are a chatbot. You've been prompted this: {state['prompt']}. \"\n f\"You have the capability of responding in the following modes: {', '.join(MODES)}. \"\n \"Please respond with *only* a single word representing the mode that most accurately \"\n \"corresponds to the prompt. Fr instance, if the prompt is 'draw a picture of a cat', \"\n \"the mode would be 'generate_image'. If the prompt is 'what is the capital of France', the mode would be 'answer_question'.\"\n \"If none of these modes apply, please respond with 'unknown'.\"\n )\n with __tracer(\"query_openai\", span_dependencies=[\"generate_prompt\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\"):\n result = client.chat.completions.create(\n model=\"gpt-4\",\n messages=[\n {\"role\": \"system\", \"content\": \"You are a helpful assistant\"},\n {\"role\": \"user\", \"content\": prompt},\n ],\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n content = result.choices[0].message.content\n mode = content.lower()\n if mode not in MODES:\n mode = \"unknown\"\n result = {\"mode\": mode}\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_image", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef image_response(\n state: State, __tracer: TracerFactory, model: str = \"dall-e-2\"\n) -> Tuple[dict, State]:\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai_image\", span_dependencies=[\"create_openai_client\"]):\n result = client.images.generate(\n model=model, prompt=state[\"prompt\"], size=\"1024x1024\", quality=\"standard\", n=1\n )\n response = result.data[0].url\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai_image\"]):\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "generate_code", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "answer_question", "reads": ["prompt", "chat_history", "mode"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\", \"mode\"], writes=[\"response\"])\ndef chat_response(\n state: State,\n prepend_prompt: str,\n __tracer: TracerFactory,\n model: str = \"gpt-3.5-turbo\",\n) -> Tuple[dict, State]:\n with __tracer(\"process_chat_history\"):\n chat_history = state[\"chat_history\"].copy()\n chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n chat_history_api_format = [\n {\n \"role\": chat[\"role\"],\n \"content\": chat[\"content\"],\n }\n for chat in chat_history\n ]\n with __tracer(\"query_openai\", span_dependencies=[\"change_chat_history\"]):\n with __tracer(\"create_openai_client\"):\n client = _get_openai_client()\n with __tracer(\"query_openai\", span_dependencies=[\"create_openai_client\"]):\n result = client.chat.completions.create(\n model=model,\n messages=chat_history_api_format,\n )\n with __tracer(\"process_openai_response\", span_dependencies=[\"query_openai\"]):\n response = result.choices[0].message.content\n result = {\n \"response\": {\"content\": response, \"type\": MODES[state[\"mode\"]], \"role\": \"assistant\"}\n }\n return result, state.update(**result)\n", "inputs": ["__tracer"]}, {"type": "action", "name": "prompt_for_more", "reads": ["prompt", "chat_history"], "writes": ["response"], "code": "@action(reads=[\"prompt\", \"chat_history\"], writes=[\"response\"])\ndef prompt_for_more(state: State) -> Tuple[dict, State]:\n result = {\n \"response\": {\n \"content\": \"None of the response modes I support apply to your question. Please clarify?\",\n \"type\": \"text\",\n \"role\": \"assistant\",\n }\n }\n return result, state.update(**result)\n", "inputs": []}, {"type": "action", "name": "response", "reads": ["response", "safe", "mode"], "writes": ["chat_history"], "code": "@action(reads=[\"response\", \"safe\", \"mode\"], writes=[\"chat_history\"])\ndef response(state: State, __tracer: TracerFactory) -> Tuple[dict, State]:\n with __tracer(\"process_response\"):\n if not state[\"safe\"]:\n with __tracer(\"unsafe\"):\n result = {\n \"chat_item\": {\n \"role\": \"assistant\",\n \"content\": \"I'm sorry, I can't respond to that.\",\n \"type\": \"text\",\n }\n }\n else:\n with __tracer(\"safe\"):\n result = {\"chat_item\": state[\"response\"]}\n return result, state.append(chat_history=result[\"chat_item\"])\n", "inputs": ["__tracer"]}], "transitions": [{"type": "transition", "from_": "prompt", "to": "check_safety", "condition": "default"}, {"type": "transition", "from_": "check_safety", "to": "decide_mode", "condition": "safe=True"}, {"type": "transition", "from_": "check_safety", "to": "response", "condition": "default"}, {"type": "transition", "from_": "decide_mode", "to": "generate_image", "condition": "mode=generate_image"}, {"type": "transition", "from_": "decide_mode", "to": "generate_code", "condition": "mode=generate_code"}, {"type": "transition", "from_": "decide_mode", "to": "answer_question", "condition": "mode=answer_question"}, {"type": "transition", "from_": "decide_mode", "to": "prompt_for_more", "condition": "default"}, {"type": "transition", "from_": "generate_image", "to": "response", "condition": "default"}, {"type": "transition", "from_": "answer_question", "to": "response", "condition": "default"}, {"type": "transition", "from_": "generate_code", "to": "response", "condition": "default"}, {"type": "transition", "from_": "prompt_for_more", "to": "response", "condition": "default"}, {"type": "transition", "from_": "response", "to": "prompt", "condition": "default"}]}
\ No newline at end of file
diff --git a/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/log.jsonl b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/log.jsonl
index 2a954df6..f5dedc9a 100644
--- a/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/log.jsonl
+++ b/burr/tracking/server/demo_data/demo:tracing/chat-6-demonstrate-errors/log.jsonl
@@ -1,18 +1,18 @@
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.884679","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.884804","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.884849","action_sequence_id":0,"span_id":"0:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.884947","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.885053","action":"check_safety","inputs":{},"sequence_id":1}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.885105","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.885133","action_sequence_id":1,"span_id":"1:0"}
-{"type":"end_entry","end_time":"2024-03-18T15:41:59.885211","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
-{"type":"begin_entry","start_time":"2024-03-18T15:41:59.885305","action":"decide_mode","inputs":{},"sequence_id":2}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.885353","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.885382","action_sequence_id":2,"span_id":"2:0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.885407","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.885434","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:41:59.896226","action_sequence_id":2,"span_id":"2:1.0"}
-{"type":"begin_span","start_time":"2024-03-18T15:41:59.896300","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
-{"type":"end_span","end_time":"2024-03-18T15:42:00.020951","action_sequence_id":2,"span_id":"2:1.1"}
-{"type":"end_span","end_time":"2024-03-18T15:42:00.021559","action_sequence_id":2,"span_id":"2:1"}
-{"type":"end_entry","end_time":"2024-03-18T15:42:00.024851","action":"decide_mode","result":null,"exception":"Traceback (most recent call last):\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 327, in _step\n raise e\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 317, 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 187, 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 442, in run_and_update\n return self._fn(state, **self._bound_params, **run_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/examples/gpt/application_with_traces.py\", line 53, in choose_mode\n result = client.chat.completions.create(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_utils/_utils.py\", line 271, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/resources/chat/completions.py\", line 659, in create\n return self._post(\n ^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 1180, in post\n return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 869, in request\n return self._request(\n ^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 960, in _request\n raise self._make_status_error_from_response(err.response) from None\nopenai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: fake. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}\n","state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":2}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.525069","action":"prompt","inputs":{"prompt":"Please draw a giraffe."},"sequence_id":0}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.525301","action_sequence_id":0,"span_id":"0:0","span_name":"process_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.525375","action_sequence_id":0,"span_id":"0:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.525538","action":"prompt","result":{"chat_item":{"role":"user","content":"Please draw a giraffe.","type":"text"}},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":0,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"prompt"},"sequence_id":0}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.525699","action":"check_safety","inputs":{},"sequence_id":1}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.525768","action_sequence_id":1,"span_id":"1:0","span_name":"check_safety","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.525807","action_sequence_id":1,"span_id":"1:0"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.525905","action":"check_safety","result":{"safe":true},"exception":null,"state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":1,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":1}
+{"type":"begin_entry","start_time":"2024-05-04T22:54:29.526060","action":"decide_mode","inputs":{},"sequence_id":2}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.526179","action_sequence_id":2,"span_id":"2:0","span_name":"generate_prompt","parent_span_id":null,"span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.526279","action_sequence_id":2,"span_id":"2:0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.526303","action_sequence_id":2,"span_id":"2:1","span_name":"query_openai","parent_span_id":null,"span_dependencies":["generate_prompt"]}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.526325","action_sequence_id":2,"span_id":"2:1.0","span_name":"create_openai_client","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.533213","action_sequence_id":2,"span_id":"2:1.0"}
+{"type":"begin_span","start_time":"2024-05-04T22:54:29.533265","action_sequence_id":2,"span_id":"2:1.1","span_name":"query_openai","parent_span_id":"2:1","span_dependencies":[]}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.689462","action_sequence_id":2,"span_id":"2:1.1"}
+{"type":"end_span","end_time":"2024-05-04T22:54:29.689854","action_sequence_id":2,"span_id":"2:1"}
+{"type":"end_entry","end_time":"2024-05-04T22:54:29.697797","action":"decide_mode","result":null,"exception":"Traceback (most recent call last):\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 375, in _step\n raise e\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 363, in _step\n result, new_state = _run_single_step_action(next_action, self._state, action_inputs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/burr/core/application.py\", line 220, 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 442, in run_and_update\n return self._fn(state, **self._bound_params, **run_kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/dev/dagworks/os/burr/examples/tracing-and-spans/application.py\", line 52, in choose_mode\n result = client.chat.completions.create(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_utils/_utils.py\", line 271, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/resources/chat/completions.py\", line 659, in create\n return self._post(\n ^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 1180, in post\n return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 869, in request\n return self._request(\n ^^^^^^^^^^^^^^\n File \"/Users/elijahbenizzy/.pyenv/versions/3.11/envs/burr-3-11/lib/python3.11/site-packages/openai/_base_client.py\", line 960, in _request\n raise self._make_status_error_from_response(err.response) from None\nopenai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: fake. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}\n","state":{"chat_history":[{"role":"user","content":"Please draw a giraffe.","type":"text"}],"__SEQUENCE_ID":2,"prompt":"Please draw a giraffe.","__PRIOR_STEP":"check_safety","safe":true},"sequence_id":2}