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

Function error_body

tests/test_middleware.py:74–75  ·  view source on GitHub ↗
(*, type: str, message: str)

Source from the content-addressed store, hash-verified

72
73
74def error_body(*, type: str, message: str) -> dict[str, Any]:
75 return {"type": "error", "error": {"type": type, "message": message}}
76
77
78def request_body(call: MockRequestCall) -> dict[str, Any]:

Calls

no outgoing calls

Tested by

no test coverage detected