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

Function request_body

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected