extractPlainOutput extracts the actual output from tool result text, stripping metadata like "Exit code:", "Wall time:", "Output:" wrappers.
(raw string)
| 89 | // extractPlainOutput extracts the actual output from tool result text, |
| 90 | // stripping metadata like "Exit code:", "Wall time:", "Output:" wrappers. |
| 91 | func extractPlainOutput(raw string) string { |
| 92 | resp := parseToolOutput(raw) |
| 93 | return string(resp.Stdout) |
| 94 | } |
| 95 | |
| 96 | // --------------------------------------------------------------------------- |
| 97 | // Tool output parsing |