Skip to content

ExitWorktreeOutput

Base classes

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

⋔ Inheritance diagram

graph TD
  1413672970["output_types.ExitWorktreeOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1413672970
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

tool_use_result for the ExitWorktree tool.

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

    action: Literal["keep", "remove"]
    """The action that was taken."""
    originalCwd: str
    """The original working directory before the worktree was entered."""
    worktreePath: str
    """The path to the worktree."""
    worktreeBranch: NotRequired[str]
    """The branch of the worktree."""
    tmuxSessionName: NotRequired[str]
    """The tmux session name if applicable."""
    discardedFiles: NotRequired[int]
    """Number of files discarded."""
    discardedCommits: NotRequired[int]
    """Number of commits discarded."""
    message: str
    """A message indicating the result of the operation."""

action instance-attribute

action: Literal['keep', 'remove']

The action that was taken.

discardedCommits instance-attribute

discardedCommits: NotRequired[int]

Number of commits discarded.

discardedFiles instance-attribute

discardedFiles: NotRequired[int]

Number of files discarded.

message instance-attribute

message: str

A message indicating the result of the operation.

originalCwd instance-attribute

originalCwd: str

The original working directory before the worktree was entered.

tmuxSessionName instance-attribute

tmuxSessionName: NotRequired[str]

The tmux session name if applicable.

worktreeBranch instance-attribute

worktreeBranch: NotRequired[str]

The branch of the worktree.

worktreePath instance-attribute

worktreePath: str

The path to the worktree.

:fa-brands-github: Show source on GitHub