(id: str)
| 408 | |
| 409 | |
| 410 | def compaction_response(id: str) -> httpx2.Response: |
| 411 | body = message_response(id, stop_reason="compaction").json() |
| 412 | return httpx2.Response(200, json={**body, "content": COMPACTED.get("content")}) |
| 413 | |
| 414 | |
| 415 | def stream_response( |