(response ToolErrorResponseRecord)
| 209 | } |
| 210 | |
| 211 | func sanitizeToolErrorResponse(response ToolErrorResponseRecord) ToolErrorResponseRecord { |
| 212 | response.Error.Message = redactToolDiagnostic(response.Error.Message) |
| 213 | if len(response.Error.Details) > 0 { |
| 214 | response.Error.Details = nil |
| 215 | } |
| 216 | return response |
| 217 | } |
| 218 | |
| 219 | func sanitizeToolInvokeResponse(response ToolInvokeResponseRecord) ToolInvokeResponseRecord { |
| 220 | response.Result.Preview = redactToolDiagnostic(response.Result.Preview) |
no test coverage detected