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