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