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

Function error_body

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected