interplane-mv
INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.
Brought by drakestapleton
interplane-mv / dialects / replay / stream-tool-call-split-across-chunks.json
| 1 | { |
| 2 | "format": "interplane-replay/1", |
| 3 | "name": "stream-tool-call-split-across-chunks", |
| 4 | "provider": "synthetic-openai-compatible", |
| 5 | "model": "mock-model", |
| 6 | "endpoint_kind": "chat_completions_stream", |
| 7 | "provenance": { |
| 8 | "origin": "synthetic", |
| 9 | "source_commit": "f1cc43cd", |
| 10 | "captured_on": "2026-10-10", |
| 11 | "note": "Tool call arguments split across SSE events, and the transport chunks split mid-event." |
| 12 | }, |
| 13 | "request": { |
| 14 | "method": "POST", |
| 15 | "path": "/v1/chat/completions", |
| 16 | "header_names": [ |
| 17 | "Content-Type", |
| 18 | "Authorization", |
| 19 | "Accept" |
| 20 | ], |
| 21 | "body": { |
| 22 | "model": "mock-model", |
| 23 | "stream": true, |
| 24 | "messages": [ |
| 25 | { |
| 26 | "role": "user", |
| 27 | "content": "<USER_CONTENT>" |
| 28 | } |
| 29 | ] |
| 30 | } |
| 31 | }, |
| 32 | "response": { |
| 33 | "status": 200, |
| 34 | "header_names": [ |
| 35 | "Content-Type", |
| 36 | "Retry-After" |
| 37 | ], |
| 38 | "chunks": [ |
| 39 | "data: {\"object\":\"chat.completion.chunk\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":null},\"finish_reason\":null", |
| 40 | "}]}\n\ndata: {\"object\":\"chat.completion.chunk\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"id\":\"call_a\",\"type\":\"function\",\"function\":{\"name\":\"read_file\",\"arguments\":\"{\\\"pa\"}}]},\"", |
| 41 | "finish_reason\":null}]}\n\ndata: {\"object\":\"chat.completion.chunk\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"function\":{\"arguments\":\"th\\\":\\\"README.md\\\"}\"}}]},\"finish_reason\":nul", |
| 42 | "l}]}\n\ndata: {\"object\":\"chat.completion.chunk\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"tool_calls\"}]}\n\ndata: [DONE]\n\n" |
| 43 | ] |
| 44 | }, |
| 45 | "expect": { |
| 46 | "class": "parsed", |
| 47 | "text": "", |
| 48 | "tool_calls": [ |
| 49 | { |
| 50 | "name": "read_file", |
| 51 | "arguments": { |
| 52 | "path": "README.md" |
| 53 | } |
| 54 | } |
| 55 | ], |
| 56 | "rejected": [], |
| 57 | "partial": false |
| 58 | } |
| 59 | } |