(req: httpx2.Request)
| 126 | captured: list[httpx2.Request] = [] |
| 127 | |
| 128 | async def handler(req: httpx2.Request) -> httpx2.Response: |
| 129 | captured.append(req) |
| 130 | return httpx2.Response(200, json={"id": "agent_test"}) |
| 131 | |
| 132 | transport = httpx2.MockTransport(handler) |
| 133 | http_client = httpx2.AsyncClient(transport=transport) |