(result map[string]any)
| 1545 | } |
| 1546 | |
| 1547 | func toolJSONResponse(result map[string]any) fantasy.ToolResponse { |
| 1548 | data, err := json.Marshal(result) |
| 1549 | if err != nil { |
| 1550 | return fantasy.NewTextResponse("{}") |
| 1551 | } |
| 1552 | return fantasy.NewTextResponse(string(data)) |
| 1553 | } |
| 1554 | |
| 1555 | func toolJSONErrorResponse(result map[string]any) fantasy.ToolResponse { |
| 1556 | resp := toolJSONResponse(result) |
no test coverage detected