buildToolResponse marshals a buildErrorResult into a tool response. Separate from toolResponse to keep the map[string]any constraint on the general helper while allowing typed error structs.
(r buildErrorResult)
| 33 | // Separate from toolResponse to keep the map[string]any constraint |
| 34 | // on the general helper while allowing typed error structs. |
| 35 | func buildToolResponse(r buildErrorResult) fantasy.ToolResponse { |
| 36 | return marshalToolResponse(r) |
| 37 | } |
| 38 | |
| 39 | // responseErrorResult converts a codersdk.Response into a structured |
| 40 | // tool result. We return these via toolResponse rather than |
no test coverage detected