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

Method to_dict

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

Source from the content-addressed store, hash-verified

25 return f"{ERROR_TYPE_BASE}/{self.code.lower().replace('_', '-')}"
26
27 def to_dict(self) -> Dict[str, Any]:
28 return {
29 "type": self.type,
30 "code": self.code,
31 "title": self.title,
32 "detail": self.detail,
33 "suggestion": self.suggestion,
34 "status": self.status,
35 "retryable": self.retryable,
36 "diagnostics": self.diagnostics,
37 }
38
39 def to_message(self) -> str:
40 if self.suggestion:

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