Skip to content

Commit 2015234

Browse files
committed
fix: interpreter creates DataBlock for literals, sans id, timestamps
This seems to be a relatively recent change. Previously, these would show up in the trace as literal children of the Text block. Now they appear as non-literal DataBlock children -- but without timestamp or block id. As a result, they are missing from the UI. Signed-off-by: Nick Mitchell <[email protected]>
1 parent c40e81a commit 2015234

File tree

8 files changed

+15
-8
lines changed

8 files changed

+15
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"kind": "text", "id": "text", "start_nanos": 1739903831496168000, "end_nanos": 1739903834591819000, "timezone": "EST", "description": "Simple LLM interaction", "defs": {}, "text": [{"kind": "data", "id": "", "defs": {}, "data": "write a hello world example\n", "result": "write a hello world example\n"}, {"kind": "model", "id": "text.1.model", "context": [{"role": "user", "content": "write a hello world example\n", "defsite": "text.0"}], "start_nanos": 1739903831533250000, "end_nanos": 1739903834591781000, "timezone": "EST", "defs": {}, "platform": "litellm", "model": "ollama/llama3.1:8b", "parameters": {"temperature": 0.0, "stop_sequences": "!"}, "result": "**Hello World Example**\n=======================\n\nBelow is a simple \"Hello, World!\" program in Python:\n\n```python\n# hello_world.py\n\ndef main():\n \"\"\"Prints 'Hello, World!' to the console.\"\"\"\n print(\"Hello, World!\")\n\nif __name__ == \"__main__\":\n main()\n```\n\n**How to Run:**\n\n1. Save this code in a file named `hello_world.py`.\n2. Open your terminal or command prompt.\n3. Navigate to the directory where you saved the file.\n4. Type `python hello_world.py` and press Enter.\n\nYou should see \"Hello, World!\" printed on your console."}], "result": "write a hello world example\n**Hello World Example**\n=======================\n\nBelow is a simple \"Hello, World!\" program in Python:\n\n```python\n# hello_world.py\n\ndef main():\n \"\"\"Prints 'Hello, World!' to the console.\"\"\"\n print(\"Hello, World!\")\n\nif __name__ == \"__main__\":\n main()\n```\n\n**How to Run:**\n\n1. Save this code in a file named `hello_world.py`.\n2. Open your terminal or command prompt.\n3. Navigate to the directory where you saved the file.\n4. Type `python hello_world.py` and press Enter.\n\nYou should see \"Hello, World!\" printed on your console."}
1+
{"kind": "text", "id": "text", "start_nanos": 1739986653926530000, "end_nanos": 1739986657052924000, "timezone": "EST", "description": "Simple LLM interaction", "defs": {}, "text": [{"kind": "data", "id": "text.0", "start_nanos": 1739986653926570000, "end_nanos": 1739986653927105000, "timezone": "EST", "defs": {}, "data": "write a hello world example\n", "result": "write a hello world example\n"}, {"kind": "model", "id": "text.1.model", "context": [{"role": "user", "content": "write a hello world example\n", "defsite": "text.0"}], "start_nanos": 1739986653966718000, "end_nanos": 1739986657052886000, "timezone": "EST", "defs": {}, "platform": "litellm", "model": "ollama/llama3.1:8b", "parameters": {"temperature": 0.0, "stop_sequences": "!"}, "result": "**Hello World Example**\n=======================\n\nBelow is a simple \"Hello, World!\" program in Python:\n\n```python\n# hello_world.py\n\ndef main():\n \"\"\"Prints 'Hello, World!' to the console.\"\"\"\n print(\"Hello, World!\")\n\nif __name__ == \"__main__\":\n main()\n```\n\n**How to Run:**\n\n1. Save this code in a file named `hello_world.py`.\n2. Open your terminal or command prompt.\n3. Navigate to the directory where you saved the file.\n4. Type `python hello_world.py` and press Enter.\n\nYou should see \"Hello, World!\" printed on your console."}], "result": "write a hello world example\n**Hello World Example**\n=======================\n\nBelow is a simple \"Hello, World!\" program in Python:\n\n```python\n# hello_world.py\n\ndef main():\n \"\"\"Prints 'Hello, World!' to the console.\"\"\"\n print(\"Hello, World!\")\n\nif __name__ == \"__main__\":\n main()\n```\n\n**How to Run:**\n\n1. Save this code in a file named `hello_world.py`.\n2. Open your terminal or command prompt.\n3. Navigate to the directory where you saved the file.\n4. Type `python hello_world.py` and press Enter.\n\nYou should see \"Hello, World!\" printed on your console."}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"kind": "text", "id": "text", "start_nanos": 1739903835778696000, "end_nanos": 1739903837975708000, "timezone": "EST", "description": "Model chaining", "defs": {}, "text": [{"kind": "data", "id": "", "defs": {}, "data": "Hello\n", "result": "Hello\n"}, {"kind": "model", "id": "text.1.model", "context": [{"role": "user", "content": "Hello\n", "defsite": "text.0"}], "start_nanos": 1739903835816791000, "end_nanos": 1739903836552833000, "timezone": "EST", "defs": {}, "platform": "litellm", "model": "ollama/llama3.1:8b", "parameters": {"stop_sequences": "!"}, "result": "Hello! How are you today? Is there something I can help you with or would you like to chat?"}, {"kind": "data", "id": "", "defs": {}, "data": "\nDid you just say Hello?\n", "result": "\nDid you just say Hello?\n"}, {"kind": "model", "id": "text.3.model", "context": [{"role": "user", "content": "Hello\n", "defsite": "text.0"}, {"content": "Hello! How are you today? Is there something I can help you with or would you like to chat?", "role": "assistant", "defsite": "text.1.model"}, {"role": "user", "content": "\nDid you just say Hello?\n", "defsite": "text.2"}], "start_nanos": 1739903836553009000, "end_nanos": 1739903837975675000, "timezone": "EST", "defs": {}, "platform": "litellm", "model": "ollama/llama3.1:8b", "parameters": {"stop_sequences": "!"}, "result": "Yes, I did. I'm a large language model, and when you first interacted with me, the system prompted me to respond with a friendly greeting. That's why you see \"Hello\" there again in the chat log! Would you like to start a conversation or ask something specific?"}], "result": "Hello\nHello! How are you today? Is there something I can help you with or would you like to chat?\nDid you just say Hello?\nYes, I did. I'm a large language model, and when you first interacted with me, the system prompted me to respond with a friendly greeting. That's why you see \"Hello\" there again in the chat log! Would you like to start a conversation or ask something specific?"}
1+
{"kind": "text", "id": "text", "start_nanos": 1739986658233422000, "end_nanos": 1739986659650885000, "timezone": "EST", "description": "Model chaining", "defs": {}, "text": [{"kind": "data", "id": "text.0", "start_nanos": 1739986658233464000, "end_nanos": 1739986658233996000, "timezone": "EST", "defs": {}, "data": "Hello\n", "result": "Hello\n"}, {"kind": "model", "id": "text.1.model", "context": [{"role": "user", "content": "Hello\n", "defsite": "text.0"}], "start_nanos": 1739986658271319000, "end_nanos": 1739986658953079000, "timezone": "EST", "defs": {}, "platform": "litellm", "model": "ollama/llama3.1:8b", "parameters": {"stop_sequences": "!"}, "result": "Hello! Is there something I can help you with or would you like to chat?"}, {"kind": "data", "id": "text.2", "start_nanos": 1739986658953103000, "end_nanos": 1739986658953166000, "timezone": "EST", "defs": {}, "data": "\nDid you just say Hello?\n", "result": "\nDid you just say Hello?\n"}, {"kind": "model", "id": "text.3.model", "context": [{"role": "user", "content": "Hello\n", "defsite": "text.0"}, {"content": "Hello! Is there something I can help you with or would you like to chat?", "role": "assistant", "defsite": "text.1.model"}, {"role": "user", "content": "\nDid you just say Hello?\n", "defsite": "text.2"}], "start_nanos": 1739986658953268000, "end_nanos": 1739986659650853000, "timezone": "EST", "defs": {}, "platform": "litellm", "model": "ollama/llama3.1:8b", "parameters": {"stop_sequences": "!"}, "result": "I did! It was a bit of a repetitive conversation starter. Would you like to move on and talk about something else?"}], "result": "Hello\nHello! Is there something I can help you with or would you like to chat?\nDid you just say Hello?\nI did! It was a bit of a repetitive conversation starter. Would you like to move on and talk about something else?"}

pdl-live-react/src/demos/demo3.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)