Skip to content

EditOutput

Base classes

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

⋔ Inheritance diagram

graph TD
  2697065901["output_types.EditOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 2697065901
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the Edit tool.

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

    filePath: str
    oldString: str
    newString: str
    originalFile: str | None
    structuredPatch: list[StructuredPatchHunk]
    userModified: bool
    replaceAll: bool
    gitDiff: NotRequired[GitDiff]
    staged: NotRequired[bool]
    """Whether the edit was staged instead of written."""

staged instance-attribute

staged: NotRequired[bool]

Whether the edit was staged instead of written.

:fa-brands-github: Show source on GitHub