The events of `tool_stream_events` up to a delta that leaves the input of its `tool_use` block open.
()
| 779 | |
| 780 | |
| 781 | def cut_tool_stream_events() -> list[dict[str, Any]]: |
| 782 | """The events of `tool_stream_events` up to a delta that leaves the input of its `tool_use` block open.""" |
| 783 | delta = {"type": "input_json_delta", "partial_json": '{"city": "SF", "days": '} |
| 784 | return [*tool_stream_events()[:5], {"type": "content_block_delta", "index": 1, "delta": delta}] |
| 785 | |
| 786 | |
| 787 | # The events of a stream that ends before `message_stop`, and the parts that a stream helper has accumulated by then. |
no test coverage detected