Skip to main content

Module notebook_edit_tool

Module notebook_edit_tool 

Source
Expand description

Notebook Edit Tool Implementation

此模块实现了 NotebookEditTool,用于编辑 Jupyter Notebook 单元格:

  • 支持 replace, insert, delete 三种编辑模式
  • 自动清理单元格输出(code 类型)
  • Jupyter notebook 格式验证
  • 增强的错误处理和路径验证
  • 保留单元格元数据

Requirements: 基于 Claude Agent SDK notebook.ts 中的 NotebookEditTool 实现

Structs§

NotebookCell
Jupyter Notebook 单元格
NotebookContent
Jupyter Notebook 内容
NotebookEditInput
NotebookEdit 工具输入参数
NotebookEditTool
Notebook Edit Tool for editing Jupyter notebook cells