(name: string)
| 189 | export const stripTrailingPasteNewlines = (text: string) => (/[^\n]/.test(text) ? text.replace(/\n+$/, '') : text) |
| 190 | |
| 191 | export const toolTrailLabel = (name: string) => |
| 192 | name |
| 193 | .split('_') |
| 194 | .filter(Boolean) |
| 195 | .map(p => p[0]!.toUpperCase() + p.slice(1)) |
| 196 | .join(' ') || name |
| 197 | |
| 198 | export const formatToolCall = (name: string, context = '') => { |
| 199 | const label = toolTrailLabel(name) |
no test coverage detected