(input NotebookEditInput)
| 7 | ) |
| 8 | |
| 9 | func RenderNotebookEditToolUse(input NotebookEditInput) string { |
| 10 | name := filepath.Base(input.NotebookPath) |
| 11 | mode := notebookEditMode(input.EditMode) |
| 12 | modeLabel := "" |
| 13 | if mode != "replace" { |
| 14 | modeLabel = " (" + mode + ")" |
| 15 | } |
| 16 | cellID := input.CellID |
| 17 | if len(cellID) > 8 { |
| 18 | cellID = cellID[:8] |
| 19 | } |
| 20 | return "Edit notebook" + modeLabel + ": " + name + " cell[" + cellID + "]" |
| 21 | } |
| 22 | |
| 23 | func RenderNotebookEditToolResult(content string, isError bool) string { |
| 24 | if isError { |
no test coverage detected