Artifact 63690393b8404e722bb95895bb9ed8429f4bbffcc1347c672e38304b3d51ea57:
- File
test/pic/streams/tool_use.sse
— part of check-in
[c5ab59d7d7]
at
2026-11-18 19:37:32
on branch stage-3
— Adopt Pi's default tools: read, write, edit and bash
Tools take Pi's inputs and return Pi's truncation notices and messages. Edit computes the new file first and journals it with started, so a replay after a crash writes the same bytes and edit joins read and write as replay-safe. Bash keeps the tail of its output, saves the full output when it has to cut, and reports Pi's status lines. Results carry a journaled error flag, cancelled calls are skipped with a result, and the schema moves to version 3. (user: dmestas, size: 1383) [annotate] [blame] [check-ins using] [more...]
event: message_start data: {"type":"message_start","message":{"id":"msg_01","type":"message","role":"assistant","model":"claude-opus-5-5","content":[],"stop_reason":null,"usage":{"input_tokens":25,"output_tokens":1}}} event: content_block_start data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Writing it."}} event: content_block_stop data: {"type":"content_block_stop","index":0} event: content_block_start data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_01","name":"write","input":{}}} event: content_block_delta data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":""}} event: content_block_delta data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"path\": \"notes.txt\", "}} event: content_block_delta data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"\"content\": \"hi\"}"}} event: content_block_stop data: {"type":"content_block_stop","index":1} event: message_delta data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"output_tokens":40}} event: message_stop data: {"type":"message_stop"}