redo • AI Agent SDK

redo: Redo a previously undone set of file changes.

redo

Method

</div>

This is a method of the Agent class in the agent module.

Redo a previously undone set of file changes.

Re-applies file changes that were reverted by :meth:undo.

Signature

python
def redo() -> bool

Returns

ResponseField bool

True if redo was successful, False if nothing to redo.

Uses

  • get_current_hash
  • restore
  • logger.debug

Source

View on GitHub

praisonaiagents/agent/agent.py at line 4482