29 lines
1.5 KiB
JSON
29 lines
1.5 KiB
JSON
[
|
|
{
|
|
"kind": "chunks",
|
|
"chunks": [
|
|
{ "type": "block-start", "index": 0, "blockType": "tool-call" },
|
|
{ "type": "block-end", "index": 0, "block": { "type": "tool-call", "id": "code-image-source", "name": "run_code", "arguments": "{\"code\":\"return await tools.read_image({ file_path: 'red.png' })\",\"description\":\"Read the source image\"}" } },
|
|
{ "type": "usage", "usage": { "inputTokens": 3, "outputTokens": 3 } },
|
|
{ "type": "finish", "reason": { "kind": "tool-calls" } }
|
|
]
|
|
},
|
|
{
|
|
"kind": "chunks",
|
|
"chunks": [
|
|
{ "type": "block-start", "index": 0, "blockType": "tool-call" },
|
|
{ "type": "block-end", "index": 0, "block": { "type": "tool-call", "id": "code-image-object", "name": "run_code", "arguments": "{\"code\":\"return await tools.read_image({ file_path: '{{fromRequest:<path>(.+)/red\\.png</path>}}/.dsh/attachments/v1/objects/b1/b1ff9c8ea3a780bad09b346c423d2d0e46815926879b18e841d928376a946640' })\",\"description\":\"Read the normalized attachment object directly\"}" } },
|
|
{ "type": "usage", "usage": { "inputTokens": 3, "outputTokens": 3 } },
|
|
{ "type": "finish", "reason": { "kind": "tool-calls" } }
|
|
]
|
|
},
|
|
{
|
|
"kind": "chunks",
|
|
"chunks": [
|
|
{ "type": "block-start", "index": 0, "blockType": "text" },
|
|
{ "type": "block-end", "index": 0, "block": { "type": "text", "text": "DONE" } },
|
|
{ "type": "usage", "usage": { "inputTokens": 3, "outputTokens": 3 } },
|
|
{ "type": "finish", "reason": { "kind": "stop" } }
|
|
]
|
|
}
|
|
]
|