MCPcopy
hub / github.com/anthropics/anthropic-sdk-python / handle

Method handle

tests/test_middleware.py:280–283  ·  tests/test_middleware.py::ParseInMiddleware.handle
(self, request: APIRequest, call_next: CallNext)

Source from the content-addressed store, hash-verified

278
279 @override
280 def handle(self, request: APIRequest, call_next: CallNext) -> Any:
281 response = call_next(request)
282 self.parsed.append(response.parse())
283 return response
284
285 @override
286 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any:

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected