MCPcopy
hub / github.com/HisMax/RedInk / to_message

Method to_message

backend/errors.py:39–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 }
38
39 def to_message(self) -> str:
40 if self.suggestion:
41 return f"{self.title}:{self.suggestion}"
42 return f"{self.title}:{self.detail}"
43
44
45def error_payload(error: Union[AppError, Exception, str], context: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:

Callers 3

error_payloadFunction · 0.80
_normalize_sse_errorFunction · 0.80
normalize_error_resultFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected