Unified Diff • AI Agent SDK

unified_diff: Render a unified before/after diff for previewing the change.

unified_diff

Method

</div>

This is a method of the ConfigDiff class in the doctor_protocol module.

Render a unified before/after diff for previewing the change.

Signature

python
def unified_diff() -> str

Returns

ResponseField str

The result of the operation.

Uses

  • splitlines
  • json.dumps
  • difflib.unified_diff

Used By

Source

View on GitHub

praisonaiagents/runtime/doctor_protocol.py at line 32