(output: string, status: string)
| 60 | } |
| 61 | |
| 62 | function withReadStatus(output: string, status: string): string { |
| 63 | const note = `<system>${status}</system>`; |
| 64 | return output.length > 0 ? `${output}\n${note}` : note; |
| 65 | } |
| 66 | |
| 67 | function toolWithContent(content: string, workspace: WorkspaceConfig = PERMISSIVE_WORKSPACE) { |
| 68 | const bytes = Buffer.from(content, 'utf8'); |