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

Function request_body

tests/test_middleware.py:78–79  ·  view source on GitHub ↗
(call: MockRequestCall)

Source from the content-addressed store, hash-verified

76
77
78def request_body(call: MockRequestCall) -> dict[str, Any]:
79 return cast("dict[str, Any]", json.loads(call.request.content))
80
81
82def middleware_request_body(request: APIRequest) -> dict[str, Any]:

Calls

no outgoing calls

Tested by

no test coverage detected