(message map[string]any)
| 659 | r.markDirty() |
| 660 | } |
| 661 | |
| 662 | func FormatToolCallEntry(event UiEvent) string { |
| 663 | toolName := firstNonEmpty(event.Content, stringFromAny(event.Metadata["tool_name"]), "tool") |
| 664 | return fmt.Sprintf("[tool] %s", toolName) |
| 665 | } |
| 666 | |
| 667 | func FormatToolResultEntry(event UiEvent) string { |
| 668 | if truthy(event.Metadata["denied"]) { |
| 669 | return "[tool denied]" |
| 670 | } |
no test coverage detected