(cell: NotebookCellSource)
| 153 | } |
| 154 | |
| 155 | function getToolResultFromCell(cell: NotebookCellSource) { |
| 156 | const contentResult = cellContentToToolResult(cell) |
| 157 | const outputResults = cell.outputs?.flatMap(cellOutputToToolResult) |
| 158 | return [contentResult, ...(outputResults ?? [])] |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Reads and parses a Jupyter notebook file into processed cell data |
nothing calls this directly
no test coverage detected