(content string, isError bool)
| 21 | } |
| 22 | |
| 23 | func RenderReadFileToolResult(content string, isError bool) string { |
| 24 | if isError { |
| 25 | return "Read failed: " + truncateString(content, 150) |
| 26 | } |
| 27 | lineCount := 0 |
| 28 | if content != "" { |
| 29 | lineCount = strings.Count(content, "\n") + 1 |
| 30 | } |
| 31 | return "Read " + strconv.Itoa(lineCount) + " lines" |
| 32 | } |
| 33 | |
| 34 | func RenderGroupedReadFileToolUse(inputs []ReadFileInput) string { |
| 35 | if len(inputs) == 0 { |
nothing calls this directly
no test coverage detected