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

Function error_body

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected