MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / handler

Function handler

tests/lib/test_scoped_client.py:126–128  ·  view source on GitHub ↗
(req: httpx2.Request)

Source from the content-addressed store, hash-verified

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)

Callers 3

_validateMethod · 0.85
handleMethod · 0.85
handleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected