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