Skip to content

NotebookEditOutput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  4287481905["output_types.NotebookEditOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 4287481905
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the NotebookEdit tool.

Source code in src/clawd_code_sdk/models/output_types.py
class NotebookEditOutput(TypedDict):
    """``tool_use_result`` for the NotebookEdit tool."""

    new_source: str
    cell_id: NotRequired[str]
    cell_type: Literal["code", "markdown"]
    language: str
    edit_mode: str
    error: NotRequired[str]
    notebook_path: str
    original_file: str
    """The original notebook content before modification."""
    updated_file: str
    """The updated notebook content after modification."""
    old_source: NotRequired[str]
    """The original source of the cell before the edit."""

old_source instance-attribute

old_source: NotRequired[str]

The original source of the cell before the edit.

original_file instance-attribute

original_file: str

The original notebook content before modification.

updated_file instance-attribute

updated_file: str

The updated notebook content after modification.

:fa-brands-github: Show source on GitHub